[FIX] stock_landed_costs: account move view

The landed cost model is limited to the warehouse manager, so displaying
the view changes on account move did not make sense for all users plus
it broke the creation of invoices for account users.

closes odoo/odoo#36914

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
Simon Lejeune
2019-09-16 09:07:18 +00:00
parent bda5fa4372
commit e0cf0dd792
@@ -4,6 +4,7 @@
<field name="name">account.view.move.form.inherited</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="groups_id" eval="[(4,ref('stock.group_stock_manager'))]"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<field name="landed_costs_ids" invisible="1"/>