「res.users」を継承したモデル「my_model.user」を作りたいのですが、問題があってよくわかりません!
from openerp import models, fields, api
class User(models.Model):
_name = 'my_model.user'
_inherit = 'res.users'
name = fields.Char(string="Name", required=True)
user_first_name = fields.Char(string="First name", required=True)
user_flight_hours = fields.Integer(string="Flight hours", default=0)
#code...
そして、ここに私のエラーメッセージがあります:
Integrity Error
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set
[object with reference: Users - res.users]
私たちを手伝ってくれますか ?