Łukasz Nowak
2007-04-10 14:54:59 UTC
Hello,
Creating Sale Invoice Transaction (SIT) or Purchase Invoice Transaction
(PIT) can be done by hadn (go into accounting_module, create objects) or
by builder.
While using builder Accounting Transaction Lines (ATL) aren't created -
there are done by suitable builder using
default_invoice_transaction_rule - and it works great.
Well - while creating SIT or PIT by hand ATLs are created, user is able
to choose proper accounts - so far so good. But when user confirm
transaction more ATLs are created by
portal_workflow/accounting_workflow/scripts/Delivery_Build script.
How shall I prevent building such lines? Using same trick as in
{Purchase|Sale}InvoiceTransaction_init:
if kw.get('created_by_builder', 0):
return
(well - condtition would be opposite)
Is it achived somewhere - where? I wasn't able to find it out.
Thanks for any tips&suggestions,
Luke
Creating Sale Invoice Transaction (SIT) or Purchase Invoice Transaction
(PIT) can be done by hadn (go into accounting_module, create objects) or
by builder.
While using builder Accounting Transaction Lines (ATL) aren't created -
there are done by suitable builder using
default_invoice_transaction_rule - and it works great.
Well - while creating SIT or PIT by hand ATLs are created, user is able
to choose proper accounts - so far so good. But when user confirm
transaction more ATLs are created by
portal_workflow/accounting_workflow/scripts/Delivery_Build script.
How shall I prevent building such lines? Using same trick as in
{Purchase|Sale}InvoiceTransaction_init:
if kw.get('created_by_builder', 0):
return
(well - condtition would be opposite)
Is it achived somewhere - where? I wasn't able to find it out.
Thanks for any tips&suggestions,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''