diff --git a/invoice.py b/invoice.py index ccdb91e355..28ff10aace 100644 --- a/invoice.py +++ b/invoice.py @@ -1963,7 +1963,7 @@ class PayInvoiceAsk(WizardOSV): currency_digits = fields.Integer('Currency Digits', readonly=True, on_change_with=['currency']) lines_to_pay = fields.Char(string='Lines to Pay', size=None) - lines = fields.One2Many('account.move.line', 'ham', 'Lines', + lines = fields.Many2Many('account.move.line', None, None, None, 'Lines', domain="[('id', 'in', eval(lines_to_pay)), " \ "('reconciliation', '=', False)]", states={ diff --git a/invoice.xml b/invoice.xml index 93bbdb9b03..0ca6ced087 100644 --- a/invoice.xml +++ b/invoice.xml @@ -897,7 +897,7 @@ this repository contains the full copyright notices and license terms. -->