Skip to Content
Menu
This question has been flagged
1 Reply
2502 Views

In odoo server one app is there i.e payroll.I want to add a action on the same project to email the payslip to the employee.

How can i add that action email payslip in a specific project?



Avatar
Discard
Best Answer

Hi,

For this what you can do is that,

1. If the view is opened in a button click, check the project and return the view id(form view id)  from the python code accordingly. If the project is A then return form 1 and else form 2, like that you can do from the code.

2. if the view is coming from the menu, you can give the project id as domain, or for different menus you can set the different views inside the menu action.

3. Else you can add all the fields in single form and hide the fields based on condition using the attrs.


Thanks

Avatar
Discard
Related Posts Replies Views Activity
2
Jul 24
13938
2
Sep 23
6683
1
Apr 20
8704
1
Apr 20
3600
5
Sep 19
4158