Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1500 Представления

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


Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Автор

thank you sir for reply.

Related Posts Ответы Просмотры Активность
1
мая 23
3347
2
янв. 24
1346
3
июл. 23
2108
1
июн. 23
1773
1
мая 25
2125