Commit aa63cf45 authored by Łukasz Nowak's avatar Łukasz Nowak

Associate with no-invoice generation STC.

parent bb0617e8
...@@ -4,7 +4,7 @@ from Products.ERP5Type.Base import WorkflowMethod ...@@ -4,7 +4,7 @@ from Products.ERP5Type.Base import WorkflowMethod
def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self): def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
portal_type = self.getPortalType() portal_type = self.getPortalType()
assert( portal_type in self.getPortalDeliveryMovementTypeList()) 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() delivery = self.getParentValue()
price_currency = 'currency_module/EUR' price_currency = 'currency_module/EUR'
if delivery.getPortalType() in ['Purchase Packing List', 'Sale Packing List']: if delivery.getPortalType() in ['Purchase Packing List', 'Sale Packing List']:
...@@ -35,7 +35,7 @@ def OpenSaleOrderLine_migrate(self): ...@@ -35,7 +35,7 @@ def OpenSaleOrderLine_migrate(self):
self.setBaseContributionList(resource_value.getBaseContributionList()) self.setBaseContributionList(resource_value.getBaseContributionList())
self.setUseList(resource_value.getUseList()) self.setUseList(resource_value.getUseList())
self.setQuantityUnit(resource_value.getQuantityUnit()) 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.setSourceSection('organisation_module/vifib_internet')
self.setSource('organisation_module/vifib_internet') self.setSource('organisation_module/vifib_internet')
self.setDestination(self.getParentValue().getDestinationSection()) self.setDestination(self.getParentValue().getDestinationSection())
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
raise ValueError(\'%s is not sale order line\' % context.getPath())\n raise ValueError(\'%s is not sale order line\' % context.getPath())\n
context.setPrice(0.0)\n context.setPrice(0.0)\n
context.setQuantity(1.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 sale_order = context.getParentValue()\n
specialise = sale_order.getSpecialise()\n specialise = sale_order.getSpecialise()\n
if common_specialise != specialise:\n if common_specialise != specialise:\n
......
66 67
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment