Skip to content

Commit

Permalink
[IMP] account: always display company_id field in invoice form when i…
Browse files Browse the repository at this point in the history
…n multi companies
  • Loading branch information
oco-odoo committed Sep 9, 2019
1 parent b707a5f commit e5e9a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/account/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,8 @@
options="{'no_create': True}"
domain="[('type', '=?', invoice_filter_type_domain)]"/>

<field name="company_id" groups="base.group_multi_company"/>

<field name="currency_id"
groups="base.group_multi_currency"
attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}"/>
Expand Down Expand Up @@ -851,7 +853,6 @@
<group string="Invoice"
name="sale_info_group"
attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund'))]}">
<field name="company_id" groups="base.group_multi_company"/>
<field name="invoice_user_id"/>
<field name="invoice_origin" string="Source Document"
attrs="{'invisible': [('type', '=', 'entry')]}"/>
Expand Down

0 comments on commit e5e9a9c

Please sign in to comment.