Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] hr_expense_advance_clearing advance paid by company #272

Open
unique4 opened this issue Oct 16, 2024 · 2 comments
Open

[BUG] hr_expense_advance_clearing advance paid by company #272

unique4 opened this issue Oct 16, 2024 · 2 comments

Comments

@unique4
Copy link

unique4 commented Oct 16, 2024

Employee advance is paid directly company account, what is the purpose of this constraint?

if expense.payment_mode != "own_account":
raise ValidationError(_("Employee advance, paid by must be employee"))

@Saran440
Copy link
Member

Hi.
For me, Advance means the company gives money to the employee.
So, I think it's make sense. and process company and employee are difference.

@unique4
Copy link
Author

unique4 commented Nov 14, 2024

Hi @Saran440,
Both expense payment mode are company gives money, but the differences is accounting entry (tested at Odoo 16 version)

  • paid by employee: a bill is created (accounting entry between payable and targeted advance account)
  • paid by company: a journal entry is created, between bank/cash account and targeted advance account

So I think payment paid by company makes more sense for the advance, since there is no bill (nothing bought) at the time advance is created, the payable account should not be used here. The bill is created in the clearing advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants