Commit a09f7a84 authored by Jérome Perrin's avatar Jérome Perrin

get more dynamically builder lists for purchase and sale invoice transaction;...

get more dynamically builder lists for purchase and sale invoice transaction; also returns builders for advanced invoicing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28547 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aef9bd45
......@@ -54,9 +54,17 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal_deliveries = context.getPortalObject().portal_deliveries\n
return [portal_deliveries.purchase_invoice_builder,\n
portal_deliveries.purchase_invoice_tax_builder,\n
portal_deliveries.purchase_invoice_transaction_builder]\n
builder_list = []\n
\n
for builder_id in (\'purchase_invoice_buider\',\n
\'purchase_invoice_tax_builder\',\n
\'purchase_invoice_transaction_builder\',\n
\'advanced_purchase_invoice_transaction_builder\', ):\n
builder = getattr(portal_deliveries, builder_id, None)\n
if builder is not None:\n
builder_list.append(builder)\n
\n
return builder_list\n
</string> </value>
</item>
<item>
......@@ -96,6 +104,12 @@ return [portal_deliveries.purchase_invoice_builder,\n
<string>_getattr_</string>
<string>context</string>
<string>portal_deliveries</string>
<string>builder_list</string>
<string>_getiter_</string>
<string>builder_id</string>
<string>getattr</string>
<string>None</string>
<string>builder</string>
</tuple>
</value>
</item>
......
......@@ -54,9 +54,17 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal_deliveries = context.getPortalObject().portal_deliveries\n
return [portal_deliveries.sale_invoice_builder,\n
portal_deliveries.sale_invoice_tax_builder,\n
portal_deliveries.sale_invoice_transaction_builder]\n
builder_list = []\n
\n
for builder_id in (\'sale_invoice_buider\',\n
\'sale_invoice_tax_builder\',\n
\'sale_invoice_transaction_builder\',\n
\'advanced_sale_invoice_transaction_builder\', ):\n
builder = getattr(portal_deliveries, builder_id, None)\n
if builder is not None:\n
builder_list.append(builder)\n
\n
return builder_list\n
</string> </value>
</item>
<item>
......@@ -96,6 +104,12 @@ return [portal_deliveries.sale_invoice_builder,\n
<string>_getattr_</string>
<string>context</string>
<string>portal_deliveries</string>
<string>builder_list</string>
<string>_getiter_</string>
<string>builder_id</string>
<string>getattr</string>
<string>None</string>
<string>builder</string>
</tuple>
</value>
</item>
......
960
\ No newline at end of file
961
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment