[IMP] product,stock,lunch: Uniformize 'Product Category' accross views and menus
PURPOSE ======= Ensure terms consistency across Odoo Specification ============= All the menus and fields labels which are related to product.category should be named "Product Category" (if field label) and "Product Categories" (if menu entry)
This commit is contained in:
committed by
Yannick Tivisse
parent
00b6b26b44
commit
a582f00dfa
@@ -231,7 +231,7 @@ class LunchProduct(models.Model):
|
||||
_description = 'lunch product'
|
||||
|
||||
name = fields.Char('Product', required=True)
|
||||
category_id = fields.Many2one('lunch.product.category', 'Category', required=True)
|
||||
category_id = fields.Many2one('lunch.product.category', 'Product Category', required=True)
|
||||
description = fields.Text('Description')
|
||||
price = fields.Float('Price', digits=dp.get_precision('Account'))
|
||||
supplier = fields.Many2one('res.partner', 'Vendor')
|
||||
@@ -243,7 +243,7 @@ class LunchProductCategory(models.Model):
|
||||
_name = 'lunch.product.category'
|
||||
_description = 'lunch product category'
|
||||
|
||||
name = fields.Char('Category', required=True)
|
||||
name = fields.Char('Product Category', required=True)
|
||||
|
||||
|
||||
class LunchCashMove(models.Model):
|
||||
|
||||
@@ -562,7 +562,7 @@
|
||||
<field name="description"/>
|
||||
<group expand="0" string="Group By">
|
||||
<filter name="supplier" string="Vendor" context="{'group_by': 'supplier'}"/>
|
||||
<filter name="category" string="Category" context="{'group_by': 'category_id'}"/>
|
||||
<filter name="category" string="Product Category" context="{'group_by': 'category_id'}"/>
|
||||
<filter name="inactive" string="Archived" domain="[('active','=',False)]"/>
|
||||
</group>
|
||||
</search>
|
||||
|
||||
@@ -56,7 +56,7 @@ class ProductTemplate(models.Model):
|
||||
'the e-commerce such as e-books, music, pictures,... The "Digital Product" module has to be installed.')
|
||||
rental = fields.Boolean('Can be Rent')
|
||||
categ_id = fields.Many2one(
|
||||
'product.category', 'Internal Category',
|
||||
'product.category', 'Product Category',
|
||||
change_default=True, default=_get_default_category_id,
|
||||
required=True, help="Select category for the current product")
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<group>
|
||||
<group name="group_general">
|
||||
<field name="type"/>
|
||||
<field name="categ_id" string="Category"/>
|
||||
<field name="categ_id" string="Product Category"/>
|
||||
</group>
|
||||
<group name="group_standard_price">
|
||||
<field name="list_price" widget='monetary' options="{'currency_field': 'currency_id'}"/>
|
||||
|
||||
@@ -83,7 +83,7 @@ class Inventory(models.Model):
|
||||
"system propose for a single product / lot /... ")
|
||||
total_qty = fields.Float('Total Quantity', compute='_compute_total_qty')
|
||||
category_id = fields.Many2one(
|
||||
'product.category', 'Inventoried Category',
|
||||
'product.category', 'Product Category',
|
||||
readonly=True, states={'draft': [('readonly', False)]},
|
||||
help="Specify Product Category to focus your inventory on a particular Category.")
|
||||
exhausted = fields.Boolean('Include Exhausted Products', readonly=True, states={'draft': [('readonly', False)]})
|
||||
|
||||
Reference in New Issue
Block a user