This question has been flagged
2 Trả lời
295 Lượt xem

Hello, so I'm following the docs documentation now, but I still encounter the same problem as I watches tutorial, I can't figure out why I can't see my custom module I made. 

I don't know if my I make mistake, but i'm following the docs, please explain to me if possible on which part I got wrong, I really appreciate it guys, thank you so much!

This is my main directory.

from odoo import fields, models

class RealEstate(models.Model):
_name = 'estate_property'
_description = 'Real Estate Property'

name = fields.Char(string="Name", required=True)
description = fields.Text(string="Description")
postcode = fields.Char(string="Postcode")
date_availability = fields.Date(string="Date")
expected_price = fields.Float(string="Expected Price", required=True)
selling_price = fields.Float(string="Selling Price", required=True)
bedrooms = fields.Integer(string="Bedrooms")
living_area = fields.Integer(string="Living Area")
facades = fields.Integer(string="Facades")
garage = fields.Boolean(string="Garage")
garden = fields.Boolean(string="Garden")
garden_area = fields.Integer(string="Garden Area")
garden_orientation = fields.Selection(
string="Garden Orientation",
=[('north', 'North'), ('east','East'), ('south','South'), ('west','west') ]



This is my

"name": "Estate", # The name that will appear in the App list
: "16.0", # Version
: True, # This line says the module is an App, and not a module
: ["base"], # dependencies
: [
: True,
: 'LGPL-3',

This is my ir.model.access.csv



This my odoo.conf

admin_passwd = $pbkdf2-sha512$25000$7N07x/hf670XwvjfG2OMsQ$4bzF6iN4y0uxX3o915LeEAznINV1e8bZMf1c6rkyOX4Q5UfZE5uMYsvQwiY89IIZ2b61izNr3uVqEnbV3b6kxQ
db_host = localhost
db_port = 5432
db_user = admin
db_password = admin
addons_path = addons , customaddons
http_port = 8015

Ảnh đại diện
Huỷ bỏ
Best Answer


Please make sure that you have added the custom addons path in your odoo conf file

Also once you restarted the service, please click Update App List menu also in the Apps


Ảnh đại diện
Huỷ bỏ
Best Answer


1)First You need to provide proper addons pathfor eg:-

admin_passwd = $pbkdf2-sha512$25000$7N07x/hf670XwvjfG2OMsQ$4bzF6iN4y0uxX3o915LeEAznINV1e8bZMf1c6rkyOX4Q5UfZE5uMYsvQwiY89IIZ2b61izNr3uVqEnbV3b6kxQ
db_host = localhost
db_port = 5432
db_user = admin
db_password = admin
addons_path = /home/cybrosys/odoo/addons, /home/cybrosys/odoo/custom_addons
http_port = 8015

2)Use the module name as like :-       

_name =""       

use ' . ' instead of ' _ ' .(standard)

3)After that go to settings -> enable developer mode from Developer Tools section

4)Then go to apps -> Update apps List

Hope it helps

Ảnh đại diện
Huỷ bỏ