2

I am developing a new model called hr_work_shifts.hr_shifts; This is the class declaration:

          `class hrWorkShifts(models.Model):
                      _name = 'hr_work_shifts.hr_shifts'
                      _inherit = ['mail.followers','mail.thread','ir.needaction_mixin']`

which on create give integrity error :-enter image description here

1 Answer 1

3

You can have this error when you forget a required field in your view and when odoo save the record in database the value is missing. Check the fields in your view May be you Have forget a required field.

Sign up to request clarification or add additional context in comments.

2 Comments

Don't forget the required field of inherited models too
Can you post form view and action too check res_model of action did you keep same name of your model

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.