1
这是我的创造功能:创建函数创建了两个纪录
@api.model
def create(self, vals):
record = super(Shift, self).create(vals)
flag = False
if record.Date_range:
do smth
return super(Shift, self).create(vals)
但是当我尝试通过单击保存按钮创建一个记录,它会创建两个记录