name_create only work for 'Create'. It does not work for 'Create and Edit' even though it pop the form but the operation_name is not filled like in other.
@TheArdjun2 жыл бұрын
how to resolve Model not found: hospital.operation from odoo import api, fields, models, _ class HospitalOperation(models.Model): _name = "hospital.operation" _description = "Hospital Operation" _log_access = False doctor_id = fields.Many2one('res.users', string='Doctor', required=True) In the technical setting, a model has add Model Description Hospital Operation Model hospital.operation