Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在自定义模块中制作自定义编号字段?
我需要将自定义编号与自定义对象字段相关联。
为模型添加序列,并在模型的默认值中定义如下:
'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'model.name'),