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
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
Léo-Paul Géneau
slapos.core
Commits
aa63cf45
Commit
aa63cf45
authored
Feb 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Associate with no-invoice generation STC.
parent
bb0617e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
...bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
+2
-2
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
...er/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
+1
-1
master/bt5/vifib_upgrader/bt/revision
master/bt5/vifib_upgrader/bt/revision
+1
-1
No files found.
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
View file @
aa63cf45
...
...
@@ -4,7 +4,7 @@ from Products.ERP5Type.Base import WorkflowMethod
def
DeliveryLineSetZeroPriceAndOrUpdateAppliedRule
(
self
):
portal_type
=
self
.
getPortalType
()
assert
(
portal_type
in
self
.
getPortalDeliveryMovementTypeList
())
common_specialise
=
'sale_trade_condition_module/vifib_trade_condition'
common_specialise
=
'sale_trade_condition_module/vifib_
simple_
trade_condition'
delivery
=
self
.
getParentValue
()
price_currency
=
'currency_module/EUR'
if
delivery
.
getPortalType
()
in
[
'Purchase Packing List'
,
'Sale Packing List'
]:
...
...
@@ -35,7 +35,7 @@ def OpenSaleOrderLine_migrate(self):
self
.
setBaseContributionList
(
resource_value
.
getBaseContributionList
())
self
.
setUseList
(
resource_value
.
getUseList
())
self
.
setQuantityUnit
(
resource_value
.
getQuantityUnit
())
self
.
setSpecialise
(
'sale_trade_condition_module/vifib_trade_condition'
)
self
.
setSpecialise
(
'sale_trade_condition_module/vifib_
simple_
trade_condition'
)
self
.
setSourceSection
(
'organisation_module/vifib_internet'
)
self
.
setSource
(
'organisation_module/vifib_internet'
)
self
.
setDestination
(
self
.
getParentValue
().
getDestinationSection
())
...
...
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
View file @
aa63cf45
...
...
@@ -54,7 +54,7 @@
raise ValueError(\'%s is not sale order line\' % context.getPath())\n
context.setPrice(0.0)\n
context.setQuantity(1.0)\n
common_specialise = \'sale_trade_condition_module/vifib_trade_condition\'\n
common_specialise = \'sale_trade_condition_module/vifib_
simple_
trade_condition\'\n
sale_order = context.getParentValue()\n
specialise = sale_order.getSpecialise()\n
if common_specialise != specialise:\n
...
...
master/bt5/vifib_upgrader/bt/revision
View file @
aa63cf45
66
\ No newline at end of file
67
\ 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