2
0

[FIX] account_loan: use company_ids in ir.rule multi-company

[CHG] account_loan: set company_id to false on sequence so sequence can be used in a multi-company context
This commit is contained in:
Zina Rasoamanana 2023-10-31 08:52:24 +01:00
parent e656b28709
commit 56062c72ab
2 changed files with 2 additions and 1 deletions

View File

@ -10,5 +10,6 @@
<field name="code">account.loan</field>
<field name="prefix">ACL</field>
<field name="padding">6</field>
<field name="company_id" eval="False" />
</record>
</odoo>

View File

@ -5,7 +5,7 @@
<field ref="model_account_loan" name="model_id" />
<field eval="True" name="global" />
<field name="domain_force">
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
['|',('company_id','=',False),('company_id','in',company_ids)]
</field>
</record>
</odoo>