[IMP] base: Make currency rate update easier for user
Purpose ======= Setting a currency rate is not user friendly. I struggle to find my way. Should be obvious in currency form Specification ============= - Accounting > configuration > currencies > there should be a default fiter displaying only active currencies - Remove "View Rates" action button - Add one stat button "Rates" which open the currency rate list view, also allow to create new currency rate(here do not open form view just editable=bottom in list)
This commit is contained in:
committed by
Yannick Tivisse
parent
91b07d5092
commit
a5d96f01ac
@@ -27,7 +27,7 @@
|
||||
<field name="name">res.currency.rate.tree</field>
|
||||
<field name="model">res.currency.rate</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Currency Rates">
|
||||
<tree string="Currency Rates" editable="bottom">
|
||||
<field name="name"/>
|
||||
<field name="rate"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
@@ -99,11 +99,10 @@
|
||||
<field name="model">res.currency</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Currency">
|
||||
<header>
|
||||
<button name="%(act_view_currency_rates)d" string="View Rates" type="action" attrs="{'invisible': [('active', '=', False)]}"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button class="oe_stat_button" string="Rates" type="action" name="%(act_view_currency_rates)d"
|
||||
icon="fa-money" widget="statinfo" attrs="{'invisible': [('active', '=', False)]}"/>
|
||||
<button name="toggle_active" type="object"
|
||||
class="oe_stat_button" icon="fa-archive">
|
||||
<field name="active" widget="boolean_button"
|
||||
@@ -136,7 +135,7 @@
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="search_view_id" ref="view_currency_search"/>
|
||||
<field name="context">{'active_test': False}</field>
|
||||
<field name="context">{'active_test': False, 'search_default_active': 1}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_currency_form_company" model="ir.actions.act_window">
|
||||
@@ -145,7 +144,7 @@
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="search_view_id" ref="view_currency_search"/>
|
||||
<field name="context">{'active_test': False}</field>
|
||||
<field name="context">{'active_test': False, 'search_default_active': 1}</field>
|
||||
</record>
|
||||
|
||||
<!-- We override the view res_company here because the action wasn't defined before -->
|
||||
|
||||
Reference in New Issue
Block a user