Skip to content

Commit

Permalink
[IMP] account_ux: improve usability to not allow to try to change amo…
Browse files Browse the repository at this point in the history
…unt_currency field when register a payment

closes #550

Signed-off-by: Camila Vives <[email protected]>
  • Loading branch information
rov-adhoc committed Sep 20, 2024
1 parent eb53ba9 commit 63acdeb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion account_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Account UX',
'version': "17.0.2.0.0",
'version': "17.0.2.1.0",
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
12 changes: 12 additions & 0 deletions account_ux/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,16 @@
</field>
</field>
</record>

<record id="view_account_move_line_form" model="ir.ui.view">
<field name="name">account.move.line.form</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form"/>
<field name="arch" type="xml">
<field name="amount_currency" position="attributes">
<attribute name="readonly">1</attribute>
</field>
</field>
</record>

</odoo>

0 comments on commit 63acdeb

Please sign in to comment.