On 09/08/11 20:52 +0200, Paul J Stevens wrote:
> Hi all,
> 
> I'm working on this custom module for generating reminders on overdue
> payments of invoices.
> 
> All is fine. Just one thing bothers me. When I generate the report, I
> want to store the last-sent reminder on the party.
> 
> I'm using the same pattern used in account_invoice/invoice.py [1]
> and I do see the UPDATE query going out to the database. But then, a
> ROLLBACK is issued. So what gives? Do I need to wrap this in a
> transaction? Can I prevent the ROLLBACK?

The value if the _rpc dictionary corresponding of your call  must be True.
See
http://doc.tryton.org/2.0/trytond/doc/ref/models/models.html#trytond.model.Model._rpc

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpEvLHLi5HmM.pgp
Description: PGP signature

Reply via email to