Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
1767 Weergaven

Hello, I'm following the odoo tutorial to get started for odoo 17. I create a model like the tutorial asked. A estate folder inside the addons folder. Inside the estate folder I have a __init__.py file and a __manifest_.py file and a models file. In the __init__.py file I import the models folder. Inside the models folder, there is my model file 'real_estate.py' and an __init__.py file in which I import 'real_estate.py'. In the real_estate.py file I create my model ' from odoo import models, fields
class estate_property(models.Model):' I define my fields : '  _name = "estate.property"    _description = "Real Estate Property"    name = fields.Char(string="Property Name", required=True)    description = fields.Text(string="Description")    postcode = fields.Char(string="Postcode")'

and l launch odoo with this command : python odoo-bin -r odoo -w odoo --addons-path="C:\Users\wyzix\OneDrive\Bureau\odoo-17.0\odoo-17.0\addons" -d rd_demo -u estate

I get no error message, it says all module loaded then when I see 'registry loaded' log I wait a few second and shutdown odoo. Then I connect to the rd-demo database and search for my estate model database and can't find one. I don't see no error message and I follow the tutorial without missing anything and I don't understand what to do. 

Avatar
Annuleer
Beste antwoord

You can use the -i or --init flag instead of the -u --upgrade flag. This flag will install the modules in a comma-seperated list. So in your case:  

python odoo-bin -r odoo -w odoo --addons-path="C:\Users\wyzix\OneDrive\Bureau\odoo-17.0\odoo-17.0\addons" -d rd_demo -i estate

I hope this helps!

Avatar
Annuleer
Auteur Beste antwoord

Yes it did solve the problem. thank you !

Avatar
Annuleer
Beste antwoord

Did you install your new application from apps module? -u means only auto update not auto install. Try to find your Real Estate in app and install it.

Avatar
Annuleer
Beste antwoord

Hi,

First of all make ensure the module is installed or not, if the module is installed please verify your latest model with the access


Please refer the Chapter 5: https://www.odoo.com/documentation/17.0/developer/tutorials/getting_started/05_securityintro.html


Create the ir.model.access.csv file in the appropriate folder and define it in the __manifest__.py file.


Regards

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
apr. 18
4283
1
mrt. 15
5785
1
mrt. 15
3744
0
mrt. 15
3570
2
feb. 23
6026