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
140
Merge Requests
140
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
fe06ea7a
Commit
fe06ea7a
authored
Jan 10, 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 order
import from production
parent
e5d3e724
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_selectInvoiceMovement.py
...rp5_invoicing/InvoiceTransaction_selectInvoiceMovement.py
+13
-3
No files found.
bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_selectInvoiceMovement.py
View file @
fe06ea7a
...
@@ -11,18 +11,28 @@ if context.Invoice_isAdvanced():
...
@@ -11,18 +11,28 @@ if context.Invoice_isAdvanced():
kw
[
'explanation_portal_type'
]
=
[
'%s Order'
%
trade_type
,
kw
[
'explanation_portal_type'
]
=
[
'%s Order'
%
trade_type
,
'%s Invoice'
%
trade_type
,
'%s Invoice'
%
trade_type
,
'%s Packing List'
%
trade_type
,
'%s Packing List'
%
trade_type
,
'Returned %s Packing List'
%
trade_type
]
'Returned %s Order'
%
trade_type
,
'Returned %s Packing List'
%
trade_type
,
]
else
:
else
:
kw
[
'explanation_portal_type'
]
=
[
'%s Order'
%
trade_type
,
kw
[
'explanation_portal_type'
]
=
[
'%s Order'
%
trade_type
,
'%s Invoice Transaction'
%
trade_type
,
'%s Invoice Transaction'
%
trade_type
,
'%s Packing List'
%
trade_type
,
'%s Packing List'
%
trade_type
,
'Returned %s Packing List'
%
trade_type
]
'Returned %s Order'
%
trade_type
,
'Returned %s Packing List'
%
trade_type
,
]
kw
[
'portal_type'
]
=
'Simulation Movement'
kw
[
'portal_type'
]
=
'Simulation Movement'
kw
[
'delivery_uid'
]
=
None
kw
[
'delivery_uid'
]
=
None
kw
[
'left_join_list'
]
=
[
'delivery_uid'
]
kw
[
'left_join_list'
]
=
[
'delivery_uid'
]
kw
[
'select_dict'
]
=
dict
(
delivery_uid
=
None
)
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'
,
)
search_kw
=
kw
.
copy
()
search_kw
=
kw
.
copy
()
search_kw
[
'grand_parent_simulation_state'
]
=
[
'started'
]
search_kw
[
'grand_parent_simulation_state'
]
=
[
'started'
]
...
...
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