mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX+IMP] contract: Real fix to company_id missing + improvements
* company_id was empty because an onchange, not inheritance nor visibility * Added multi-company group to company_id fields * Added multi-company access rule to contract templates * Fix double %% in XML dates that was causing an error * When creating a contract, recurring_invoices is set by default
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
e5e211b981
commit
f2cd1616f1
10
contract/security/contract_security.xml
Normal file
10
contract/security/contract_security.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="rule_contract_template_multi_company" model="ir.rule">
|
||||
<field name="name">Contract template multi-company</field>
|
||||
<field name="model_id" ref="model_account_analytic_contract"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user