Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2504 Widoki

i m using odoo 13 ce.

I defined multiple pricelists with certain naming pattern.

Is that possible to update the value of pricelist of contact model using Server Action at the beginning of each month and using the Python expression to set the value.

The expression should be something liked this.
[SHORT NAME OF CONTACT]_[CURRENTYEAR][CURRENT MONTH]

For example, 

- I defined a SHORT_NAME for contact ABC, 

- I also defined pricelist named ABC_202212

- at 1st of December, I start the server action and set the value of pricelist of ABC, because system know it's time year 2022 month december, so i check if ABC_202212 existed, if yes, set as that. if no, just blank/undefined.


can i do accomplish this using the Server Action with Python Expression and time the event.

do you have idea?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

have solved this issue by Odoo Schedule Action plus Python Expression. The function is well designed.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 23
43348
1
paź 23
4969
2
lut 23
5387
1
gru 22
4577
1
sty 22
2141