OCA / operating-unit

Manage Operating Units in Odoo
GNU Affero General Public License v3.0
72 stars 237 forks source link

account_operating_unit: inter ou balance lines are displayed in the invoice #617

Open gurneyalex opened 1 year ago

gurneyalex commented 1 year ago

Module

account_operating_unit

Describe the bug

When I use the inter operating balance feature, the module adds lines to account move which are displayed as invoice lines. They get printed out in the PDF report.

To Reproduce

Affected versions: 15.0 at least

Steps to reproduce the behavior:

  1. set up inter operating unit balance on the company, and a balance account
  2. configure the sales journal to have no operating unit
  3. create a customer invoice with no operating unit, and 2 products on two different lines
  4. go to the "journal items" tab, set the first product line on OU B2B, for instance, the second product line on OU B2C and the account receivable and tax lines ou the main OU
  5. save and post the invoicee

Expected behavior the balance lines are not displayed as an invoice lines, they are only visible in the journal items tab. They are also not printed in the PDF report.

Current status:

image

Additional context

It would be also super cool to have this working with an OU on the account move, and only generate the balancing lines for the lines which don't match that OU.

AaronHForgeFlow commented 1 year ago

That is too bad. I think that marking them as "Exclude from invoice tab" would be enough.

gurneyalex commented 1 year ago

I came accross this testing the 16.0 migration PR, and was able to reproduce on 15.0, however I'm not sure if the way the field that filters the invoice lines is computed is the same on both versions. I need to check...

github-actions[bot] commented 6 months ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] commented 2 weeks ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.