Add dep on purchase_partner_invoice_method + default value to picking
This commit is contained in:
@@ -37,9 +37,7 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': ['purchase'],
|
||||
'data': [],
|
||||
'images': [],
|
||||
'depends': ['purchase_partner_invoice_method'],
|
||||
'data': ['partner_data.xml'],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
||||
|
||||
22
purchase_auto_invoice_method/partner_data.xml
Normal file
22
purchase_auto_invoice_method/partner_data.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
Copyright (C) 2015 Akretion (http://www.akretion.com/)
|
||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
The licence is in the file __openerp__.py
|
||||
-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- set supplier invoice method to "picking" by default -->
|
||||
<record id="default_supplier_invoice_method" model="ir.property" forcecreate="True">
|
||||
<field name="name">default supplier_invoice_method</field>
|
||||
<field name="fields_id"
|
||||
search="[('model','=','res.partner'), ('name','=','supplier_invoice_method')]"/>
|
||||
<field name="type">selection</field>
|
||||
<field name="value" eval="'picking'"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user