Skip to Content
Menu
This question has been flagged
2 Replies
1324 Views

Here is my price_comp.py under models folder 

from odoo import models, fields, api, _
class PriceComp(models.Model):    _name = 'price.comparison'    _description = 'Price Comparison'
    price_no = fields.Integer('Price Comparison No.')    purchreq_no = fields.Integer('Purch. Req. Number')    docdate = fields.date('Document Date')    reason = fields.Text('Reason')    note = fields.Text('Note')


then this is my __init__.py looks like, under models folder too

from . import price_comp 



Avatar
Discard
Best Answer

Hello tiara, 

You have to add security/ir.model.access.csv file for load your custom model. 

Avatar
Discard
Author Best Answer

it doesnt work. i already add  security/ir.model.access.csv

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_price_comp,accecs.price.comp,model_price_comparison,,1,1,1,1

Avatar
Discard