[11.0][FIX] base_transaction_id (fix migration)

pull/821/head
jcoux 2018-10-05 10:32:23 +02:00 committed by Bhavesh Heliconia
parent 2f069c9952
commit 8e83a47068
1 changed files with 2 additions and 3 deletions

View File

@ -33,12 +33,11 @@ class AccountMoveLine(models.Model):
return prepared_lines
@api.model
def domain_move_lines_for_reconciliation(self, excluded_ids=None,
str=False):
def domain_move_lines_for_reconciliation(self, str=False):
"""Add transaction_ref in search of move lines."""
_super = super(AccountMoveLine, self)
_get_domain = _super.domain_move_lines_for_reconciliation
domain = _get_domain(excluded_ids=excluded_ids, str=str)
domain = _get_domain(str=str)
if not str and str != '/':
return domain
domain_trans_ref = [('transaction_ref', 'ilike', str)]