mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Fix issue from last commit: field on move line is "transaction_ref"
This commit is contained in:
@@ -35,7 +35,7 @@ class AccountMoveCompletionRule(models.Model):
|
||||
"""
|
||||
res = {}
|
||||
so_obj = self.env['sale.order']
|
||||
sales = so_obj.search([('transaction_id', '=', line.transaction_id)])
|
||||
sales = so_obj.search([('transaction_id', '=', line.transaction_ref)])
|
||||
if len(sales) > 1:
|
||||
raise ErrorTooManyPartner(
|
||||
_('Line named "%s" was matched by more than '
|
||||
@@ -63,7 +63,7 @@ class AccountMoveCompletionRule(models.Model):
|
||||
res = {}
|
||||
invoice_obj = self.env['account.invoice']
|
||||
invoices = invoice_obj.search(
|
||||
[('transaction_id', '=', line.transaction_id)])
|
||||
[('transaction_id', '=', line.transaction_ref)])
|
||||
if len(invoices) > 1:
|
||||
raise ErrorTooManyPartner(
|
||||
_('Line named "%s" was matched by more than '
|
||||
|
||||
Reference in New Issue
Block a user