Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2315 มุมมอง

When click "add a line" button on sale.order.line as example, i want to show a warning message, but then still lets a new line show up, how it that possible?

In odoo 15 by default, this is not possible, i've try this but not working.

Please help, thanks.

@api.onchange('product_id')
def onchange_product_id(self):
// my code
return {
'warning': {'title': ('Warning'), 'message': ('my message'), },
}
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ม.ค. 25
4317
1
ต.ค. 22
2718
2
ส.ค. 24
9748
1
มิ.ย. 25
1602
3
ก.ค. 25
3249