Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to auto fill the field « partner_id » of the line in account.move when we confirm a payslip?

By
Pascal Tremblay
on 4/21/15, 2:42 PM 729 views

Hello all,

Each time I make a payslip, it creates a line in account.move model.

Each time, we have to change the value of the field « partner_id » manually after the payslip is confirmed.

Each time, the field « partner_id » is empty.

How could we fill this field automatically at the payslip confirmation?

Thanks for your idea.


UPDATE #1 :

Look here.

I have just created a new payslip 2015-PAY00012 and I have confirmed it. 

You see, the field « partner » stays empty. I have to change it manually after the payslip confirmation... 

How to put the good partner automatically?





0

Pascal Tremblay

--Pascal Tremblay--
1312
| 5 2 7
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
On 5/22/15, 6:55 AM

Hello all,

In Odoo 8, we replace the file hr_payroll_account.py by this one :

https://github.com/vauxoo-dev/odoo/blob/8.0-hr-payroll-account-get-partner-dev-moylop260/addons/hr_payroll_account/hr_payroll_account.py


Now, see related journal items of a confirmed payslip; The field Partner is filled at the right place.



Thanks all


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/21/15, 2:42 PM
Seen: 729 times
Last updated: 5/22/15, 6:59 AM