[FIX] Fix the bug when we install Purchase without demo data

bzr revid: jke@openerp.com-20131022115426-rwaqhllotyrj52rv
This commit is contained in:
jke-openerp
2013-10-22 13:54:26 +02:00
parent 38a583f88c
commit 7778ab8ec4
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -54,6 +54,7 @@ Dashboard / Reports for Purchase Management will include:
'purchase_sequence.xml',
'company_view.xml',
'purchase_data.xml',
'purchase_data.yml',
'wizard/purchase_order_group_view.xml',
'wizard/purchase_line_invoice_view.xml',
'purchase_report.xml',
-6
View File
@@ -42,12 +42,6 @@
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_product_pricelist_purchase')]"/>
<field eval="'product.pricelist,'+str(list0)" name="value"/>
</record>
<function
eval="('default',False,'picking_type_id', [('purchase.order', False)], ref('stock.picking_type_in'), True, False, False, False, True)"
id="purchase_default_set"
model="ir.values"
name="set"/>
<!-- Purchase-related subtypes for messaging / Chatter -->
<record id="mt_rfq_confirmed" model="mail.message.subtype">
+6
View File
@@ -0,0 +1,6 @@
-
!python {model: ir.values, id: purchase_default_set}: |
whr = self.pool.get('stock.warehouse').browse(cr, uid, ref('stock.warehouse0'), context=context)
self.set(cr, uid, 'default',False,'picking_type_id', [('purchase.order', False)], whr.in_type_id.id, True, False, False, False, True)