Saurang Suthar(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-addons16_warehouse-ssu into
lp:openobject-addons.
Requested reviews:
Purnendu Singh (OpenERP) (psi-tinyerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons16_warehouse-ssu/+merge/129624
Hello sir,
I have improved the code by:
- adding tooltip for computation in Unit of Measure.
- improving tooltip for view type in Category Type in product form.
- Accounting Properties and Accounting Stock Properties should only appear with
accounting installed.
Kindly review it.
Thank you.
Saurang Suthar
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons16_warehouse-ssu/+merge/129624
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-addons16_warehouse-ssu.
=== modified file 'account/product_view.xml'
--- account/product_view.xml 2012-10-03 06:48:40 +0000
+++ account/product_view.xml 2012-10-15 09:09:30 +0000
@@ -49,7 +49,8 @@
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<data>
- <xpath expr="/form/sheet//group[@name='account_property']" position="inside">
+ <xpath expr="/form/sheet//group[@name='parent_id']" position="inside">
+ <separator string="Account Properties" colspan="2"/>
<field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
<field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
</xpath>
=== modified file 'product/product.py'
--- product/product.py 2012-10-13 10:09:05 +0000
+++ product/product.py 2012-10-15 09:09:30 +0000
@@ -113,7 +113,7 @@
'category_id': fields.many2one('product.uom.categ', 'Category', required=True, ondelete='cascade',
help="Quantity conversions may happen automatically between Units of Measure in the same category, according to their respective ratios."),
'factor': fields.float('Ratio', required=True,digits=(12, 12),
- help='How many times this Unit of Measure is smaller than the reference Unit of Measure in this category:\n'\
+ help='How much bigger or smaller this unit is compared to the reference Unit of Measure for this category:\n'\
'1 * (reference unit) = ratio * (this unit)'),
'factor_inv': fields.function(_factor_inv, digits=(12,12),
fnct_inv=_factor_inv_write,
@@ -233,7 +233,7 @@
'parent_id': fields.many2one('product.category','Parent Category', select=True, ondelete='cascade'),
'child_id': fields.one2many('product.category', 'parent_id', string='Child Categories'),
'sequence': fields.integer('Sequence', select=True, help="Gives the sequence order when displaying a list of product categories."),
- 'type': fields.selection([('view','View'), ('normal','Normal')], 'Category Type'),
+ 'type': fields.selection([('view','View'), ('normal','Normal')], 'Category Type', help="A category of the view type is a virtual category that can be used as the parent of another category to create hierarchical structure."),
'parent_left': fields.integer('Left Parent', select=1),
'parent_right': fields.integer('Right Parent', select=1),
}
=== modified file 'product/product_view.xml'
--- product/product_view.xml 2012-10-13 10:43:24 +0000
+++ product/product_view.xml 2012-10-15 09:09:30 +0000
@@ -318,17 +318,13 @@
</h1>
</div>
<group>
- <group>
+ <group name="parent_id">
<field name="parent_id"/>
</group>
- <group>
+ <group name="type">
<field name="type"/>
</group>
</group>
- <group name="basic">
- <group name="account_property" string="Account Properties"/>
- <group name="account_stock_property" string="Account Stock Properties"/>
- </group>
</sheet>
</form>
</field>
=== modified file 'stock/product_view.xml'
--- stock/product_view.xml 2012-10-13 11:22:53 +0000
+++ stock/product_view.xml 2012-10-15 09:09:30 +0000
@@ -20,7 +20,8 @@
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<data>
- <xpath expr="/form/sheet//group[@name='account_stock_property']" position="inside">
+ <xpath expr="/form/sheet//group[@name='type']" position="inside">
+ <separator string="Account Stock Properties" colspan="2"/>
<field name="property_stock_account_input_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
<field name="property_stock_account_output_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
<field name="property_stock_valuation_account_id" domain="[('type','<>','view'), ('type','<>','consolidation')]"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp