Adding invisible buttons in tree views to get them in action menu
From tryton 3.2 there is a nice feature that allows to get the button actions in the action menu. Now in the most cases are only defined in form views, but it would be very useful defining them in tree views to be able to execute the button action to several records at the same time.
For example, in account_payment/view/move_line_list.xml file is defined:
that allows to pay several move lines in tree view because the Pay Lines button appears in the action menu.
It would be useful adding these buttons in the tree views of account moves, invoices, sales, purchases, productions, projects, ... For example, in invoices, some of these buttons could be added in account_invoice/view/invoice_tree.xml:
_invisible="1"
icon="tryton-cancel"
confirm="Are you sure to cancel the invoice?"/>
_invisible="1"
icon="tryton-go-previous"/>
_invisible="1"
help="Also known as Pro Forma"
icon="tryton-go-next"/>
_invisible="1" icon="tryton-ok"/>
_invisible="1" icon="tryton-go-next"/>
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
account_invoice.patch | @jesteve | 2015-01-27 16:38:28.762000 UTC | text/plain |