Skip to content

Commit

Permalink
Mandates multicompany error OCA#242
Browse files Browse the repository at this point in the history
The restriction rule Banking Mandate multi-company, gives an error when editing a partner bank account from a company A when that account has created a mandate from another company B. So it is impossible to create a mandate for each company without disabling the rule.
Solution: Uncheck the rule writte in Banking Mandate multi-company. But i'm not sure this is correct.
  • Loading branch information
DarioLodeiros authored and wpichler committed Oct 25, 2022
1 parent 94ea8d0 commit 3cd5f43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions account_banking_mandate/security/mandate_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<field name="name">Banking Mandate multi-company</field>
<field name="model_id" ref="model_account_banking_mandate"/>
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_unlink" eval="True"/>
<field name="perm_create" eval="True"/>
</record>

</data>
Expand Down

0 comments on commit 3cd5f43

Please sign in to comment.