How to restrict a Element with a name getting created to the Model that already have an element with the same name? Odoo 12

前端 未结 0 1853
情书的邮戳
情书的邮戳 2021-01-16 15:28
a = kw.get(\'a\')           #text getting from the user input
models = request.env[\'htpmodel\']
for model in models:
   if str(a) != str(model.name):
        h = mo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题