This question has been flagged
1 Reply
5916 Views

How can I add or remove fields to the account.move.line view?

I tried * inherit account.view_move_line_tree view (in account_view.xml) * attaching a new one (without inherit) with <field name="view_id" ref="NEWVIEW"/> to an act_window...

Avatar
Discard
Author Best Answer

answering my own question...

Add this context value to the action of the menu

<field name="context">{'view_mode': True}</field>

then the tree view will stop to be generated by fields_view_get method in account.move.line definition

Avatar
Discard

thanks! thanks! thanks!