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

account_invoice_inter_company : creating a "full refund" credit note on invoice is not creating the refund in the other company #736

Open
metaminux opened this issue Dec 10, 2024 · 0 comments
Labels

Comments

@metaminux
Copy link
Contributor

Module

account_invoice_inter_company

Describe the bug

Company S (supplier) is selling to Company C (customer)
When posting an inter-company customer invoice in Company S, the corresponding supplier bill is created in Company C
Now, creating a full refund in Company S, nothing appears in Company C

To Reproduce

16.0:

Steps to reproduce the behavior:

  1. On runboat, install and configure account_invoice_inter_company
  2. Create a customer invoice in My Company (Chicago) for My Company (San Francisco) and post
  3. Click on Add credit note from the invoice and select "Full refund" in the wizard
  4. Validate

Expected behavior
In My Company (San Francisco) we should have a supplier Refund corresponding to the credit note

Additional context
I think this is due to the native Odoo method _reverse_moves calling directly _post

https://github.com/odoo/odoo/blob/e862e3f7b52f322389dea16666d6e495e6f75aaf/addons/account/models/account_move.py#L3464

But account_invoice_inter_company is overriding action_post

@metaminux metaminux added the bug label Dec 10, 2024
metaminux added a commit to Groupe-Voltaire-SAS/multi-company that referenced this issue Dec 11, 2024
…enerate a supplier refund in the other company

Fixes OCA#736
metaminux added a commit to Groupe-Voltaire-SAS/multi-company that referenced this issue Dec 11, 2024
…enerate a supplier refund in the other company

Fixes OCA#736
metaminux added a commit to Groupe-Voltaire-SAS/multi-company that referenced this issue Dec 11, 2024
…enerate a supplier refund in the other company

Fixes OCA#736
metaminux added a commit to Groupe-Voltaire-SAS/multi-company that referenced this issue Dec 11, 2024
…enerate a supplier refund in the other company

Fixes OCA#736
metaminux added a commit to Groupe-Voltaire-SAS/multi-company that referenced this issue Dec 13, 2024
…enerate a supplier refund in the other company

Fixes OCA#736
metaminux added a commit to Groupe-Voltaire-SAS/multi-company that referenced this issue Dec 18, 2024
…enerate a supplier refund in the other company

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

No branches or pull requests

1 participant