Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
6929 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
led 23
2524
1
srp 22
5473
0
zář 20
2715
1
led 19
3960
0
pro 18
5406