تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
6890 أدوات العرض

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>

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يناير 23
2490
1
أغسطس 22
5445
0
سبتمبر 20
2685
1
يناير 19
3926
0
ديسمبر 18
5398