summaryrefslogtreecommitdiff
path: root/addons/project_issue_sheet/project_issue_sheet_view.xml
diff options
context:
space:
mode:
authorThibault Francois <tfr@openerp.com>2011-04-07 13:41:45 +0200
committerThibault Francois <tfr@openerp.com>2011-04-07 13:41:45 +0200
commitb11a71fd8751bc4fb33faa1f95f7915e230b86ab (patch)
tree15aa10c814bd240a7f3a6e2ae6cff0ae67b296de /addons/project_issue_sheet/project_issue_sheet_view.xml
parent1a45ff614d9da8c39a120335d2f84ac454c47417 (diff)
[MERGE] improvement project-issue
bzr revid: tfr@openerp.com-20110407114145-xvr27pjquxwk9ff0
Diffstat (limited to 'addons/project_issue_sheet/project_issue_sheet_view.xml')
-rw-r--r--addons/project_issue_sheet/project_issue_sheet_view.xml18
1 files changed, 13 insertions, 5 deletions
diff --git a/addons/project_issue_sheet/project_issue_sheet_view.xml b/addons/project_issue_sheet/project_issue_sheet_view.xml
index 2222ef12ea5..058fd67a946 100644
--- a/addons/project_issue_sheet/project_issue_sheet_view.xml
+++ b/addons/project_issue_sheet/project_issue_sheet_view.xml
@@ -7,14 +7,22 @@
<field name="inherit_id" ref="project_issue.project_issue_form_view" />
<field name="type">form</field>
<field name="arch" type="xml">
+ <field name="project_id" position="attributes">
+ <attribute name="on_change">on_change_project(project_id)</attribute>
+ </field>
+ <xpath expr="/form/notebook" position="before">
+ <field name="analytic_account_id"
+ domain="[('parent_id','!=',False),('partner_id', '=', partner_id),('type', '!=', 'view')]"
+ on_change='on_change_account_id(analytic_account_id)'
+ groups="base.group_extended" />
+ </xpath>
<notebook colspan="4">
<page string="Worklogs">
- <field name="analytic_account_id" invisible="1" domain="[('parent_id','!=',False)]" groups="base.group_extended"/>
- <field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : user_id, 'default_account_id' : analytic_account_id}">
+ <field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : assigned_to, 'default_account_id' : analytic_account_id}">
<tree editable="top" string="Timesheet">
- <field name="name"/>
- <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time"/>
- <field name="account_id" invisible="0" domain="[('partner_id', '=', parent.partner_id)]" on_change="on_change_account_id(account_id)"/>
+ <field name="name"/>
+ <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time"/>
+ <field name="account_id" invisible="0" domain="[('partner_id', '=', parent.partner_id)]" on_change="on_change_account_id(account_id)"/>
<field name="date"/>
<field name="user_id"/>
<field invisible="1" name="journal_id"/>