Skip to content

Commit

Permalink
[FIX] project_issue_sheet: position of the analytic account in the is…
Browse files Browse the repository at this point in the history
…sue form

The `analytic_account_id` was set after the field `active`.
This `active` field has been moved, to the top of the form,
in a button, at revision ed95043.
Placing the analytic account after this field is
therefore no longer the brightest idea.

In addition, there is no longer any `parent_id` field
on the `account.analytic.account` model, making the according
domain invalid.

Fixes odoo#8668
  • Loading branch information
beledouxdenis committed Oct 9, 2015
1 parent bcc136f commit 326325a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions addons/project_issue_sheet/project_issue_sheet_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
<field name="project_id" position="attributes">
<attribute name="on_change">on_change_project(project_id)</attribute>
</field>
<field name="active" position="after">
<field name="analytic_account_id"
domain="[('parent_id','!=',False),('partner_id', '=', partner_id)]"/>
</field>
<xpath expr="//notebook/page[@name='extra_info']" position="before">
<page string="Timesheets" groups="project.group_tasks_work_on_tasks,project.group_time_work_estimation_tasks">
<group>
<field name="analytic_account_id" domain="[('partner_id', '=', partner_id)]"/>
</group>
<field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : uid, 'default_account_id' : analytic_account_id, 'default_is_timesheet':1}"
groups="base.group_user">
<tree editable="top" string="Timesheet Activities">
Expand Down

0 comments on commit 326325a

Please sign in to comment.