On 09 Jan 12:02, Mariano Ramon wrote:
> I'm now having trouble doing stuff when it updates the record.
> 
> I tried extending the methods write and save, but none are doing anything.
> if i use this when creating records:
> 
> class CustomParty(ModelSQL, ModelView):
>     'Party'
>     __name__ = 'party.party'
> 
>     @classmethod
>         def create(cls, vlist):
>             records = super(CustomParty, cls).create(vlist)
> 
> what should I use for when updating?
> and when deleting?

It is the methods: write, delete

http://doc.tryton.org/3.4/trytond/doc/ref/models/models.html#trytond.model.ModelStorage.write
http://doc.tryton.org/3.4/trytond/doc/ref/models/models.html#trytond.model.ModelStorage.delete

PS: Please don't top-post on this mailing list, see
http://groups.tryton.org/netiquette

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to