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

Hello,

I added a field to product_supplierinfo_form_view pricelist_ids, called product_percent so instead of setting supplier price i can set percent of base price. I added same percent field on res.partner model to enter one global value for each supplier (for example 70%) that could be used in pricelist.partnerinfo or custom value set for each pricelist.partnerinfo record.

All this works well and when i select adding new Seller to product, i chose supplier from the dropdown and in the pricelist table i click on Add an item link and it loads the default percent value in the form field.

If i blur the form row without changing any of the values, the form row disappears. If i type in the percent field, even i type the same percent (70) and then blur (click somewhere else out of the form row) the form row stays saved.

Video of the behavior: http://youtu.be/7YkI2HXFBD0

Is there any way to prevent this behavior and disable form row hide effect when default value satisfies the required attributes?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 22
3274
3
thg 9 17
7840
1
thg 8 16
8958
0
thg 3 15
4462
1
thg 3 15
17986