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):
destination=object.getRelativeUrl(),
destination_decision=object.getRelativeUrl(),
destination_administration=object.getRelativeUrl(),
version=0o01)
version='001')
stc.validate()
def _updateSaleTradeCondition(self, object, **kw): # pylint: disable=redefined-builtin
......
......@@ -78,7 +78,7 @@ class ERP5PaymentTransactionConduit(TioSafeBaseConduit):
# Create the STC
stc = object.getPortalObject().sale_trade_condition_module.newContent(title=stc_title,
specialise=default_stc,
version=0o01)
version='001')
stc.validate()
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