Skip to content

Commit 63acdeb

Browse files
committed
[IMP] account_ux: improve usability to not allow to try to change amount_currency field when register a payment
closes #550 Signed-off-by: Camila Vives <[email protected]>
1 parent eb53ba9 commit 63acdeb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

account_ux/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
##############################################################################
2020
{
2121
'name': 'Account UX',
22-
'version': "17.0.2.0.0",
22+
'version': "17.0.2.1.0",
2323
'category': 'Accounting',
2424
'sequence': 14,
2525
'summary': '',

account_ux/views/account_move_views.xml

+12
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,16 @@
118118
</field>
119119
</field>
120120
</record>
121+
122+
<record id="view_account_move_line_form" model="ir.ui.view">
123+
<field name="name">account.move.line.form</field>
124+
<field name="model">account.move.line</field>
125+
<field name="inherit_id" ref="account.view_move_line_form"/>
126+
<field name="arch" type="xml">
127+
<field name="amount_currency" position="attributes">
128+
<attribute name="readonly">1</attribute>
129+
</field>
130+
</field>
131+
</record>
132+
121133
</odoo>

0 commit comments

Comments
 (0)