diff options
| author | dip-odoo <dip@odoo.com> | 2017-10-23 17:48:27 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-12-01 14:52:28 +0100 |
| commit | a582f00dfa2cfde70c726dfd31acde7c6f32681c (patch) | |
| tree | 587b26ff5e67bc92f6bbf026cd3fbcd3cc76412b /addons/lunch | |
| parent | 00b6b26b44dbc7f0332f85976e074652038c59ef (diff) | |
[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)
Diffstat (limited to 'addons/lunch')
| -rw-r--r-- | addons/lunch/models/lunch.py | 4 | ||||
| -rw-r--r-- | addons/lunch/views/lunch_views.xml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/lunch/models/lunch.py b/addons/lunch/models/lunch.py index f539e6d8881..0108165c2b0 100644 --- a/addons/lunch/models/lunch.py +++ b/addons/lunch/models/lunch.py @@ -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): diff --git a/addons/lunch/views/lunch_views.xml b/addons/lunch/views/lunch_views.xml index 22069009380..28462b54d3f 100644 --- a/addons/lunch/views/lunch_views.xml +++ b/addons/lunch/views/lunch_views.xml @@ -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> |
