Repository navigation
Expand file tree
/
Copy pathworkflowsUtility: Populate Compare Prices.json
More file actions
121 lines (121 loc) · 2.63 KB
/
Copy pathworkflowsUtility: Populate Compare Prices.json
File metadata and controls
121 lines (121 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"active": false,
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Odoo",
"type": "main",
"index": 0
}
]
]
},
"Odoo": {
"main": [
[
{
"node": "Odoo1",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2023-12-26T12:26:34.821Z",
"id": "C480ey9KjONUju1Y",
"name": "Utility: Populate Compare Prices",
"nodes": [
{
"parameters": {},
"id": "ec19d2b4-5660-4886-a99b-9d2a1e787c45",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
880,
360
]
},
{
"parameters": {
"resource": "custom",
"customResource": "product.template",
"operation": "getAll",
"options": {
"fieldsList": [
"list_price",
"taxes_id"
]
},
"filterRequest": {
"filter": [
{
"fieldName": "active",
"value": "={{ true }}"
},
{
"fieldName": "compare_list_price",
"value": "={{false}}"
}
]
}
},
"id": "8ab1c97b-1a8d-409e-8fd2-364437fa43b9",
"name": "Odoo",
"type": "n8n-nodes-base.odoo",
"typeVersion": 1,
"position": [
1100,
360
],
"credentials": {
"odooApi": {
"id": "2ttPRWxNWqAWB6fY",
"name": "Odoo account"
}
}
},
{
"parameters": {
"resource": "custom",
"customResource": "product.template",
"operation": "update",
"customResourceId": "={{ $json.id }}",
"fieldsToCreateOrUpdate": {
"fields": [
{
"fieldName": "compare_list_price",
"fieldValue": "={{ $json.taxes_id[0] == 10 ? $json.list_price * 1.2 : $json.list_price }}"
}
]
}
},
"id": "e58d290c-a438-48e4-b578-a00ce4aac2c3",
"name": "Odoo1",
"type": "n8n-nodes-base.odoo",
"typeVersion": 1,
"position": [
1320,
360
],
"credentials": {
"odooApi": {
"id": "2ttPRWxNWqAWB6fY",
"name": "Odoo account"
}
}
}
],
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2023-12-26T12:30:49.000Z",
"versionId": "083ea681-29c6-407a-9ecf-4af5aad482e7"
}