[IMP] move type of defaults in sale. and increase the priority of the product tree view defined in hr_epense.

bzr revid: shp@tinyerp.com-20121012051640-4i0eyltyuvpq57vc
This commit is contained in:
pankita shah (Open ERP) 2012-10-12 10:46:40 +05:30
parent 92c8da8d8c
commit 935314ea26
4 changed files with 3 additions and 1 deletions

View File

@ -194,6 +194,7 @@
<record id="view_product_hr_expense_form" model="ir.ui.view">
<field name="name">product.product.expense.form</field>
<field name="model">product.product</field>
<field eval="8" name="priority"/>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="purchase_ok" position="before">

View File

@ -75,6 +75,7 @@
</xpath>
</field>
</record>
</data>

View File

@ -746,6 +746,7 @@ class sale_order_line(osv.osv):
'sequence': 10,
'invoiced': 0,
'state': 'draft',
'type': 'make_to_stock',
'price_unit': 0.0,
}

View File

@ -497,7 +497,6 @@ class sale_order_line(osv.osv):
}
_defaults = {
'delay': 0.0,
'type': 'make_to_stock',
'product_packaging': False,
}