File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
- `13 .0.1 `
1
+ `14 .0.0 `
2
2
-------
3
3
4
4
- **New: ** sync.order: attaching multiple records via new line_ids field; automatic link to sync.job record.
5
5
- **New: ** sync.task: save technical_name of the task for a better integration with Odoo UI (e.g. to call task via custom action)
6
+ - **New: ** Add dynamic Secret update via `SECRETS._update_secret `.
6
7
7
8
`13.0.1 `
8
9
-------
Original file line number Diff line number Diff line change @@ -357,7 +357,22 @@ def gen2csv(generator):
357
357
"AttrDict" : AttrDict ,
358
358
},
359
359
)
360
- SECRETS = AttrDict ()
360
+
361
+ def _update_secret (key , value ):
362
+ SECRETS [key ] = value
363
+ for p in self .secret_ids :
364
+ if p .key == key :
365
+ p .value = value
366
+ return
367
+ self .env ["sync.project.secret" ].create (
368
+ {
369
+ "project_id" : self .id ,
370
+ "key" : key ,
371
+ "value" : value ,
372
+ }
373
+ )
374
+
375
+ SECRETS = AttrDict (_update_secret )
361
376
for p in self .secret_ids :
362
377
SECRETS [p .key ] = p .value
363
378
You can’t perform that action at this time.
0 commit comments