diff options
| author | Fabien Pinckaers <fp@odoo.com> | 2018-04-25 17:00:43 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-04-25 17:12:15 +0200 |
| commit | 051dfea35e21ad2e249acc08c91a553a7ef6a4aa (patch) | |
| tree | 66ecc8d139c36990894851ca9cc2a497d130cd82 /addons/purchase/security/purchase_security.xml | |
| parent | 04c44c479d5cf821681d320a62aa3381398ddaa4 (diff) | |
[IMP] account: new way of auto-completion of vendor bills/credit notes
This adds the possibilty to select another account.invoice object in a vendor bill or credit note, to automatically copy its lines.
When the purchase app is installed, the same field can be used for auto-completion and users can choose between vendor bills or purchase orders (preferably PO)
Co-authored-by: dat@openerp.com
Diffstat (limited to 'addons/purchase/security/purchase_security.xml')
| -rw-r--r-- | addons/purchase/security/purchase_security.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/purchase/security/purchase_security.xml b/addons/purchase/security/purchase_security.xml index 73dcd6c1487..75fbca272f6 100644 --- a/addons/purchase/security/purchase_security.xml +++ b/addons/purchase/security/purchase_security.xml @@ -69,5 +69,11 @@ <field name="domain_force">['|',('order_id.message_partner_ids','child_of',[user.commercial_partner_id.id]),('order_id.partner_id','child_of',[user.commercial_partner_id.id])]</field> <field name="groups" eval="[(4, ref('base.group_portal'))]"/> </record> + <record model="ir.rule" id="purchase_bill_union_comp_rule"> + <field name="name">Purchases & Bills Union multi-company</field> + <field name="model_id" ref="model_purchase_bill_union"/> + <field name="global" eval="True"/> + <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> + </record> </data> </odoo> |
