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.
		
		
		
		
		
			
		
			
				
					
					
						
							45 lines
						
					
					
						
							2.2 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							45 lines
						
					
					
						
							2.2 KiB
						
					
					
				
								<?xml version="1.0" encoding="utf-8"?>
							 | 
						|
								<odoo>
							 | 
						|
								    <data>
							 | 
						|
								        <record id="project_task_timer_inherit_view" model="ir.ui.view">
							 | 
						|
								            <field name="name">project task timer</field>
							 | 
						|
								            <field name="model">project.task</field>
							 | 
						|
								            <field name="inherit_id" ref="project.view_task_form2"/>
							 | 
						|
								            <field name="arch" type="xml">
							 | 
						|
								                <xpath expr="//div[@name='button_box']" position="inside">
							 | 
						|
								                    <button name="toggle_start" type="object"
							 | 
						|
								                            class="oe_stat_button" icon="fa-clock-o">
							 | 
						|
								                        <field name="task_timer" widget="boolean_button"
							 | 
						|
								                            options='{"terminology": {
							 | 
						|
								                                    "string_true": "Started",
							 | 
						|
								                                    "hover_true": "Pause",
							 | 
						|
								                                    "string_false": "Timer",
							 | 
						|
								                                    "hover_false": "Start"
							 | 
						|
								                                }}'/>
							 | 
						|
								                    </button>
							 | 
						|
								                </xpath>
							 | 
						|
								            </field>
							 | 
						|
								        </record>
							 | 
						|
								        <record id="project_task_timer_inherit_view1" model="ir.ui.view">
							 | 
						|
								            <field name="name">project task timer1</field>
							 | 
						|
								            <field name="model">project.task</field>
							 | 
						|
								            <field name="inherit_id" ref="project_task_timer.project_task_timer_inherit_view"/>
							 | 
						|
								            <field name="arch" type="xml">
							 | 
						|
								                <xpath expr="//field[@name='timesheet_ids']/tree/field[@name='unit_amount']" position="before">
							 | 
						|
								                    <field name="date_start" required="1"/>
							 | 
						|
								                    <field name="date_end"/>
							 | 
						|
								                    <field name="timer_duration" invisible="1"/>
							 | 
						|
								                </xpath>
							 | 
						|
								                <xpath expr="//field[@name='progress']" position="after">
							 | 
						|
								                    <field name="is_user_working" invisible="1"/>
							 | 
						|
								                    <label for="duration"/>
							 | 
						|
								                    <div>
							 | 
						|
								                        <button style="pointer-events: none;" class="oe_inline label label-default">
							 | 
						|
								                            <field name="duration" widget="timesheet_uoms" style="color: black;" />
							 | 
						|
								                        </button>
							 | 
						|
								                    </div>
							 | 
						|
								                </xpath>
							 | 
						|
								            </field>
							 | 
						|
								        </record>
							 | 
						|
								    </data>
							 | 
						|
								</odoo>
							 |