Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1507 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

thank you sir for reply.

Post Terkait Replies Tampilan Aktivitas
1
Mei 23
3362
2
Jan 24
1353
3
Jul 23
2129
1
Jun 23
1779
1
Mei 25
2138