[Erp5-dev] Holding of creation of Accounting Transaction Line for hand-made Accounting Transactions

Łukasz Nowak lukasz.nowak at ventis.com.pl
Tue Apr 10 16:54:59 CEST 2007


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

-- 
Ł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...''





More information about the Erp5-dev mailing list