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

Hi!

Can you explain me why my code changes doesn't work?
1) I have module 'sales' (or whatever) provided by odoo and I want to add CONFIRMATION WINDOW 'Are you sure' when user want to go to the next state.
What I did:


      button name="action_set_won_rainbowman" string="Finished"                            type="object" class="oe_highlight" data-hotkey="w" title="Mark as finished"                            invisible="not active or probability == 100 or type == 'lead'" confirm="Are you sure?"                                                                                                                 


It seems simple, I just have to add option 'confirm="Are you sure?" to button, but it doesn't work. Seems like it is not the the correct form, but it is! I checked via developer mode.

2) Also I want to change permissions that user shouldn't change the state to previous one (only forward)


Please help me to do it or advise me how to.


Thanks!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 24
2786
1
wrz 21
6763
2
wrz 25
506
2
mar 25
6029
4
gru 21
7067