Commit 7681b1d7 authored by Jérome Perrin's avatar Jérome Perrin

*: use a str for version

This code from tiosafe was wrongly using version as an int.
parent f203045c
...@@ -58,7 +58,7 @@ class OscommerceERP5NodeConduit(TioSafeBaseConduit): ...@@ -58,7 +58,7 @@ class OscommerceERP5NodeConduit(TioSafeBaseConduit):
destination=object.getRelativeUrl(), destination=object.getRelativeUrl(),
destination_decision=object.getRelativeUrl(), destination_decision=object.getRelativeUrl(),
destination_administration=object.getRelativeUrl(), destination_administration=object.getRelativeUrl(),
version=0o01) version='001')
stc.validate() stc.validate()
def afterCreateMethod(self, object, **kw): def afterCreateMethod(self, object, **kw):
......
...@@ -40,7 +40,7 @@ class ERP5DeliveredNodeConduit(ERP5NodeConduit): ...@@ -40,7 +40,7 @@ class ERP5DeliveredNodeConduit(ERP5NodeConduit):
stc = object.getPortalObject().sale_trade_condition_module.newContent(title="%s %s" %(site.getReference(), object.getTitle()), stc = object.getPortalObject().sale_trade_condition_module.newContent(title="%s %s" %(site.getReference(), object.getTitle()),
specialise=default_stc, specialise=default_stc,
destination=object.getRelativeUrl(), destination=object.getRelativeUrl(),
version=0o01) version='001')
stc.validate() stc.validate()
def _updateSaleTradeCondition(self, object, **kw): def _updateSaleTradeCondition(self, object, **kw):
......
...@@ -42,7 +42,7 @@ class ERP5InvoicedNodeConduit(ERP5NodeConduit): ...@@ -42,7 +42,7 @@ class ERP5InvoicedNodeConduit(ERP5NodeConduit):
specialise=default_stc, specialise=default_stc,
destination_decision=object.getRelativeUrl(), destination_decision=object.getRelativeUrl(),
destination_administration=object.getRelativeUrl(), destination_administration=object.getRelativeUrl(),
version=0o01) version='001')
stc.validate() stc.validate()
def _updateSaleTradeCondition(self, object, **kw): def _updateSaleTradeCondition(self, object, **kw):
......
...@@ -40,7 +40,7 @@ class ERP5DeliveredNodeConduit(ERP5NodeConduit): ...@@ -40,7 +40,7 @@ class ERP5DeliveredNodeConduit(ERP5NodeConduit):
stc = object.getPortalObject().sale_trade_condition_module.newContent(title="%s %s" %(site.getReference(), object.getTitle()), stc = object.getPortalObject().sale_trade_condition_module.newContent(title="%s %s" %(site.getReference(), object.getTitle()),
specialise=default_stc, specialise=default_stc,
destination=object.getRelativeUrl(), destination=object.getRelativeUrl(),
version=0o01) version='001')
stc.validate() stc.validate()
def _updateSaleTradeCondition(self, object, **kw): def _updateSaleTradeCondition(self, object, **kw):
......
...@@ -42,7 +42,7 @@ class ERP5InvoicedNodeConduit(ERP5NodeConduit): ...@@ -42,7 +42,7 @@ class ERP5InvoicedNodeConduit(ERP5NodeConduit):
specialise=default_stc, specialise=default_stc,
destination_decision=object.getRelativeUrl(), destination_decision=object.getRelativeUrl(),
destination_administration=object.getRelativeUrl(), destination_administration=object.getRelativeUrl(),
version=0o01) version='001')
stc.validate() stc.validate()
def _updateSaleTradeCondition(self, object, **kw): def _updateSaleTradeCondition(self, object, **kw):
......
...@@ -61,7 +61,7 @@ class ERP5NodeConduit(TioSafeBaseConduit): ...@@ -61,7 +61,7 @@ class ERP5NodeConduit(TioSafeBaseConduit):
destination=object.getRelativeUrl(), destination=object.getRelativeUrl(),
destination_decision=object.getRelativeUrl(), destination_decision=object.getRelativeUrl(),
destination_administration=object.getRelativeUrl(), destination_administration=object.getRelativeUrl(),
version=0o01) version='001')
stc.validate() stc.validate()
def _updateSaleTradeCondition(self, object, **kw): def _updateSaleTradeCondition(self, object, **kw):
......
...@@ -81,7 +81,7 @@ class ERP5PaymentTransactionConduit(TioSafeBaseConduit): ...@@ -81,7 +81,7 @@ class ERP5PaymentTransactionConduit(TioSafeBaseConduit):
# Create the STC # Create the STC
stc = object.getPortalObject().sale_trade_condition_module.newContent(title=stc_title, stc = object.getPortalObject().sale_trade_condition_module.newContent(title=stc_title,
specialise=default_stc, specialise=default_stc,
version=0o01) version='001')
stc.validate() stc.validate()
return stc return stc
......
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