İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1504 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

thank you sir for reply.

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 23
3351
2
Oca 24
1350
3
Tem 23
2120
1
Haz 23
1775
1
May 25
2131