Community mailing list archives

community@mail.odoo.com

Re: expenses in payslip with python code

by
Mohamed Hagag
- 02/02/2015 04:59:11

+1


yes, Christophe is right.


After thinking again, Payslip and Expenses should be separated.



Thanks Christophe and Luis.


Regards,


On 02/02/2015 11:54 AM, Luis Panozzo wrote:
<blockquote cite="mid:CAH=PDDkfiY1-q81qQxdzyr=84dRACmKviXCGNeuxM6fbUBGc0w@mail.gmail.com" type="cite">
I would certainly side with Christophe.
You would have to be particularly careful to make sure the reimbursed expenses do not alter the monthly / yearly amount on which the employee is taxed, wouln't you?
Lp


Luis Panozzo (Lp)
Technology Manager
Elmatica AS
luis.panozzo@elmatica.com
Skype: luispanozzo

On 1 February 2015 at 11:32, Christophe Combelles <ccomb@anybox.fr> wrote:

Hi,

It's not a good idea from an accounting point of view : the expense already creates a credit to the employee, your slip rule will create the same duplicated credit. So either the employee will see their expenses reimbursed twice, either you should never go to the end of the expense workflow. Or maybe the slip rule may create a dummy account move...
An alternative could be to just display the monthly expenses on the payslip report without taking it into account. Be default with odoo it's seems better and simpler to separate salary and expenses. (and provide the expense report along with the payslip)
But I admit I'd like to do something similar because in the real life expenses are often displayed on the payslip indeed... (in france we have the choice to do it or not)

regards,
Christophe


Le 31 janvier 2015 21:27:33 EET, "Mohamed M. Hagag" <mohamedhagag1981@gmail.com> a écrit :

Dears,


anyone did try to add employee expenses to payslip using python code in salary rules ?


what I'm trying to do create salary rule that will find expenses of employee and add its amount to the payslip.


BTW if we did that, will the payslip reconcile the expenses payment ?




Regards,

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


--
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.

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


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