Saving a model with a 02M function field fails with proteus
Here's the traceback:
Traceback (most recent call last):
File "/usr/lib/python3.7/doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "_erase.rst[8]>", line 1, in
party.save()
File "/home/nicoe/projets/tryton/tryton-env/SearchOldPartyCode-#8570/proteus/proteus/__init__.py", line 93, in newfunc
return self.func(owner, [instance], *args, **kwargs)
File "/home/nicoe/projets/tryton/tryton-env/SearchOldPartyCode-#8570/proteus/proteus/__init__.py", line 816, in save
ids = proxy.create(values, context)
File "/home/nicoe/projets/tryton/tryton-env/SearchOldPartyCode-#8570/proteus/proteus/config.py", line 188, in __call__
result = rpc.result(meth(*args, **kwargs))
File "/home/nicoe/projets/tryton/tryton-env/SearchOldPartyCode-#8570/trytond/trytond/modules/party/party.py", line 253, in create
return super(Party, cls).create(vlist)
File "/home/nicoe/projets/tryton/tryton-env/SearchOldPartyCode-#8570/trytond/trytond/model/modelsql.py", line 159, in wrapper
return func(cls, *args, **kwargs)
File "/home/nicoe/projets/tryton/tryton-env/SearchOldPartyCode-#8570/trytond/trytond/model/modelsql.py", line 664, in create
field.set(cls, fname, *fargs)
File "/home/nicoe/projets/tryton/tryton-env/SearchOldPartyCode-#8570/trytond/trytond/model/fields/function.py", line 126, in set
**Model.__names__(self.name)))
NotImplementedError: Missing setter function for field "Replaced Parties" in "Party".
While investigating this I noticed that proteus was not patched against #6988 (closed) and this fix would also solve the issue.