[ADD]: Added remaining groups for suppliers and stock packaging.

bzr revid: uco@tinyerp.com-20120312105655-gzs4nci80gzlsnld
This commit is contained in:
Ujjvala Collins (OpenERP)
2012-03-12 16:26:55 +05:30
parent e2c8783f1b
commit 65d466b4fe
2 changed files with 21 additions and 2 deletions
+8 -1
View File
@@ -25,7 +25,7 @@ class product_groups_configuration(osv.osv_memory):
_inherit = 'res.config.settings'
_columns = {
'group_sale_pricelist_per_customer':fields.boolean("Pricelist per customer",
'group_sale_pricelist_per_customer':fields.boolean("Pricelist per Customer",
group='base.group_user', implied_group='base.group_sale_pricelist_per_customer',
help="""Allows to manage different prices based on rules per category of customers.
Example: 10% for retailers, promotion of 5 EUR on this product, etc.
@@ -36,6 +36,13 @@ class product_groups_configuration(osv.osv_memory):
Allows you to select and maintain different unit of measures per product.
It assigns the "UOM per product" group to all employees.
"""),
'group_purchase_pricelist_per_supplier':fields.boolean("Pricelist per Supplier", group='base.group_user', xml_id='base.group_purchase_pricelist_per_supplier',
help="""Allows to manage different prices based on rules per category of Supplier.
Example: 10% for retailers, promotion of 5 EUR on this product, etc.
It assigns the "Pricelist" group to all employees."""),
'group_stock_packaging':fields.boolean("Manage packaging by products", group='base.group_user', implied_group='base.group_stock_packaging',
help=""" Allows you to create and manage your packaging dimensions and types you want to be maintained in your system.
It assigns the "Packaging" group to employee."""),
}
product_groups_configuration()
+13 -1
View File
@@ -23,15 +23,27 @@
<field name="name">Sales Pricelists</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="base.group_purchase_pricelist_per_supplier" model="res.groups">
<field name="name">Purchase Pricelists</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="base.group_sale_uom_per_product" model="res.groups">
<field name="name">Product UOM</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="base.group_stock_packaging" model="res.groups">
<field name="name">Packaging</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="base.group_user" model="res.groups">
<field name="implied_ids" eval="[(6,0,[ref('base.group_sale_pricelist_per_customer'),
ref('base.group_sale_uom_per_product')])]"/>
ref('base.group_sale_uom_per_product'),
ref('base.group_purchase_pricelist_per_supplier'),
ref('base.group_stock_packaging')])]"/>
</record>
<record model="ir.rule" id="product_pricelist_comp_rule">