Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1503 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

thank you sir for reply.

Powiązane posty Odpowiedzi Widoki Czynność
1
maj 23
3350
2
sty 24
1350
3
lip 23
2119
1
cze 23
1775
1
maj 25
2130