Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
8f968b87
Commit
8f968b87
authored
May 30, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: allow to archive Open Sale Order, even if the item is still valid
parent
3070f8af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OpenSaleOrder_archiveIfUnusedItem.py
...ns/slapos_accounting/OpenSaleOrder_archiveIfUnusedItem.py
+1
-1
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OpenSaleOrder_archiveIfUnusedItem.xml
...s/slapos_accounting/OpenSaleOrder_archiveIfUnusedItem.xml
+1
-1
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OpenSaleOrder_archiveIfUnusedItem.py
View file @
8f968b87
...
@@ -19,7 +19,7 @@ for open_order_line in open_sale_order.contentValues(
...
@@ -19,7 +19,7 @@ for open_order_line in open_sale_order.contentValues(
if
item
is
None
:
if
item
is
None
:
raise
AssertionError
(
'No matching item on: %s'
%
open_order_cell
.
getRelativeUrl
())
raise
AssertionError
(
'No matching item on: %s'
%
open_order_cell
.
getRelativeUrl
())
if
item
.
getValidationState
()
not
in
[
'invalidated'
,
'archived'
]
:
if
check_unused_item
and
(
item
.
getValidationState
()
not
in
[
'invalidated'
,
'archived'
])
:
# Do not touch if the item is not clean yet
# Do not touch if the item is not clean yet
return
return
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OpenSaleOrder_archiveIfUnusedItem.xml
View file @
8f968b87
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
check_unused_item=True
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
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