diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index a7abbf8ab82..647043e8d81 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2146,9 +2146,9 @@ class AccountMoveLine(models.Model): help="The bank statement used for bank reconciliation") # ==== Tax fields ==== - tax_ids = fields.Many2many('account.tax', string='Taxes') + tax_ids = fields.Many2many('account.tax', string='Taxes', help="Taxes that apply on the base amount") tax_line_id = fields.Many2one('account.tax', string='Originator Tax', ondelete='restrict', store=True, - compute='_compute_tax_line_id') + compute='_compute_tax_line_id', help="Indicates that this journal item is a tax line") tax_group_id = fields.Many2one(related='tax_line_id.tax_group_id', string='Originator tax group', readonly=True, store=True, help='technical field for widget tax-group-custom-field') diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index 15cc5bf499e..de720f64d51 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -450,7 +450,10 @@ class account_payment(models.Model): move.line_ids.remove_move_reconcile() move.button_cancel() move.unlink() - rec.state = 'cancelled' + rec.write({ + 'state': 'cancelled', + 'move_name': False, + }) def unlink(self): if any(bool(rec.move_line_ids) for rec in self): diff --git a/addons/account/models/account_reconcile_model.py b/addons/account/models/account_reconcile_model.py index f3b9973adc6..1b68ed9cac1 100644 --- a/addons/account/models/account_reconcile_model.py +++ b/addons/account/models/account_reconcile_model.py @@ -590,6 +590,8 @@ class AccountReconcileModel(models.Model): ''' if not self.match_total_amount: return True + if not candidates: + return False # Match total residual amount. total_residual = 0.0 diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index e6410dfcc68..411696d151f 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -331,7 +331,7 @@
-