On Friday, January 9, 2015 at 9:50:03 PM UTC-3, Cédric Krier wrote: > > 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 > > I had defined somewhere else in the code and that is what wasn't doing anything
> > 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 > > Sorry, I did it because was following the same issue and a similar question, but was not following anything said, I'll just put it at the bottom next time Have a great day. Mariano > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] <javascript:> > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ >
