Ir al contenido
Menú
Se marcó esta pregunta
6895 Vistas

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>

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ene 23
2497
1
ago 22
5447
0
sept 20
2689
1
ene 19
3926
0
dic 18
5398