Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
c7f1a35c
Commit
c7f1a35c
authored
Jun 27, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use reference instead of hardcoded portal types.
parent
095baff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_selectInvoiceMovement.xml
...p5_invoicing/InvoiceTransaction_selectInvoiceMovement.xml
+5
-5
bt5/erp5_invoicing/bt/revision
bt5/erp5_invoicing/bt/revision
+1
-1
No files found.
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_selectInvoiceMovement.xml
View file @
c7f1a35c
...
...
@@ -56,9 +56,9 @@ Simulation Movements can come from normal Invoice Transaction Rule\n
and same rule which is children of Trade Model Rule """\n
\n
# search for normal movements\n
kw[\'parent_specialise_
portal_type\'] = [\'Invoice Transaction Rule\', \'Invoice Transaction Simulation R
ule\']\n
kw[\'grand_grand_parent_specialise_
portal_typ
e\'] = [\n
\'
Invoicing Rule\', \'Invoice Simulation Rule\', \'Invoice Rule\', \'Invoice Root Simulation Rule\', \'Tax R
ule\']\n
kw[\'parent_specialise_
reference\'] = [\'default_invoice_transaction_r
ule\']\n
kw[\'grand_grand_parent_specialise_
referenc
e\'] = [\n
\'
default_invoicing_rule\', \'default_invoice_r
ule\']\n
if context.Invoice_isAdvanced():\n
kw[\'explanation_portal_type\'] = [\'%s Order\' % trade_type,\n
\'%s Invoice\' % trade_type,\n
...
...
@@ -77,7 +77,7 @@ normal_movement_list = [movement for movement in context.InvoiceTransaction_zSel
\n
# update query to search for movements which are children of Trade Model Rule\n
kw.pop(\'grand_parent_simulation_state\')\n
kw[\'grand_grand_parent_specialise_
portal_type\'] = [\'Trade Model Rule\', \'Trade Model Simulation Rule\']
\n
kw[\'grand_grand_parent_specialise_
reference\'] = \'default_trade_model_rule\'
\n
kw[\'grand_grand_grand_parent_simulation_state\'] = [\'started\']\n
\n
search_kw = kw.copy()\n
...
...
@@ -89,7 +89,7 @@ trade_model_movement_list = [movement for movement in context.InvoiceTransaction
movement_list = [] \n
for movement in normal_movement_list + trade_model_movement_list:\n
movement = movement.getObject()\n
if movement.getDeliveryValue() is None :\n
if movement.getDeliveryValue() is None
and movement not in movement_list
:\n
movement_list.append(movement)\n
else :\n
from Products.ERP5Type.Log import log\n
...
...
bt5/erp5_invoicing/bt/revision
View file @
c7f1a35c
371
\ No newline at end of file
372
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment