[IMP]product,stock,account : improve tool-tip and also improve product category form view and related inherited view
bzr revid: mma@tinyerp.com-20121018072456-v7f3roq58djtc2e8
This commit is contained in:
parent
df2750f9fd
commit
b26d5a8877
|
@ -49,9 +49,11 @@
|
||||||
<field name="inherit_id" ref="product.product_category_form_view"/>
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<data>
|
<data>
|
||||||
<xpath expr="/form/sheet//group[@name='account_property']" position="inside">
|
<xpath expr="//group[@name='parent']" position="inside">
|
||||||
<field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
<group name="account_property" string="Account Properties" colspan="2">
|
||||||
<field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
<field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||||
|
<field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||||
|
</group>
|
||||||
</xpath>
|
</xpath>
|
||||||
</data>
|
</data>
|
||||||
</field>
|
</field>
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
<record id="view_category_property_form" model="ir.ui.view">
|
<record id="view_category_property_form" model="ir.ui.view">
|
||||||
<field name="name">product.category.property.form.inherit.stock</field>
|
<field name="name">product.category.property.form.inherit.stock</field>
|
||||||
<field name="model">product.category</field>
|
<field name="model">product.category</field>
|
||||||
<field name="inherit_id" ref="product.product_category_form_view"/>
|
<field name="inherit_id" ref="account.view_category_property_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<data>
|
<data>
|
||||||
<xpath expr="/form/sheet//group[@name='account_property']" position="inside">
|
<xpath expr="//field[@name='property_account_income_categ']" position="before">
|
||||||
<field name="property_account_creditor_price_difference_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
<field name="property_account_creditor_price_difference_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</data>
|
</data>
|
||||||
|
|
|
@ -113,7 +113,7 @@ class product_uom(osv.osv):
|
||||||
'category_id': fields.many2one('product.uom.categ', 'Category', required=True, ondelete='cascade',
|
'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."),
|
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),
|
'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)'),
|
'1 * (reference unit) = ratio * (this unit)'),
|
||||||
'factor_inv': fields.function(_factor_inv, digits=(12,12),
|
'factor_inv': fields.function(_factor_inv, digits=(12,12),
|
||||||
fnct_inv=_factor_inv_write,
|
fnct_inv=_factor_inv_write,
|
||||||
|
@ -233,7 +233,7 @@ class product_category(osv.osv):
|
||||||
'parent_id': fields.many2one('product.category','Parent Category', select=True, ondelete='cascade'),
|
'parent_id': fields.many2one('product.category','Parent Category', select=True, ondelete='cascade'),
|
||||||
'child_id': fields.one2many('product.category', 'parent_id', string='Child Categories'),
|
'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."),
|
'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_left': fields.integer('Left Parent', select=1),
|
||||||
'parent_right': fields.integer('Right Parent', select=1),
|
'parent_right': fields.integer('Right Parent', select=1),
|
||||||
}
|
}
|
||||||
|
|
|
@ -318,17 +318,11 @@
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<group>
|
<group>
|
||||||
<group>
|
<group name="parent" col="4">
|
||||||
<field name="parent_id"/>
|
<field name="parent_id"/>
|
||||||
</group>
|
|
||||||
<group>
|
|
||||||
<field name="type"/>
|
<field name="type"/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<group name="basic">
|
|
||||||
<group name="account_property" string="Account Properties"/>
|
|
||||||
<group name="account_stock_property" string="Account Stock Properties"/>
|
|
||||||
</group>
|
|
||||||
</sheet>
|
</sheet>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
|
|
@ -17,15 +17,17 @@
|
||||||
<record id="view_category_property_form" model="ir.ui.view">
|
<record id="view_category_property_form" model="ir.ui.view">
|
||||||
<field name="name">product.category.stock.property.form.inherit</field>
|
<field name="name">product.category.stock.property.form.inherit</field>
|
||||||
<field name="model">product.category</field>
|
<field name="model">product.category</field>
|
||||||
<field name="inherit_id" ref="product.product_category_form_view"/>
|
<field name="inherit_id" ref="account.view_category_property_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<data>
|
<data>
|
||||||
<xpath expr="/form/sheet//group[@name='account_stock_property']" position="inside">
|
<group name="account_property" position="after">
|
||||||
<field name="property_stock_account_input_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
<group name="account_stock_property" string="Account Stock Properties" colspan="2">
|
||||||
<field name="property_stock_account_output_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
<field name="property_stock_account_input_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||||
<field name="property_stock_valuation_account_id" domain="[('type','<>','view'), ('type','<>','consolidation')]"/>
|
<field name="property_stock_account_output_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||||
<field name="property_stock_journal"/>
|
<field name="property_stock_valuation_account_id" domain="[('type','<>','view'), ('type','<>','consolidation')]"/>
|
||||||
</xpath>
|
<field name="property_stock_journal"/>
|
||||||
|
</group>
|
||||||
|
</group>
|
||||||
</data>
|
</data>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
Loading…
Reference in New Issue