コンテンツへスキップ
メニュー
この質問にフラグが付けられました
6966 ビュー

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
1月 23
2550
1
8月 22
5527
0
9月 20
2729
1
1月 19
3990
0
12月 18
5423