[IMP] point_of_sale: Add the 'to_weight' field on the category for the weight

bzr revid: stw@openerp.com-20120509083940-akzpgtwkre87rczr
This commit is contained in:
Stephane Wirtel 2012-05-09 10:39:40 +02:00
parent 2def801d80
commit f638ce36cf
4 changed files with 31 additions and 0 deletions

View File

@ -21,6 +21,7 @@
import point_of_sale
import account_bank_statement
import product
import wizard
import report

View File

@ -66,6 +66,7 @@ Main features :
'point_of_sale_workflow.xml',
'account_statement_view.xml',
'account_statement_report.xml',
'product_view.xml',
],
'demo_xml': [
'point_of_sale_demo.xml',

View File

@ -0,0 +1,13 @@
#!/usr/bin/env python
from osv import osv, fields
class product_category(osv.osv):
_inherit = 'product.category'
_columns = {
'to_weight' : fields.boolean('To Weight'),
}
_defaults = {
'to_weight' : False,
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="product_category_form_view" model="ir.ui.view">
<field name="name">product.category.form</field>
<field name="model">product.category</field>
<field name="type">form</field>
<field name="inherit_id" ref="product.product_category_form_view" />
<field name="arch" type="xml">
<field name="type" position="after">
<field name="to_weight" />
</field>
</field>
</record>
</data>
</openerp>