[IMP] mrp: change xml id of usability groups

bzr revid: rco@openerp.com-20120322155244-4pbdhs0ltzf98ub1
This commit is contained in:
Raphael Collet 2012-03-22 16:52:44 +01:00
parent d23ddb0676
commit 77117e046d
3 changed files with 18 additions and 18 deletions

View File

@ -105,17 +105,17 @@
<menuitem name="Master Bill of Materials"
id="menu_mrp_property"
parent="menu_mrp_configuration"
groups="base.group_mrp_routings,base.group_mrp_properties"
groups="mrp.group_mrp_routings,mrp.group_mrp_properties"
sequence="20" />
<menuitem
action="mrp_property_action"
id="menu_mrp_property_action"
groups="base.group_mrp_properties"
groups="mrp.group_mrp_properties"
parent="menu_mrp_property"/>
<menuitem
action="mrp_property_group_action"
parent="menu_mrp_property"
groups="base.group_mrp_properties"
groups="mrp.group_mrp_properties"
id="menu_mrp_property_group_action"/>
<!--
@ -306,7 +306,7 @@
<field name="search_view_id" ref="mrp_routing_search_view"/>
<field name="help">Routings allow you to create and manage the manufacturing operations that should be followed within your work centers in order to produce a product. They are attached to bills of materials that will define the required raw materials.</field>
</record>
<menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_property" groups="base.group_mrp_routings" sequence="1"/>
<menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_property" groups="mrp.group_mrp_routings" sequence="1"/>
<!--
Bill of Materials
@ -325,7 +325,7 @@
<newline/>
<field name="product_qty"/>
<field name="product_uom"/>
<field name="routing_id" groups="base.group_mrp_routings"/>
<field name="routing_id" groups="mrp.group_mrp_routings"/>
<newline/>
<field name="product_uos_qty" groups="product.group_uos" />
<field name="product_uos" groups="product.group_uos"/>
@ -352,7 +352,7 @@
<newline/>
<field name="product_qty"/>
<field name="product_uom"/>
<field name="routing_id" groups="base.group_mrp_routings"/>
<field name="routing_id" groups="mrp.group_mrp_routings"/>
<newline/>
<field name="product_uos_qty" groups="product.group_uos" />
<field name="product_uos" groups="product.group_uos"/>
@ -377,7 +377,7 @@
<page string="Revisions" groups="base.group_extended" attrs="{'invisible': [('bom_id','!=',False)]}">
<field colspan="4" name="revision_ids" nolabel="1" widget="one2many_list"/>
</page>
<page string="Properties" groups="base.group_mrp_properties">
<page string="Properties" groups="mrp.group_mrp_properties">
<field name="position"/>
<field name="active"/>
<field name="sequence"/>
@ -397,7 +397,7 @@
<page string="Revisions" groups="base.group_extended" attrs="{'invisible': [('bom_id','!=',False)]}">
<field colspan="4" name="revision_ids" nolabel="1" widget="one2many_list"/>
</page>
<page string="Properties" groups="base.group_mrp_properties">
<page string="Properties" groups="mrp.group_mrp_properties">
<field name="position"/>
<field name="active"/>
<field name="sequence"/>
@ -457,7 +457,7 @@
<field name="product_uom"/>
<field name="type"/>
<field name="method" groups="base.group_extended"/>
<field name="routing_id" groups="base.group_mrp_routings"/>
<field name="routing_id" groups="mrp.group_mrp_routings"/>
<field name="date_start" groups="base.group_extended"/>
<field name="date_stop" groups="base.group_extended"/>
</tree>
@ -479,7 +479,7 @@
<field name="product_uom"/>
<field name="type"/>
<field name="method" groups="base.group_extended"/>
<field name="routing_id" groups="base.group_mrp_routings"/>
<field name="routing_id" groups="mrp.group_mrp_routings"/>
<field name="date_start" groups="base.group_extended"/>
<field name="date_stop" groups="base.group_extended"/>
</tree>
@ -577,7 +577,7 @@
<field name="product_id"/>
<field name="product_qty" sum="Total Qty"/>
<field name="product_uom"/>
<field name="routing_id" groups="base.group_mrp_routings"/>
<field name="routing_id" groups="mrp.group_mrp_routings"/>
<field name="hour_total" sum="Total Hours" groups="base.group_extended"/>
<field name="cycle_total" sum="Total Cycles" groups="base.group_extended"/>
<field name="origin"/>
@ -651,7 +651,7 @@
<notebook colspan="4">
<page string="Consumed Products">
<field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)"/>
<field name="routing_id" groups="base.group_mrp_routings" select="1"/>
<field name="routing_id" groups="mrp.group_mrp_routings" select="1"/>
<field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/>
<field name="location_dest_id" domain="[('usage','=','internal')]"/>
<separator string="" colspan="4"/>
@ -812,7 +812,7 @@
<separator orientation="vertical"/>
<field name="name"/>
<field name="product_id"/>
<field name="routing_id" groups="base.group_mrp_routings"/>
<field name="routing_id" groups="mrp.group_mrp_routings"/>
<field name="origin"/>
</group>
<newline/>
@ -963,7 +963,7 @@
<field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
</xpath>
<xpath expr="/form/notebook/page/field[@name='close_move']" position="after">
<group colspan="4" groups="base.group_mrp_properties">
<group colspan="4" groups="mrp.group_mrp_properties">
<separator colspan="4" string="Properties" />
<field colspan="4" name="property_ids" nolabel="1"/>
</group>

View File

@ -68,12 +68,12 @@ class mrp_config_settings(osv.osv_memory):
help="""This allows to add state, date_start,date_stop in production order operation lines (in the "Work Centers" tab).
This installs the module mrp_operations."""),
'group_mrp_routings': fields.boolean("Manage manufacturing operations ",
implied_group='base.group_mrp_routings',
implied_group='mrp.group_mrp_routings',
help="""Routings allow you to create and manage the manufacturing operations that should be followed
within your work centers in order to produce a product. They are attached to bills of materials
that will define the required raw materials."""),
'group_mrp_properties': fields.boolean("Allow different properties per product in your order",
implied_group='base.group_mrp_properties',
implied_group='mrp.group_mrp_properties',
help="""Allows to define specific property that can be assigned to your bill of materials."""),
}

View File

@ -12,12 +12,12 @@
<field name="implied_ids" eval="[(4, ref('group_mrp_user'))]"/>
</record>
<record id="base.group_mrp_routings" model="res.groups">
<record id="group_mrp_routings" model="res.groups">
<field name="name">Manage Routings</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="base.group_mrp_properties" model="res.groups">
<record id="group_mrp_properties" model="res.groups">
<field name="name">Manage Properties of Product</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>