Skip to content

Syncing from upstream OCA/contract (18.0) - #1012

Merged
bt-admin merged 7 commits into
brain-tec:18.0from
OCA:18.0
Jul 29, 2026
Merged

Syncing from upstream OCA/contract (18.0)#1012
bt-admin merged 7 commits into
brain-tec:18.0from
OCA:18.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

qgroulard and others added 7 commits June 4, 2026 14:40
Previous implementation had 3 problems:
* Discounts were not taken into account
* When combined with 'contract_variable_quantity', '_get_quantity_to_invoice()' returns 1 for fixed quantities
* When combined with 'contract_variable_quantity', it is wrong to assume that the quantity to invoice of one big period is equal to the quantity to invoice of the sum of smaller chunks.

Because of the two last problems, we are forced to iterate over each periods and sum the subtotals.
Signed-off-by rousseldenis
Signed-off-by rousseldenis
@bt-admin bt-admin added the 18.0 label Jul 29, 2026
@bt-admin
bt-admin merged commit dacdba2 into brain-tec:18.0 Jul 29, 2026
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.

4 participants