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
139
Merge Requests
139
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
3afd3bce
Commit
3afd3bce
authored
Jan 15, 2020
by
Xiaowu Zhang
Committed by
Xiaowu Zhang
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_invoicing: add return sale order in query
parent
0f9e00d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/SaleInvoiceTransaction_selectPackingListMovement.py
...icing/SaleInvoiceTransaction_selectPackingListMovement.py
+7
-2
No files found.
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/SaleInvoiceTransaction_selectPackingListMovement.py
View file @
3afd3bce
kw
[
'parent_specialise_portal_type'
]
=
'Invoice Simulation Rule'
kw
[
'explanation_portal_type'
]
=
'Sale Order'
,
'Sale Packing List'
,
'Returned Sale Packing List'
kw
[
'explanation_portal_type'
]
=
'Sale Order'
,
'Sale Packing List'
,
'Returned Sale Packing List'
,
'Returned Sale Order'
kw
[
'portal_type'
]
=
'Simulation Movement'
kw
[
'grand_parent_simulation_state'
]
=
'started'
,
'stopped'
,
'delivered'
kw
[
'delivery_uid'
]
=
None
kw
[
'left_join_list'
]
=
[
'delivery_uid'
]
kw
[
'select_dict'
]
=
dict
(
delivery_uid
=
None
)
kw
[
'group_by'
]
=
(
'uid'
,)
# We assume that all simulation movements without a delivery are in planned or auto planned state.
# By passing this, catalog should use an index on portal_type + simulation state.
# XXX actually we do not even pass auto_planned to have only 1 value, because we just do not use
# auto_planned state in this project.
kw
[
'simulation_state'
]
=
(
'planned'
,
)
return
context
.
portal_catalog
(
**
kw
)
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