基于条件的Odoo选择

问题描述

enter image description here

etat = fields.Selection([('mn','Monté'),('dm','Démonté'),('nf','Neuf'),('reb','Rebut')] ,string =“ Etat”)

hist_pneu = fields.Selection([[('df','DéFinition'),('mn1','Montage'),('dm1','Démontage'),('reb1','Mise en Rebut' )],string =“ Type d'opération”)

etat在类fiche_pneu上 hist_pneu在historique.pneu类上

我们有: hist_penu_ids = fields.One2many('historique.pneu',“ fich_penu_id”,string =“历史记录操作”)

如何使用字段“ etat”使字段“ hist_pneu”具有条件 例如 : 当etat ==“ nf”或etat ==“ mn” 字段选择“ hist_pneu”仅显示许多“ df”

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)