Files
manufacture/mrp_operations_project/views/mrp_production_view.xml
Pedro M. Baeza 21000de524 [ADD] mrp_operations_project
==================================
MRP Project Link (with operations)
==================================

This module links manufacturing operations with projects. It performs the
following actions:

* Auto-create tasks for work orders with assigned operators.
* Add a tab where to encode task for the work order.
* Add a link on task for the work order scheduled product.

Installation
============

This modules is auto-installed when you install *mrp_operations_extension* and
*mrp_project*.

Usage
=====

In a manufacturing order (MO) containing work orders with at least one operator
assigned, when a work order is started, a task is created and assigned to the
operator.

In the work order form, a new tab "Operators time" is added to input the the
work log.

Besides, in the related tasks, the products scheduled in the work order are
listed.
2015-12-09 14:43:58 +01:00

57 lines
2.7 KiB
XML

<openerp>
<data>
<record model="ir.ui.view" id="project_task_work_mrp">
<field name="name">Project task work view for MRP</field>
<field name="model">project.task.work</field>
<field name="priority" eval="999"/>
<field name="arch" type="xml">
<tree editable="top">
<field name="task_id"
context="{'name_show_user': True}"
domain="[('id', 'in', parent.task_m2m[0][2])]"
on_change="onchange_task_id(task_id)"
/>
<field name="user_id"/>
<field name="date"/>
<field name="hours" widget="float_time"/>
<button name="button_end_work"
string="Stop"
type="object"
icon="STOCK_STOP"
attrs="{'invisible': [('hours', '>', 0)]}"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="mrp_production_workcenter_form_view_inherit">
<field name="name">Workorder form view (task works)</field>
<field name="model">mrp.production.workcenter.line</field>
<field name="groups_id" eval="[(6, 0, [ref('project.group_tasks_work_on_tasks')])]"/>
<field name="inherit_id" ref="mrp_operations.mrp_production_workcenter_form_view_inherit" />
<field name="arch" type="xml">
<page string="Information" position="after">
<page string="Operators time">
<field name="task_m2m" invisible="1"/>
<field name="work_ids" context="{'name_show_user': True, 'tree_view_ref': 'mrp_project.project_task_work_mrp'}"/>
</page>
</page>
</field>
</record>
<record model="ir.ui.view" id="mrp_production_project_form_view">
<field name="name">mrp.production.project.inh.form</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
<field name="arch" type="xml">
<xpath expr="//field[@name='workcenter_lines']/form//page[@string='Information']" position="after">
<page string="Operators time">
<field name="task_m2m" invisible="1"/>
<field name="work_ids" context="{'name_show_user': True, 'tree_view_ref': 'mrp_project.project_task_work_mrp'}"/>
</page>
</xpath>
</field>
</record>
</data>
</openerp>