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

Syncing from upstream OCA/commission (15.0) #479

Merged
merged 6 commits into from
Aug 9, 2024
Merged

Conversation

bt-admin
Copy link

@bt-admin bt-admin commented Aug 9, 2024

bt_gitbot

pedrobaeza and others added 6 commits August 8, 2024 11:08
Steps to reproduce:

- Create a product commission free.
- Do some invoices with that product.
- There's no commission on the invoices.
- Remove the "Commission free" check.

Result: all the past invoices are recomputed and now a commission
appears. That's not acceptable, as past things shouldn't be changed
if you change the definition from now on, and more if you already did
the settlements.

This happens because the field in the invoice line is a related one, so
changing the source, recomputes all the linked records.

Let's change it to a computed writable, being recomputed only when the
product changes, not if we change the .

TT50445
Signed-off-by pedrobaeza
That way, deletions of agent lines in invoices are faster.
@bt-admin bt-admin added the 15.0 label Aug 9, 2024
@bt-admin bt-admin merged commit 001b6fd into brain-tec:15.0 Aug 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants