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
Labels
Merge Requests
142
Merge Requests
142
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0f9e00d7
Commit
0f9e00d7
authored
Jan 14, 2020
by
Xiaowu Zhang
Committed by
Xiaowu Zhang
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epr5_invoicing: hardcoded to not generate sale invoice transaction for some business process
parent
ab7b06ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/SimulationMovement_testInvoiceSimulationRule.py
...invoicing/SimulationMovement_testInvoiceSimulationRule.py
+8
-0
No files found.
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/SimulationMovement_testInvoiceSimulationRule.py
View file @
0f9e00d7
...
...
@@ -11,6 +11,14 @@ if parent.getPortalType() == 'Applied Rule':
parent
.
getParentValue
().
getParentValue
().
getSpecialiseValue
().
getPortalType
()
not
in
[
'Order Root Simulation Rule'
]:
return
False
#
# Some business process does not generate invoice.
# XXX isn't there a better way to configure this ???
if
'business_process_module/4/delivery_path'
in
movement
.
getCausalityList
():
return
False
source_section
=
movement
.
getSourceSection
()
destination_section
=
movement
.
getDestinationSection
()
if
source_section
==
destination_section
or
source_section
is
None
\
...
...
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