account_usability: fix onchange on amount_currency: invert debit and credit
This commit is contained in:
@@ -418,9 +418,9 @@ class AccountMoveLine(models.Model):
|
|||||||
if float_compare(
|
if float_compare(
|
||||||
amount_company_currency, 0,
|
amount_company_currency, 0,
|
||||||
precision_digits=precision) == -1:
|
precision_digits=precision) == -1:
|
||||||
self.debit = amount_company_currency * -1
|
self.credit = amount_company_currency * -1
|
||||||
else:
|
else:
|
||||||
self.credit = amount_company_currency
|
self.debit = amount_company_currency
|
||||||
|
|
||||||
def show_account_move_form(self):
|
def show_account_move_form(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
|||||||
Reference in New Issue
Block a user