19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -3,9 +3,8 @@
<record id="action_timesheet_from_invoice" model="ir.actions.act_window">
<field name="name">Timesheets</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.analytic.line</field>
<field name="view_mode">tree,form,graph,pivot,kanban</field>
<field name="view_mode">list,form,graph,pivot,kanban</field>
<field name="context">{
'create': False,
'edit': False,
@ -25,7 +24,7 @@
<record id="action_timesheet_from_invoice_view_tree" model="ir.actions.act_window.view">
<field name="sequence" eval="1"/>
<field name="view_mode">tree</field>
<field name="view_mode">list</field>
<field name="view_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
<field name="act_window_id" ref="action_timesheet_from_invoice"/>
</record>
@ -65,10 +64,10 @@
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<field name="timesheet_count" invisible="1"/>
<button name="%(sale_timesheet.action_timesheet_from_invoice)d" type="action" class="oe_stat_button" icon="fa-clock-o" attrs="{'invisible': [('timesheet_count', '=', 0)]}" groups="hr_timesheet.group_hr_timesheet_user">
<button name="%(sale_timesheet.action_timesheet_from_invoice)d" type="action" class="oe_stat_button" icon="fa-clock-o" 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_total_duration" class="mr4" nolabel="1"/>
<field name="timesheet_encode_uom_id" options="{'no_open': True}"/>
</span>
<span class="o_stat_text">Recorded</span>