Skip to content

Commit ef95b9b

Browse files
committed
[FIX]l10n_uy_ux: hide change currency button and currency date picker for Uruguay
1 parent b2d9d80 commit ef95b9b

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

l10n_uy_ux/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
"category": "Localization",
99
"countries": ["uy"],
1010
"license": "LGPL-3",
11-
"version": "19.0.1.2.0",
11+
"version": "19.0.1.3.0",
1212
"depends": [
1313
"l10n_uy_edi",
1414
"certificate",
15+
"account_ux",
1516
],
1617
"data": [
1718
"data/l10n_latam.document.type.csv",

l10n_uy_ux/views/account_move_views.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,20 @@
6565
</field>
6666
</record>
6767

68+
<record id="view_move_form_inherit_hide_currency_button" model="ir.ui.view">
69+
<field name="name">account.move.form.hide.currency.button</field>
70+
<field name="model">account.move</field>
71+
<field name="inherit_id" ref="account_ux.view_move_form"/>
72+
<field name="arch" type="xml">
73+
<!-- Hide the change currency button for Uruguay -->
74+
<button name='%(account_ux.action_account_change_currency)d' position="attributes">
75+
<attribute name="invisible" add="company_id.country_code != 'UY'" separator="or"/>
76+
</button>
77+
<!-- Hide the currency date picker widget for Uruguay -->
78+
<widget name="account_pick_currency_date" position="attributes">
79+
<attribute name="invisible" add="company_id.country_code != 'UY'" separator="or"/>
80+
</widget>
81+
</field>
82+
</record>
83+
6884
</odoo>

0 commit comments

Comments
 (0)