[IMP] hr_timesheet,project_issue_sheet:-added domain on account.analytic.account

bzr revid: mtr@mtr-20100831102812-rfsdrbw8xw4m636l
This commit is contained in:
mtr 2010-08-31 15:58:12 +05:30
parent 048509b878
commit 378cead2ec
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
<newline/>
<field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" required="1" domain="[('type','=','service')]"/>
<field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
<field domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" name="account_id" select="1" groups="base.group_extended"/>
<field domain="[('type','=','normal'),('state', '&lt;&gt;', 'close'),('parent_id','!=',False)]" name="account_id" select="1" groups="base.group_extended"/>
<field name="amount"/>
<field name="general_account_id"/>
<field name="journal_id"/>

View File

@ -9,7 +9,7 @@
<field name="arch" type="xml">
<notebook colspan="4">
<page string="Worklogs">
<field name="analytic_account_id" invisible="1" groups="base.group_extended"/>
<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}">
<tree editable="top" string="Timesheet">
<field name="name"/>