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'),