[FIX] Account: Add company on period and fiscalyear tree view with multicompany group

lp bug: https://launchpad.net/bugs/711998 fixed

bzr revid: mra@mra-laptop-20110203092255-qpprxha1wur2br98
This commit is contained in:
Mustufa Rangwala 2011-02-03 14:52:55 +05:30
parent de953d274d
commit 8c316dca64
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@
<tree colors="blue:state in ('draft');gray:state in ('done') " string="Fiscalyear">
<field name="code"/>
<field name="name"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="state"/>
</tree>
</field>
@ -116,6 +117,7 @@
<field name="date_start"/>
<field name="date_stop"/>
<field name="special"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="state"/>
<button name="action_draft" states="done" string="Set to Draft" type="object" icon="terp-document-new" groups="account.group_account_manager"/>
<button name="%(action_account_period_close)d" states="draft" string="Close Period" type="action" icon="terp-camera_test"/>