Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1742 Lượt xem

Hi 

I am using Odoo 13 (community edition) .

My staff need to register traffic for forgotten days, so I installed "hr_attendance_modification_tracking" and it works good but their requests must be approved by their managers.

My question is  How I create a new step for that form?

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi 

You can add a new stage called "APPROVE" where you can also add a button to approve the request by the manager,after adding the button and the stage you need to define the record rule for the group manager.In the end you can give an attribute called "groups" where you need to specify the record id of the group manager.The below blog would help you to create security group.How to Create Security Groups in Odoo 15

Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You need a workflow.
Create a new selection field name it state i.e

state = fields.Selection([('draft', 'Draft'), ('approved', 'Approved'), ('cancel', 'Cancelled')], 'Status', required=True, copy=False, default='draft')

Then create few buttons like Approve, Refuse and actions for the buttons. 
You can study sales workflow in odoo to properly understand the concept.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 19
3318
0
thg 11 23
1125
0
thg 6 23
2316
0
thg 10 22
2167
0
thg 10 22
2279