diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 91a1d4cf05d..c6933190d78 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2173,9 +2173,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_base_amount = fields.Monetary(string="Base Amount", store=True, currency_field='company_currency_id') tax_exigible = fields.Boolean(string='Appears in VAT report', default=True, diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index 7fbb328c69d..d04a4b05520 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -454,7 +454,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, + }) @api.multi def unlink(self): diff --git a/addons/account/models/account_reconcile_model.py b/addons/account/models/account_reconcile_model.py index 2834791ec38..108d7b75550 100644 --- a/addons/account/models/account_reconcile_model.py +++ b/addons/account/models/account_reconcile_model.py @@ -580,6 +580,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 f557e54b64d..a58c574020b 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -331,7 +331,7 @@
-