Commit 14c16f9d authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Add safereapair in erp5 storage configuration

Prevent syncro fail on frozen document
Ignore Remove attachment or document for erp5
parent b3e8000c
...@@ -66,27 +66,30 @@ ...@@ -66,27 +66,30 @@
} }
}, },
remote_sub_storage: { remote_sub_storage: {
type: "mapping", type: "saferepair",
attachment_list: ["data"], sub_storage: {
attachment: { type: "mapping",
"data": { attachment_list: ["data"],
"get": { attachment: {
"uri_template": (new URI("hateoas")) "data": {
.absoluteTo(erp5_url) "get": {
.toString() + extended_attachment_url "uri_template": (new URI("hateoas"))
}, .absoluteTo(erp5_url)
"put": { .toString() + extended_attachment_url
"erp5_put_template": (new URI("hateoas")).absoluteTo(erp5_url) },
.toString() + "/{+id}/Base_edit" "put": {
"erp5_put_template": (new URI("hateoas")).absoluteTo(erp5_url)
.toString() + "/{+id}/Base_edit"
}
} }
},
sub_storage: {
type: "erp5",
url: (new URI("hateoas"))
.absoluteTo(erp5_url)
.toString(),
default_view_reference: result[2]
} }
},
sub_storage: {
type: "erp5",
url: (new URI("hateoas"))
.absoluteTo(erp5_url)
.toString(),
default_view_reference: result[2]
} }
} }
}; };
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>962.47399.35230.56951</string> </value> <value> <string>962.47401.51821.21947</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1507818827.39</float> <float>1507818916.7</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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