Help

my modules not showing.

Closed
Avatar
Hyn

The question has been closed for reason: not relevant or out dated

by
Ermin Trevisan
on 11/08/2019 14:55:00

Hi i'm on Odoo 12 on ubuntu 18.04.
I'm an administrator of the project and when i create a module and i give him a _name it become invisible to me.

My simple code :     models

# -*- coding: utf-8 -*-
from odoo import fields, models
class Student(models.Model):
_name = 'student'
name = fields.Char(string="Title", required=True)

View :

<?xml version="1.0" encoding="UTF-8"?>

<odoo>
     <record model="ir.actions.act_window" id="stu_list_action">
        <field name="name">Student</field>
        <field name="res_model">student</field>
        <field name="view_mode">tree,form</field>
    </record>

     <menuitem id="stu_menu" name="Stu" parent="main_openacademy_menu"/>

     <menuitem id="stu_menu2" name="Students" parent="stu_menu" action="stu_list_action"/ >
</odoo> 


But this other module works:

modules:

# -*- coding: utf-8 -*-

from odoo import fields, models

class Partner(models.Model):
_inherit = 'res.partner'

instructor = fields.Boolean("Instructor", default=False)


view:

<?xml version="1.0" encoding="UTF-8"?>

<odoo>
    <record model="ir.ui.view" id="partner_instructor_form_view">
        <field name="name">partner.instructor</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form"/>
        <field name="arch" type="xml">
            <notebook position="inside">
                <page string="Sessions">
                <group>
                    <field name="instructor"/>
                </group>
                </page>
            </notebook>
    </field>
</record>

<record model="ir.actions.act_window" id="contact_list_action">
<field name="name">Contacts</field>
<field name="res_model">res.partner</field>
<field name="view_mode">tree,form</field>
</record>

<menuitem id="configuration_menu" name="Configuration" parent="main_openacademy_menu"/>

<menuitem id="contact_menu" name="Contacts" parent="configuration_menu" action="contact_list_action"/>

</odoo>


Someone have an idea ?  thanks.

Avatar
Discard
1 Answer
0
Avatar
Hyn
Best Answer

I resolve my problem.

Just i just needed to become a Superuser in the interface :/....

Avatar
Discard