Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][FIX] account_invoice_inter_company: avoid issue writing the company_id #311

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions account_invoice_inter_company/views/account_invoice_views.xml
Expand Up @@ -6,6 +6,10 @@
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="mode">primary</field>
<field name="arch" type="xml">
<!-- Enforce this to avoid issues writing the company_id-->
<xpath expr="//field[@name='invoice_line_ids']/tree" position="attributes">
<attribute name="editable">bottom</attribute>
</xpath>
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='company_id']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
Expand Down