From a28347e480ef1bc1bdc2197cca97ba41e149c7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 27 Feb 2009 20:06:07 +0100 Subject: [PATCH] Use real Many2Many for pay_invoice.ask --- invoice.py | 2 +- invoice.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. -->