Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2559 Представления

I have a button function to move between states in product. when the state move from draft to confirm , i wrote a function to show warning if the onhand quantities are there. It show the warning but it stop the flow of function. Is there alternative warnings that show only the warning without affect the flow?

Аватар
Отменить
Лучший ответ

Hi,

Adding an alert inside the form will help in this case ? If yes, use alerts in odoo.

Sample:

<div colspan="2" class="alert alert-danger text-center mb-3" role="alert"
attrs="{'invisible': ['|', ('comment_single_recipient', '=', False), ('recipient_single_valid', '=', True)]}">
<p class="my-0">Invalid phone numberp>
div>


Thanks

Аватар
Отменить
Автор

I tried this.But, it didn't work

didn't work means, not able to show alert on the form view ?

Related Posts Ответы Просмотры Активность
3
янв. 25
4151
2
авг. 24
9355
0
апр. 22
2274
1
июн. 25
1261
3
июл. 25
3032