Commit c98ecf4a authored by Jérome Perrin's avatar Jérome Perrin

tiosafe_core: fix some wrong usage of version property

It seems to accept int, but version is supposed to be a string.
parent 9a98dbbc
Pipeline #23684 failed with stage
in 0 seconds
...@@ -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): # pylint: disable=redefined-builtin def _updateSaleTradeCondition(self, object, **kw): # pylint: disable=redefined-builtin
......
...@@ -78,7 +78,7 @@ class ERP5PaymentTransactionConduit(TioSafeBaseConduit): ...@@ -78,7 +78,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