You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.3 KiB
53 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Inherited tree view for all manufacturing timesheet-->
|
|
<record id="timesheet_view_tree_user" model="ir.ui.view">
|
|
<field name="name">account.analytic.line.view.tree.inherit.manufacturing.timesheet</field>
|
|
<field name="model">account.analytic.line</field>
|
|
<field name="inherit_id"
|
|
ref="hr_timesheet.timesheet_view_tree_user"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='unit_amount']"
|
|
position="after">
|
|
<field name="is_manufacturing" invisible="1"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Inherited tree view for my manufacturing timesheet-->
|
|
<record id="hr_timesheet_line_tree" model="ir.ui.view">
|
|
<field name="name">account.analytic.line.view.tree.inherit.manufacturing.timesheet</field>
|
|
<field name="model">account.analytic.line</field>
|
|
<field name="inherit_id"
|
|
ref="hr_timesheet.hr_timesheet_line_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='unit_amount']"
|
|
position="after">
|
|
<field name="is_manufacturing" invisible="1"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Action for manufacturing timesheet-->
|
|
<record id="manufacturing_timesheet_action" model="ir.actions.act_window">
|
|
<field name="name">Timesheet</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">account.analytic.line</field>
|
|
<field name="view_mode">tree</field>
|
|
<field name="context">{'create': False}</field>
|
|
<field name="domain">[('is_manufacturing','=',True)]
|
|
</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
No Timesheet
|
|
</p>
|
|
</field>
|
|
</record>
|
|
<menuitem id="manufacturing_timesheet_menu"
|
|
name="Timesheet"
|
|
parent="mrp.menu_mrp_root"
|
|
sequence="23"/>
|
|
<menuitem id="manufacturing_timesheet_menu_child"
|
|
name="Timesheet"
|
|
parent="manufacturing_timesheet_menu"
|
|
action="manufacturing_timesheet_action"
|
|
sequence="5"/>
|
|
</odoo>
|
|
|