Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
4246 Weergaven

Hello,

I downloaded the Payroll model to make payslips and I looking for a way to create my own style of report.

With Odoo Studio, I then go to the report section in the payslips, I create a new custom report, but once done, the Print dropdown button doesn't show hiself, while in the sale.order it's get added to the list of report type or add a print option in a custom model, for exemple.

There is a PRINT button in the of the payroll, unlike the whey the others model propose it. And I don't find the view that generate the report.


Why the print dropdown doesn't show and how to ? Or where is the report linked to the action button print in the payslips views ?

Avatar
Annuleer

Hi, did you manage to find a solution to this?

I also don't see the native Odoo button to print payroll reports.

Beste antwoord

Hi,


Why the print dropdown doesn't show...?


This is an intended change in get_views method of hr_payroll.hr_payslip which pops the Print button from toolbar.


Where is the report linked to the action button print in the payslips views?


You can associate your desired report template to the salary structures in the configuration menu.

Avatar
Annuleer
Beste antwoord

Hi,

The issue has been reported in this issue ticket:  https://github.com/odoo/odoo/issues/124745 and see the response for the same:   https://github.com/odoo/odoo/issues/124745#issuecomment-1612537903

Thanks

Avatar
Annuleer
Beste antwoord

It's likely that the payroll module you downloaded doesn't allow for custom reports to be created through Odoo Studio. In that case, you would need to create a custom module to add the desired functionality to the payroll module. This would involve creating a new report template and linking it to the payroll module through code.

Alternatively, you could try using the existing report template and modifying it to suit your needs. You can do this by going to the "Technical" tab in the payroll module, selecting "Reports" from the dropdown menu, and then clicking on the existing report template. From there, you can edit the template to change its style and layout.

Keep in mind that making modifications to existing modules can be complex and may require advanced knowledge of Odoo and programming. It's always a good idea to carefully test any customizations you make to ensure that they work as intended and don't cause any issues with the rest of the system.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jul. 25
3537
1
jul. 25
2639
0
dec. 24
1408
0
dec. 23
1273
0
sep. 20
1557