mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] Add check_company=True on contracts and contract lines
Add check_company=True in field definition and
[('company_id', '=', company_id)] in the domain (in view or in field definition)
This commit is contained in:
@@ -49,7 +49,9 @@
|
||||
<field name="inherit_id" ref="contract.contract_contract_supplier_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="payment_mode_id" position="attributes">
|
||||
<attribute name="domain">[('payment_type', '=', 'outbound')]</attribute>
|
||||
<attribute
|
||||
name="domain"
|
||||
>[('payment_type', '=', 'outbound'), ('company_id', '=', company_id)]</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user