<group>
<button string="Notice / Resign" name="action_hr_email" type="object" groups="base.group_user" class = "oe_highlight oe_right" />
</group>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
if u give "groups='base.group_user'" , button will be visible to any user with the right of Human Resources / Employees.
if u want to change this view for particular employee, u have to give the xml id of that employee.
For example,
<button string='Issue' name="issue_form" type="object" groups="base.group_system" class="oe_highlight"/>
by the above code, only the system administrator could view this button, as i have mentioned admin's xmlid (base.group_sysytem) in the groups.
like that if u give that particular employees xmlid, button will not be visible to anyone else.
can you give an example?
<button name="toggle_payslip_status" field_name="payslip_status" type="object"
widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="hr_holidays.group_hr_holidays_manager"/>
First u have to create a group for that employee or user
Hi,
'base.group_user' is exactly any user with the rightd Human Resources / Employees. Hence, If you add this group, the button would be visible for employees (but not for portal user for example).
However, make sure that the method action_hr_email can be executed by just an employee. Otherwise, such users would see but would not be able to push the button
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
3
Nov. 18
|
7383 | ||
|
2
Feb. 24
|
12256 | ||
|
1
Jan. 22
|
5920 | ||
|
0
Apr. 17
|
2604 | ||
|
1
März 15
|
3983 |