Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

How to fix the problem that a menu which is added to an existing menu doesn't be shown ?

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
python3odoo11
2 Відповіді
6336 Переглядів
Аватар
Dhouha

i have develop a custom module which add a new menu in the attendance module to create attendance modification request for both groups "attendance/manual attendance" and "attendance/manager" the problem is my menu is added only for the admin user . If i connect with a user that has the acces right manager or manual attendance for the attendance module it will be not shown. Any idea for help ?
Here is my code 



<record model="ir.ui.view" id="view_attendance_modification_request_form">
    <field name="name">attendance.modification.request.form</field>
    <field name="model">attendance.modification.request</field>
    <field name="arch" type="xml">
        <form string="Attendance modification Request">
            <header>
                <field name="state" statusbar_visible="draft,waiting,approved,cancel" widget="statusbar" />
                <button name="submit_modification" string="Submit for manager" type="object" class="btn-primary"
                        attrs="{'invisible': [('state','not in','draft')]}"/>
                <button name="modification_approval" type="object" string="Approve" class="oe_highlight"
                        groups="hr_attendance.group_hr_attendance_manager"
                        attrs="{'invisible': [('state','not in','waiting')]}"/>
                <button name="modification_rejection" type="object" string="Cancel" class="oe_highlight"
                        groups="hr_attendance.group_hr_attendance_manager"
                        attrs="{'invisible': [('state','not in','waiting')]}"/>
            </header>
            <sheet>

                <h2>
                    <group>

                        <field name="employee"/>
                    </group>
                </h2>
                <group string="Morning" col="4" colspan="4">
                    <field name="time_check_in_1"/>
                    <field name="time_check_out_1"/>
                </group>
                <group string="Afternoon" col="4" colspan="4">
                    <field name="time_check_in_2"/>
                    <field name="time_check_out_2"/>
                </group>
                <label for="note"/>
                <field name="note"/>
            </sheet>
            <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
            <field name="activity_ids" widget="mail_activity"/>
            <field name="message_ids" widget="mail_thread"/>


        </form>
    </field>
</record>
 <record model="ir.actions.act_window" id="attendance_modification_request_form_action">
    <field name="name">Attendance modification Request</field>
    <field name="type">ir.actions.act_window</field>
    <field name="res_model">attendance.modification.request</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>
    <field name="domain">[]</field>
    <field name="context">{"search_default_requested_by":uid}</field>
    <!--            <field name="search_view_id" ref="view_attendance_request_search"/>-->
    <field name="help" type="html">
        <p class="oe_view_nocontent_create">
            Click to start a new attendance modification request process.
        </p>
    </field>
</record>
 <menuitem action="attendance_modification_request_form_action" id="menu_attendance_modification_request"
          name="Attendance modification request" parent="hr_attendance.menu_hr_attendance_manage_attendances"
          sequence="14" groups="hr_attendance.group_hr_attendance"/>
 <record model="ir.actions.act_window" id="action_view_attendance_request_approval">
    <field name="name">Attendance modification request to approve</field>
    <field name="res_model">attendance.modification.request</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>
    <field name="domain">[('state','!=','approved'),('state','!=','cancel')]</field>

    <field name="help" type="html">
        <p class="oe_view_no_content_create">Create new Record
        </p>
    </field>
</record>
 <menuitem action="action_view_attendance_request_approval" id="menu_attendance_modification_request_to_approve"
          name="Attendance modification request to Approve"
          parent="hr_attendance.menu_hr_attendance_manage_attendances"
          sequence="15" groups="hr_attendance.group_hr_attendance_manager"/>

0
Аватар
Відмінити
Аватар
SLIFE AFRICA
Найкраща відповідь

When you define a new model, the only one user who have read, write, create, and delete access rights on your new model is the general administrator.  You must therefore define access rights for the others users. Because when a user don't have the read access right to a model, all menus that give access to this model will not be displayed. 

This is an example to give read access right for all users in your ir.model.access.csv file:

access_attendance_modification_request,attendance.modification.request user,model_attendance_modification_request,,1,0,0,0

Check this ling to get more information: \https://www.odoo.com/documentation/12.0/reference/security.html#access-control

0
Аватар
Відмінити
Аватар
Bhaviraj Brahmkshatriya
Найкраща відповідь

Hello,

Check once csv file. access rights for object is assign or not. If access rights are not define than also menu gets invisible.


0
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Реєстрація
Related Posts Відповіді Переглядів Дія
How to set a filter as default filter in odoo Вирішено
python3 odoo11
Аватар
Аватар
Аватар
2
лют. 24
16975
How to set default stage to when recruitement record is created Вирішено
python3 odoo11
Аватар
Аватар
1
груд. 22
5915
How to change the value of a field which depends on other fields automatically ? Вирішено
python3 odoo11
Аватар
Аватар
Аватар
2
груд. 22
15876
how to modify fields of hr.attendance via a modification request automatically Вирішено
python3 odoo11
Аватар
Аватар
Аватар
2
черв. 22
8104
how to update field of attendance via an attendance request modification
python3 odoo11
Аватар
Аватар
Аватар
2
черв. 22
5967
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now