Skip to content

Commit 44af31a

Browse files
[IMP] Allow to modify currency_id on account loan
1 parent 214067b commit 44af31a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

account_loan/models/account_loan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def _default_company(self):
163163
currency_id = fields.Many2one(
164164
"res.currency",
165165
compute="_compute_currency",
166-
readonly=True,
166+
readonly=False,
167167
)
168168
journal_type = fields.Char(compute="_compute_journal_type")
169169
journal_id = fields.Many2one(

account_loan/views/account_loan_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
attrs="{'invisible': ['|', ('is_leasing', '=', False), ('long_term_loan_account_id', '=', False)]}"
150150
/>
151151
<field name="interest_expenses_account_id" />
152-
<field name="currency_id" invisible="1" />
152+
<field name="currency_id" />
153153
</group>
154154
</group>
155155
</page>

0 commit comments

Comments
 (0)