Skip to content

Commit

Permalink
[FW][IMP]l10n_ar_ux: Hide change rate button for non-argentinan compa…
Browse files Browse the repository at this point in the history
…nies

Ticket:53397

closes #712

Forward-port-of: #642
Forward-port-of: #639
Signed-off-by: mem-adhoc <mem@adhoc.com.ar>
  • Loading branch information
pablohmontenegro committed Jul 7, 2023
1 parent 2c7d36e commit 8b0755a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l10n_ar_ux/__manifest__.py
@@ -1,6 +1,6 @@
{
'name': 'Argentinian Accounting UX',
'version': "16.0.1.5.0",
'version': "16.0.1.6.0",
'category': 'Localization/Argentina',
'sequence': 14,
'author': 'ADHOC SA',
Expand Down
4 changes: 2 additions & 2 deletions l10n_ar_ux/views/account_move_view.xml
Expand Up @@ -9,8 +9,8 @@
<field name="arch" type="xml">
<button name="%(account_ux.action_account_change_currency)d" position="after">
<span groups="base.group_multi_currency" attrs="{'invisible': [('other_currency', '=', False)]}">(</span>
<field name="l10n_ar_currency_rate" attrs="{'invisible': ['|', '|', ('l10n_ar_currency_rate', '=', False), ('l10n_ar_currency_rate', '=', 0.0), ('other_currency', '=', False)]}"/>
<field name="computed_currency_rate" string="Currency Rate (preview)" attrs="{'invisible': ['|', ('l10n_ar_currency_rate', '!=', 0.0), ('other_currency', '=', False)]}"/>
<field name="l10n_ar_currency_rate" attrs="{'invisible': ['|', ('country_code', '!=', 'AR'), '|', '|', ('l10n_ar_currency_rate', '=', False), ('l10n_ar_currency_rate', '=', 0.0), ('other_currency', '=', False)]}"/>
<field name="computed_currency_rate" string="Currency Rate (preview)" attrs="{'invisible': ['|', ('country_code', '!=', 'AR'), '|', ('l10n_ar_currency_rate', '!=', 0.0), ('other_currency', '=', False)]}"/>
<span groups="base.group_multi_currency" attrs="{'invisible': [('other_currency', '=', False)]}">)</span>
<button name="%(action_account_move_change_rate)d" type="action" icon="fa-pencil" style="color:red" class="btn-link" attrs="{'invisible':['|', '|', '|' , '|', ('state','!=','draft'), ('other_currency', '=', False), ('country_code', '!=', 'AR'), ('l10n_ar_currency_rate', '=', 0.0), ('l10n_ar_currency_rate', '=', False)]}" title="Edit Rate"/>
<button name="%(action_account_move_change_rate)d" type="action" icon="fa-pencil" class="btn-link" attrs="{'invisible':['|', '|', '|' , ('state','!=','draft'), ('other_currency', '=', False), ('country_code', '!=', 'AR'), ('l10n_ar_currency_rate', '!=', 0.0)]}" title="Edit Rate"/>
Expand Down

0 comments on commit 8b0755a

Please sign in to comment.