Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1692 Lượt xem

I thought this would work ... but none of these get triggered. Even tho it is loaded, when i look at the model, the added field is visible in the 'technical / model views'



Any idea what are the possibilities the onchange does not get triggered on any of the fields ?

Ảnh đại diện
Huỷ bỏ

Are you changing this values manually in the form view?
The onchange is triggered in the frontend.

Tác giả Câu trả lời hay nhất

Wel at least name is changed in the form view ... although the documents interface is mostly javascript. so perhaps it is not triggered there ?

Ảnh đại diện
Huỷ bỏ

It might be that.
If you chekc the odoo's code they have the @api.onchange('url') in that model, but for that field they use a "normal" form view.

Tác giả

There is no backend equivalent for onchange, right ? Other than comparing manually in the .write function ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 25
2704
1
thg 9 25
2693
3
thg 7 25
4105
1
thg 5 25
2203
4
thg 5 25
3558