跳至內容
選單
此問題已被標幟
2 回覆
1234 瀏覽次數

i am trying to learn odoo 15, and i started to develop new odoo module, but when i develop a new module, i can't see its menu,

model file:

class usersMeals(models.Model):
_name = 'res.users.meal'
_description = 'Users Meal'
name = fields.Char("name")
meal_date = fields.Datetime("Date")
user_id = fields.Many2one('res.users',string='User')
notes = fields.Text("Notes")

Views File


Breakfast
res.users.meal
ir.actions.act_window
tree,kanban,form
form







what should i do to get a menu?



頭像
捨棄
最佳答案

Hello, Please go through this article --> https://www.cybrosys.com/blog/menu-submenu-and-action-in-odoo.

from this blog, you can easily understand the way to define the parent menus, sub menus and actions.

頭像
捨棄
最佳答案

Hello,

I think you forgot to add security file for that new model.

頭像
捨棄