summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorSofia <sahibsofia@gmail.com>2008-09-16 17:15:13 +0530
committerSofia <sahibsofia@gmail.com>2008-09-16 17:15:13 +0530
commita268fad012aba95b9d72b9b9fd05854eb9da43e3 (patch)
tree9d18170b1d07b17fd49e5afc40ce1cb43dc3f18b /addons/analytic_user_function/analytic_user_function_view.xml
parent05f980e2a68d0d8bdeaeb133848547f0ac525d3c (diff)
The following modules are merged::
addons-extra/product_procurement -> mrp module addons-extra/inventory_merge -> stock addons-extra/product_pricelist_print -> product addons-extra/invoice_payment -> account bzr revid: sahibsofia@gmail.com-20080916114513-7an9yz59hucjmjk8
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
-rw-r--r--addons/analytic_user_function/analytic_user_function_view.xml109
1 files changed, 109 insertions, 0 deletions
diff --git a/addons/analytic_user_function/analytic_user_function_view.xml b/addons/analytic_user_function/analytic_user_function_view.xml
new file mode 100644
index 00000000000..340d255f182
--- /dev/null
+++ b/addons/analytic_user_function/analytic_user_function_view.xml
@@ -0,0 +1,109 @@
+<?xml version="1.0" ?>
+<openerp>
+ <data>
+
+ <!-- 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>
+ <field name="model">analytic_user_funct_grid</field>
+ <field name="type">tree</field>
+ <field name="arch" type="xml">
+ <tree string="User's Product for this Analytic Account" editable="bottom">
+ <field name="user_id" required="1"/>
+ <field name="product_id" required="1" />
+ </tree>
+ </field>
+ </record>
+
+ <record model="ir.ui.view" id="analytic_user_funct_grid_form">
+ <field name="name">analytic_user_funct_grid.form</field>
+ <field name="model">analytic_user_funct_grid</field>
+ <field name="type">form</field>
+ <field name="arch" type="xml">
+ <form string="User's Product for this Analytic Account">
+ <field name="user_id" required="1"/>
+ <field name="product_id" required="1"/>
+ </form>
+ </field>
+ </record>
+
+ <!-- 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>
+ <field name="type">form</field>
+ <field name="inherit_id" ref="account.view_account_analytic_account_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="/form/notebook/page" position="after">
+ <page string="Users/Products Rel.">
+ <field name="user_product_ids" colspan="4" nolabel="1"/>
+ </page>
+ </xpath>
+ </field>
+ </record>
+
+ <!-- hr_timesheet_sheet.sheet inherited view -->
+ <record model="ir.ui.view" id="hr_timesheet_sheet_form_inherit">
+ <field name="name">hr.timesheet.sheet.form</field>
+ <field name="model">hr_timesheet_sheet.sheet</field>
+ <field name="type">form</field>
+ <field name="priority" eval="18"/>
+ <field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="/form/notebook/page/field[@name='timesheet_ids']/tree/field[@name='account_id']" position="replace">
+ <field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(user_id, account_id, unit_amount)"/>
+ </xpath>
+ </field>
+ </record>
+
+ <!-- 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="type">form</field>
+ <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="/form/field[@name='account_id']" position="replace">
+ <field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(user_id, account_id, unit_amount)" select="1"/>
+ </xpath>
+ </field>
+ </record>
+
+ <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="type">form</field>
+ <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="/form/field[@name='user_id']" position="replace">
+ <field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>
+ </xpath>
+ </field>
+ </record>
+
+ <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="type">tree</field>
+ <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
+ <field name="arch" type="xml">
+ <xpath expr="/tree/field[@name='account_id']" position="replace">
+ <field name="account_id" domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" on_change="on_change_account_id(user_id, account_id, unit_amount)" select="1"/>
+ </xpath>
+ </field>
+ </record>
+
+ <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="type">tree</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">
+ <field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id, account_id, unit_amount)"/>
+ </xpath>
+ </field>
+ </record>
+
+ </data>
+</openerp>