Skip to Content
Menu
This question has been flagged
1 Reply
1549 Views

i am trying to create a custom module (i have created previously and works fine), its not creating Modle when searching in Technical -> Models , please have a look and help.

note: my OS is Windows 10, Odoo 16, added the file name in __init.py__ file

from . import crm_leads_custom_inquiry

other models created and can be found in Technical

from odoo import models, fields

class CRMInquiry(models.Model):
_name = 'crm.inquiry'
_description = 'CRM Lead Inquiry'

product_id = fields.Many2one('product.product', string='Product Name', required=True)
qty = fields.Integer(string='Quantity', default=1)


regards


Avatar
Discard
Best Answer

Hi SmithJohn45,

I had to try a bit and to save your time to find the error yourself, here is the solution. So that the update does not run to the "Error Opening file for writing" error, the Odoo server must first be stopped, otherwise overwriting is not possible. Quite logical, since you can't just overwrite the files of a running process. 


  1. Right click on the Windows symbol - start "Run" - type in "services.msc" and open it
  2. Search for the "Odoo Server" process and right-click on it to stop the server 
  3. Install the update by selecting the folder in which Odoo is installed see also here https://www.odoo.com/documentation/14.0/administration/maintain/update.html
  4. After completing the installation, start the server. This is normally done automatically at the end of the update process if the tick is not removed. Otherwise use steps 1 - 2 or restart the machine completely

Hope that helps.

Thanks.

Avatar
Discard
Author

thank you sir for reply.

Related Posts Replies Views Activity
1
May 23
3415
2
Jan 24
1378
3
Jul 23
2177
1
Jun 23
1804
1
May 25
2205