콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
704 화면

Hi all,


i want to add an item to the more menu in the employee overview (list view) and copy the email addresses of the selected employees to the clipboard.

But i never added an item to the more menu, i never created an action and i don´t know if i need a server or client action.

I think a client action is sufficient enought because the data i want are available in the browser.

Is this right?


First i create my model hr_employee_base: Do i need a model without an server action?

from odoo import models, fields, api, _


class HrEmployeeBase(models.Model):

    _name = "heinzmann.hr.employee.base"

    _inherit = "hr.employee.base"


And second i create an xml file named heinzmann_hr_action_items.xml


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

<odoo>

    <record model="ir.actions.act_window" id="test_action">

        <field name="name">A Test Action</field>

        <field name="res_model">hr.employee.base</field>

        <field name="view_mode">list</field>

        <field name="view_id" ref="hr.view_employee_tree"/>

    </record>

</odoo>



I updated my module without errors but i can´t see the item in the more menu.

Do i need permissions for this menu entry?

And now i don´t know what to do!? I only know i need the part of javascript too.


Can anyone help me?

아바타
취소
관련 게시물 답글 화면 활동
0
5월 15
3586
0
3월 15
3926
1
3월 15
4769
2
9월 21
7328
1
6월 17
4210