mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-28 07:52:04 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -1,29 +1,30 @@
|
|||
<?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>
|
||||
|
||||
<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">
|
||||
<button name="action_view_milestone" position="before">
|
||||
<button
|
||||
name="action_view_timesheet"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-clock-o"
|
||||
invisible="not show_hours_recorded_button"
|
||||
groups="hr_timesheet.group_hr_timesheet_user"
|
||||
>
|
||||
<div class="o_stat_info">
|
||||
<span class="o_stat_value">
|
||||
<field name="timesheet_total_duration" class="mr4"/>
|
||||
<field name="timesheet_encode_uom_id" options="{'no_open': True}"/>
|
||||
</span>
|
||||
<span class="o_stat_text">Recorded</span>
|
||||
</div>
|
||||
</button>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue