- move the service product from product to hr_timesheet - move default time unit for services from sale to account_analytic_analysis to ease the configuration
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="view_sales_config" model="ir.ui.view">
|
|
<field name="name">sale settings</field>
|
|
<field name="model">sale.config.settings</field>
|
|
<field name="inherit_id" ref="sale.view_sales_config"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='module_analytic_user_function']" position="inside">
|
|
<div>
|
|
<field name="group_template_required" class="oe_inline"/>
|
|
<label for="group_template_required"/>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//div[@name='div_default_options']" position="inside">
|
|
<div name='time_unit' attrs="{'required':[('module_account_analytic_analysis','=',True)]}">
|
|
<label for="time_unit"/>
|
|
<field name="time_unit" domain="[('category_id.name','=','Working Time')]" class="oe_inline"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|
|
|