I am trying to work ‘the good way’ and using proteus to do some inserts.
i think i missed something
from proteus import config, Model, Wizard, Report
(...)
Party = Model.get('party.party')
Identifier = Model.get('party.identifier')
(...)
party = Party(name='tartempion')
party.identifiers.pop()
it says
File "/usr/lib/python3/dist-packages/proteus/__init__.py", line 598, in pop
self.record_removed.add(self[index])
~~~~^^^^^^^
IndexError: list index out of range
The new methid is used to create record in One2Many fields which will be saved latter with the parent records, having the same behaviour as tryton client.