summaryrefslogtreecommitdiff
path: root/addons/account/models/account_move.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/account/models/account_move.py')
-rw-r--r--addons/account/models/account_move.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index 29a7c09416f..10b0b3b8e24 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -219,7 +219,7 @@ class AccountMoveLine(models.Model):
_description = "Journal Item"
_order = "date desc, id desc"
- @api.depends('debit', 'credit', 'amount_currency', 'currency_id', 'matched_debit_ids.amount', 'matched_credit_ids.amount', 'account_id.currency_id')
+ @api.depends('debit', 'credit', 'amount_currency', 'currency_id', 'matched_debit_ids.amount', 'matched_credit_ids.amount', 'account_id.currency_id', 'move_id.state')
def _amount_residual(self):
""" Computes the residual amount of a move line from a reconciliable account in the company currency and the line's currency.
This amount will be 0 for fully reconciled lines or lines from a non-reconciliable account, the original line amount
@@ -352,8 +352,8 @@ class AccountMoveLine(models.Model):
help="This field is used for payable and receivable journal entries. You can put the limit date for the payment of this line.")
date = fields.Date(related='move_id.date', string='Date', required=True, index=True, default=fields.Date.context_today, store=True, copy=False)
analytic_line_ids = fields.One2many('account.analytic.line', 'move_id', string='Analytic lines', oldname="analytic_lines")
- tax_ids = fields.Many2many('account.tax', string='Taxes', readonly=True)
- tax_line_id = fields.Many2one('account.tax', string='Originator tax', readonly=True)
+ tax_ids = fields.Many2many('account.tax', string='Taxes')
+ tax_line_id = fields.Many2one('account.tax', string='Originator tax')
analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account')
company_id = fields.Many2one('res.company', related='account_id.company_id', string='Company', store=True)
counterpart = fields.Char("Counterpart", compute='_get_counterpart', help="Compute the counter part accounts of this journal item for this journal entry. This can be needed in reports.")