Raise NotImplementedError when setting Function field without setter

issue7985
review265101002
This commit is contained in:
Cédric Krier
2019-03-27 00:28:57 +01:00
parent 97828a5e6b
commit f7ef932d3f
+2 -2
View File
@@ -295,8 +295,8 @@ class Sale(metaclass=PoolMeta):
'readonly': Eval('state') != 'draft',
},
depends=['state'])
advance_payment_invoices = fields.Function(fields.One2Many(
'account.invoice', None, "Advance Payment Invoices"),
advance_payment_invoices = fields.Function(fields.Many2Many(
'account.invoice', None, None, "Advance Payment Invoices"),
'get_advance_payment_invoices',
searcher='search_advance_payment_invoices')