On 01/04/11 12:15 +0200, Paul J Stevens wrote: > Hi all, > > I'm working on a module to create invoices based on billable timesheet > lines. > > Everything is working fine, but I now need to adapt the > invoice_activity_open workflow, so all connected timesheet lines are > marked as 'billed' when the invoice is opened. > > So: is it possible to adapt or overload an existing workflow?
Not really in a good way that's why there is the goals [1]
"Change action in workflow to used named function instead of evaluated
python code"
Normally you could make a dirty hack by overrideing the activity (XML record
with id account_invoice.invoice_activity_open) and change the value of action.
> Is there any existing code that does something similar with an existing
> workflow?
No because it is dirty :-)
> Or should I use triggers?
It is a possibility but it will add a little overload to invoice
creation/modification.
[1] http://code.google.com/p/tryton/wiki/Release_2_0_0
--
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/
pgpS0KNm1AyQg.pgp
Description: PGP signature
