20130912 (Thursday, 12 September 2013)¶
Printing mail labels¶
Until now the “Show this table as a pdf document” action was implemented
Now I converted it to a “real” action
Because I wanted to know whether Lino can do it.
He can. Congratulations!
This has several advantages:
The mechanism is no longer split across several files but all in one place.
class Countries(dd.Table): ... as_pdf = PdfTableAction(template_name = "Table-portrait.odt")
TODO: Now I’ll also want to convert the html, csv and delete actions. The delete action is most urgent because users cannot delete multiple rows at once.
But first I have another idea for a third advantage of this:
I wrote a derived class
and a template
and added this to contacts.Partner.
Except for a little detail: it prints only one page of labels.