[MERGE][IMP] account (partner view): hide accounting settings to users that have no accounting access rights
bzr revid: rim@openerp.com-20140428095650-8exnl50iaa5m1p70
This commit is contained in:
commit
7b65c104ab
|
@ -97,7 +97,7 @@
|
||||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<page name="sales_purchases" position="after" version="7.0">
|
<page name="sales_purchases" position="after" version="7.0">
|
||||||
<page string="Accounting" col="4" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}">
|
<page string="Accounting" col="4" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}" groups="account.group_account_invoice">
|
||||||
<group>
|
<group>
|
||||||
<group>
|
<group>
|
||||||
<field name="property_account_position" widget="selection"/>
|
<field name="property_account_position" widget="selection"/>
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
<page string="Accounting" name="accounting_disabled" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}">
|
<page string="Accounting" name="accounting_disabled" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}" groups="account.group_account_invoice">
|
||||||
<div>
|
<div>
|
||||||
<p>Accounting-related settings are managed on <button name="open_commercial_entity" type="object" string="the parent company" class="oe_link"/></p>
|
<p>Accounting-related settings are managed on <button name="open_commercial_entity" type="object" string="the parent company" class="oe_link"/></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue