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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1562
Views
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 ?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Dec 22
|
2520 | ||
|
2
Aug 24
|
7208 | ||
|
0
Apr 22
|
1466 | ||
|
2
Dec 24
|
3130 | ||
|
1
Dec 24
|
352 |