123456789101112131415161718192021222324252627282930 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <record id="view_order_form_inherit_sale_timesheet" model="ir.ui.view">
- <field name="name">sale.order.form.sale.timesheet</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale_project.view_order_form_inherit_sale_project"/>
- <field name="arch" type="xml">
- <data>
- <xpath expr="//button[@name='action_view_task']" position="after">
- <field name="timesheet_count" invisible="1"/>
- <button type="object"
- name="action_view_timesheet"
- class="oe_stat_button"
- icon="fa-clock-o"
- attrs="{'invisible': [('timesheet_count', '=', 0)]}"
- groups="hr_timesheet.group_hr_timesheet_user">
- <div class="o_field_widget o_stat_info">
- <span class="o_stat_value">
- <field name="timesheet_total_duration" class="mr4" widget="statinfo" nolabel="1"/>
- <field name="timesheet_encode_uom_id" options="{'no_open': True}"/>
- </span>
- <span class="o_stat_text">Recorded</span>
- </div>
- </button>
- </xpath>
- </data>
- </field>
- </record>
- </odoo>
|