[IMP] product: usability improvement in pricelist
Explicitly specifiy that quantities are in product uom
This commit is contained in:
parent
4bf9dc4078
commit
b747b3d30b
|
@ -467,8 +467,11 @@ class product_pricelist_item(osv.osv):
|
||||||
'product_tmpl_id': fields.many2one('product.template', 'Product Template', ondelete='cascade', help="Specify a template if this rule only applies to one product template. Keep empty otherwise."),
|
'product_tmpl_id': fields.many2one('product.template', 'Product Template', ondelete='cascade', help="Specify a template if this rule only applies to one product template. Keep empty otherwise."),
|
||||||
'product_id': fields.many2one('product.product', 'Product', ondelete='cascade', help="Specify a product if this rule only applies to one product. Keep empty otherwise."),
|
'product_id': fields.many2one('product.product', 'Product', ondelete='cascade', help="Specify a product if this rule only applies to one product. Keep empty otherwise."),
|
||||||
'categ_id': fields.many2one('product.category', 'Product Category', ondelete='cascade', help="Specify a product category if this rule only applies to products belonging to this category or its children categories. Keep empty otherwise."),
|
'categ_id': fields.many2one('product.category', 'Product Category', ondelete='cascade', help="Specify a product category if this rule only applies to products belonging to this category or its children categories. Keep empty otherwise."),
|
||||||
|
'min_quantity': fields.integer('Min. Quantity', required=True,
|
||||||
'min_quantity': fields.integer('Min. Quantity', required=True, help="For the rule to apply, bought/sold quantity must be greater than or equal to minimum quantity specified in this field."),
|
help="For the rule to apply, bought/sold quantity must be greater "
|
||||||
|
"than or equal to the minimum quantity specified in this field.\n"
|
||||||
|
"Expressed in the default UoM of the product."
|
||||||
|
),
|
||||||
'sequence': fields.integer('Sequence', required=True, help="Gives the order in which the pricelist items will be checked. The evaluation gives highest priority to lowest sequence and stops as soon as a matching item is found."),
|
'sequence': fields.integer('Sequence', required=True, help="Gives the order in which the pricelist items will be checked. The evaluation gives highest priority to lowest sequence and stops as soon as a matching item is found."),
|
||||||
'base': fields.selection(_price_field_get, 'Based on', required=True, size=-1, help="Base price for computation."),
|
'base': fields.selection(_price_field_get, 'Based on', required=True, size=-1, help="Base price for computation."),
|
||||||
'base_pricelist_id': fields.many2one('product.pricelist', 'Other Pricelist'),
|
'base_pricelist_id': fields.many2one('product.pricelist', 'Other Pricelist'),
|
||||||
|
|
|
@ -98,7 +98,11 @@
|
||||||
<field name="min_quantity"/>
|
<field name="min_quantity"/>
|
||||||
<field name="sequence"/>
|
<field name="sequence"/>
|
||||||
</group>
|
</group>
|
||||||
<group col="4" string="Price Computation">
|
<separator string="Price Computation"/>
|
||||||
|
<div class="oe_grey" groups="product.group_uom">
|
||||||
|
<p>The computed price is expressed in the default Unit of Measure of the product.</p>
|
||||||
|
</div>
|
||||||
|
<group col="4">
|
||||||
<field name="base"/>
|
<field name="base"/>
|
||||||
<field name="base_pricelist_id" attrs="{'invisible':[('base', '!=', -1)],'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
|
<field name="base_pricelist_id" attrs="{'invisible':[('base', '!=', -1)],'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
|
||||||
</group>
|
</group>
|
||||||
|
|
Loading…
Reference in New Issue