[IMP] sale,account,pos: Improve label on config to active currencies
PURPOSE
=======
Simplify the way to activate currencies
SPECIFICATION
=============
On res.company :
Currency_id: options={‘no_open’: True}
oe_edit_only on “Activate more currencies”
In the list view of the currencies, replace the checkbox active by a boolean_toogle widger
There is normally a default filter on the currencies list view to only show the active currencies : this filter should be kept except if you arrive on this screen by clicking on "Activate more currencies" from the res.company and from the settings. Only the menuitem Currencies should only show the active ones
This commit is contained in:
committed by
Yannick Tivisse
parent
f41bd82f66
commit
0c1941ab15
@@ -38,7 +38,7 @@
|
||||
<field name="email"/>
|
||||
<field name="vat"/>
|
||||
<field name="company_registry"/>
|
||||
<field name="currency_id" options="{'no_create': True}" id="company_currency"/>
|
||||
<field name="currency_id" options="{'no_create': True, 'no_open': True}" id="company_currency"/>
|
||||
<field name="parent_id" groups="base.group_multi_company"/>
|
||||
<field name="sequence" invisible="1"/>
|
||||
</group>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
<field name="rate_ids" invisible="1"/>
|
||||
<field name="date"/>
|
||||
<field name="rate"/>
|
||||
<field name="active"/>
|
||||
<field name="active" widget="boolean_toggle"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -160,7 +160,15 @@
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="search_view_id" ref="view_currency_search"/>
|
||||
<field name="context">{'active_test': False, 'search_default_inactive': 1, 'search_default_active': 1}</field>
|
||||
<field name="context">{'active_test': False, 'search_default_active': 1}</field>
|
||||
</record>
|
||||
<record id="action_currency_all_form" model="ir.actions.act_window">
|
||||
<field name="name">Currencies</field>
|
||||
<field name="res_model">res.currency</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="search_view_id" ref="view_currency_search"/>
|
||||
<field name="context">{'active_test': False}</field>
|
||||
</record>
|
||||
|
||||
<!-- We override the view res_company here because the action wasn't defined before -->
|
||||
@@ -170,9 +178,9 @@
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@id='company_currency']" position="after">
|
||||
<label for="id"/>
|
||||
<p class="text-muted">
|
||||
<a href="" type="action" name="%(base.action_currency_form)d">Activate more currencies</a>.
|
||||
<label for="id" string=""/>
|
||||
<p class="text-muted oe_edit_only">
|
||||
<a href="" type="action" name="%(base.action_currency_all_form)d">Activate Other Currencies</a>
|
||||
</p>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user