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

The following code will set a default value for a product. Hopefully, the default value would only be applied to products of the "sellable" kind. However, it does not. Every product is affected by the default value. Has anyone been able to apply a condition in such a case?


<function model="ir.values" name="set_default">

        <value>product.template</value>

        <value>alert_time</value>

        <value>120</value>

        <value eval="True"/>

        <value eval="False"/>

        <value>[('sale_ok','=',True)]</value>

</function>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 23
2483
1
thg 8 22
5442
0
thg 9 20
2673
1
thg 1 19
3917
0
thg 12 18
5396