Technical Mailinglisten Archive

technical@mail.odoo.com

Avatar

Re: Some questions about payroll programming

durch
Flowmoco, Dominic Pain
- 24.05.2019 11:14:23

Have a look for UserError - I think that's what's used to display errors to a gui user

On 24/05/2019 09:29, João Jerónimo wrote:
Hello,

I'm creating payroll rules for a client of mine.

Very often I need to write python code to compute the result of a salary 
rule. When I make a mistake it says: "Wrong python condition defined for 
salary rule" when I try to generate the payslip.

Is there a way to make ODOO show the actual python error message?

Thank you.

João Jerónimo

_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

Kundennummer