2008-09-16 11:45:13 +00:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<openerp>
|
2008-10-27 15:29:13 +00:00
|
|
|
<data>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<!-- analytic_user_funct_grid views -->
|
|
|
|
<record model="ir.ui.view" id="analytic_user_funct_grid_tree">
|
|
|
|
<field name="name">analytic_user_funct_grid.tree</field>
|
2011-10-04 11:54:41 +00:00
|
|
|
<field name="model">analytic.user.funct.grid</field>
|
2008-10-27 15:29:13 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-10-28 10:33:28 +00:00
|
|
|
<tree string="Invoicing Data" editable="bottom">
|
2013-09-04 14:11:22 +00:00
|
|
|
<field name="user_id" on_change="onchange_user_product_id(user_id, product_id)" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'base.group_sale_salesman']}"/>
|
2012-10-28 10:33:28 +00:00
|
|
|
<field name="product_id" on_change="onchange_user_product_id(user_id, product_id)" domain="[('type','=','service')]"/>
|
|
|
|
<field name="price"/>
|
2013-03-05 09:25:05 +00:00
|
|
|
<field name="uom_id" groups="product.group_uom"/>
|
2008-10-27 15:29:13 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<record model="ir.ui.view" id="analytic_user_funct_grid_form">
|
|
|
|
<field name="name">analytic_user_funct_grid.form</field>
|
2011-10-04 11:54:41 +00:00
|
|
|
<field name="model">analytic.user.funct.grid</field>
|
2008-10-27 15:29:13 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-10-28 10:33:28 +00:00
|
|
|
<form string="Invoicing Data">
|
|
|
|
<group>
|
2013-09-04 14:11:22 +00:00
|
|
|
<field name="user_id" on_change="onchange_user_product_id(user_id, product_id)" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'base.group_sale_salesman']}"/>
|
2012-10-28 10:33:28 +00:00
|
|
|
<field name="product_id" domain="[('type','=','service')]" on_change="onchange_user_product_id(user_id, product_id)"/>
|
|
|
|
<field name="price"/>
|
2013-03-05 09:25:05 +00:00
|
|
|
<field name="uom_id" groups="product.group_uom"/>
|
2012-10-28 10:33:28 +00:00
|
|
|
</group>
|
2008-10-27 15:29:13 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<!-- account.analytic.account inherited view -->
|
|
|
|
<record model="ir.ui.view" id="view_account_analytic_account_form_inherit">
|
|
|
|
<field name="name">account.analytic.account.form</field>
|
|
|
|
<field name="model">account.analytic.account</field>
|
2012-10-28 10:33:28 +00:00
|
|
|
<field eval="60" name="priority"/>
|
2012-05-28 10:43:10 +00:00
|
|
|
<field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
|
2008-10-27 15:29:13 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-10-28 10:33:28 +00:00
|
|
|
<separator name="description" position="before">
|
|
|
|
<div name="user_function_price" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}">
|
|
|
|
<separator string="Invoice Price Rate per User"/>
|
|
|
|
<p class="oe_grey oe_edit_only">
|
|
|
|
Define a specific service (e.g. Senior Consultant)
|
|
|
|
and price for some users to use these data instead
|
|
|
|
of the default values when invoicing the customer.
|
|
|
|
</p>
|
|
|
|
<p class="oe_grey oe_edit_only">
|
2014-07-09 11:39:38 +00:00
|
|
|
Odoo will recursively search on parent accounts
|
2012-10-28 10:33:28 +00:00
|
|
|
to check if specific conditions are defined for a
|
|
|
|
specific user. This allows to set invoicing
|
|
|
|
conditions for a group of contracts.
|
|
|
|
</p>
|
|
|
|
<field name="user_product_ids"/>
|
|
|
|
</div>
|
|
|
|
</separator>
|
2008-10-27 15:29:13 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<!-- hr_timesheet_sheet.sheet inherited view -->
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_sheet_form_inherit">
|
2009-04-06 15:15:03 +00:00
|
|
|
<field name="name">hr.timesheet.sheet.form.tree</field>
|
2008-10-27 15:29:13 +00:00
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="priority" eval="18"/>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2014-12-01 13:43:04 +00:00
|
|
|
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='account_id']" position="attributes">
|
|
|
|
<attribute name="on_change">on_change_account_id(account_id, user_id, unit_amount)</attribute>
|
2009-04-06 15:15:03 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-10-04 11:54:41 +00:00
|
|
|
|
2009-04-06 15:15:03 +00:00
|
|
|
<!-- hr_timesheet_sheet.sheet inherited view -->
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_sheet_form_inherit1">
|
|
|
|
<field name="name">hr.timesheet.sheet.form.form</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="priority" eval="19"/>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2015-02-05 12:10:56 +00:00
|
|
|
<xpath expr="//field[@name='timesheet_ids']/form/field[@name='account_id']" position="attributes">
|
|
|
|
<attribute name="domain">[('type','=','normal'),('state', '<>', 'close')]</attribute>
|
|
|
|
<attribute name="on_change">on_change_account_id(account_id, user_id, unit_amount)</attribute>
|
|
|
|
<attribute name="context">{'default_use_timesheets': 1}</attribute>
|
2008-10-27 15:29:13 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<!-- hr.analytic.timesheet inherited views -->
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_line_form_inherit">
|
|
|
|
<field name="name">hr.analytic.timesheet.form</field>
|
|
|
|
<field name="model">hr.analytic.timesheet</field>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2015-02-05 12:10:56 +00:00
|
|
|
<xpath expr="//field[@name='account_id']" position="attributes">
|
|
|
|
<attribute name="domain">[('type','=','normal'),('state', '<>', 'close')]</attribute>
|
|
|
|
<attribute name="on_change">on_change_account_id(account_id, user_id, unit_amount)</attribute>
|
2008-10-27 15:29:13 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_line_form_inherit_2">
|
|
|
|
<field name="name">hr.analytic.timesheet.form</field>
|
|
|
|
<field name="model">hr.analytic.timesheet</field>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-08 13:15:16 +00:00
|
|
|
<xpath expr="//field[@name='user_id']" position="replace">
|
2012-06-28 06:17:36 +00:00
|
|
|
<field name="user_id" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>
|
2008-10-27 15:29:13 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_line_tree_inherit">
|
|
|
|
<field name="name">hr.analytic.timesheet.tree</field>
|
|
|
|
<field name="model">hr.analytic.timesheet</field>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
2015-02-05 12:10:56 +00:00
|
|
|
<xpath expr="/tree/field[@name='account_id']" position="attributes">
|
|
|
|
<attribute name="domain">[('type','=','normal'),('state', '<>', 'close')]</attribute>
|
|
|
|
<attribute name="on_change">on_change_account_id(account_id, user_id, unit_amount)</attribute>
|
2008-10-27 15:29:13 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_line_tree_inherit_2">
|
|
|
|
<field name="name">hr.analytic.timesheet.tree</field>
|
|
|
|
<field name="model">hr.analytic.timesheet</field>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="/tree/field[@name='user_id']" position="replace">
|
2013-09-04 14:11:22 +00:00
|
|
|
<field name="user_id" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)" context="{'default_groups_ref': ['base.group_user']}"/>
|
2008-10-27 15:29:13 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 11:45:13 +00:00
|
|
|
|
2008-10-27 15:29:13 +00:00
|
|
|
</data>
|
2008-09-16 11:45:13 +00:00
|
|
|
</openerp>
|