[IMP] improved code
bzr revid: tpa@tinyerp.com-20120313090412-5p6skrd0xkkkj4kl
This commit is contained in:
parent
76895108c8
commit
4fceaf43e0
|
@ -24,6 +24,7 @@ import pooler
|
|||
from tools.translate import _
|
||||
|
||||
class mrp_configuration(osv.osv_memory):
|
||||
_name = 'mrp.configuration'
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
_columns = {
|
||||
|
@ -33,13 +34,13 @@ class mrp_configuration(osv.osv_memory):
|
|||
It installs the stock_planning module.
|
||||
"""),
|
||||
'module_mrp_repair': fields.boolean("Track products repair",
|
||||
help="""The aim is to have a complete module to manage all products repairs.
|
||||
help="""Allows to manage all products repairs.
|
||||
* Add/remove products in the reparation
|
||||
* Impact for stocks
|
||||
* Invoicing (products and/or services)
|
||||
* Warranty concept
|
||||
* Repair quotation report
|
||||
* Notes for the technician and for the final customer
|
||||
* Notes for the technician and for the final customer.
|
||||
It installs the mrp_repair module."""),
|
||||
'module_mrp_operations': fields.boolean("Track dates in work order operations",
|
||||
help="""This allows to add state, date_start,date_stop in production order operation lines (in the "Work Centers" tab).
|
||||
|
@ -52,7 +53,7 @@ class mrp_configuration(osv.osv_memory):
|
|||
A + B + C -> D + E.
|
||||
It installs the mrp_subproduct module."""),
|
||||
'module_stock_location' : fields.boolean("Allow push/pull flows by product",
|
||||
help="""This module supplements the Warehouse application by effectively implementing Push and Pull inventory flows.
|
||||
help="""Allows to implement Push and Pull inventory flows.
|
||||
Typically this could be used to:
|
||||
* Manage product manufacturing chains
|
||||
* Manage default locations per product
|
||||
|
@ -69,10 +70,10 @@ class mrp_configuration(osv.osv_memory):
|
|||
'module_mrp_operations': fields.boolean("Track dates in work order operations",
|
||||
help="""This allows to add state, date_start,date_stop in production order operation lines (in the "Work Centers" tab).
|
||||
It installs the mrp_operations module."""),
|
||||
'group_mrp_routings':fields.boolean("Manage manufacturing operations ",group='base.group_user', xml_id='base.group_mrp_routings',
|
||||
'group_mrp_routings':fields.boolean("Manage manufacturing operations ",group='base.group_user', implied_group='base.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..
|
||||
It assigns the "Routings" group to employee."""),
|
||||
'group_mrp_properties':fields.boolean("Allow different properties per product in your order",group='base.group_user', xml_id='base.group_mrp_routings',
|
||||
'group_mrp_properties':fields.boolean("Allow different properties per product in your order",group='base.group_user', implied_group='base.group_mrp_properties',
|
||||
help="""Allows to Define specific property groups that can be assigned to the properties of your bill of materials.
|
||||
It assigns the "Properties of Product" group to employee."""),
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<record id="view_mrp_config" model="ir.ui.view">
|
||||
<field name="name">Manufacturing Application</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="model">mrp.configuration</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Manufacturing Application">
|
||||
|
@ -45,13 +45,13 @@
|
|||
<record id="action_mrp_configuration" model="ir.actions.act_window">
|
||||
<field name="name">Configure Manufacturing Application</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.config.settings</field>
|
||||
<field name="res_model">mrp.configuration</field>
|
||||
<field name="view_id" ref="view_mrp_config"/>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="base.menu_mrp_config" name="MRP" parent="base.menu_config" sequence="1" action="action_mrp_configuration"/>
|
||||
<menuitem id="base.menu_mrp_config" name="Manufacturing" parent="base.menu_config" sequence="1" action="action_mrp_configuration"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -22,6 +22,13 @@
|
|||
<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_mrp_routings'),
|
||||
ref('base.group_mrp_properties'),
|
||||
])]"/>
|
||||
</record>
|
||||
|
||||
<!-- restrict access to menu -->
|
||||
<record model='ir.ui.menu' id="mrp_Sched_all">
|
||||
<field eval="[(6,0,[ref('group_mrp_manager')])]" name="groups_id"/>
|
||||
|
|
Loading…
Reference in New Issue