[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:
parent
e656b28709
commit
56062c72ab
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user