Skip to content

[15.0][MIG] purchase_order_uninvoiced_amount: Migration to version 15.0#1609

Merged
OCA-git-bot merged 18 commits intoOCA:15.0from
Tecnativa:15.0-mig-purchase_order_uninvoiced_amount
Nov 8, 2022
Merged

[15.0][MIG] purchase_order_uninvoiced_amount: Migration to version 15.0#1609
OCA-git-bot merged 18 commits intoOCA:15.0from
Tecnativa:15.0-mig-purchase_order_uninvoiced_amount

Conversation

@sergio-teruel
Copy link
Copy Markdown
Contributor

Manuel Calero and others added 17 commits October 25, 2022 21:17
…iscount

If we use such module, the final price is not the PO line price unit, so we need to
extract the unit price from the subtotal divided by the quantity instead for
getting a proper result on both cases.

TT25368
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_order_uninvoiced_amount
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_order_uninvoiced_amount/
… 100

If using purchase_discount, and having one line with discount = 100,
line.price_subtotal / line.product_qty was evaluated as falsy, and thus
the unit price is taken, returning an incorrect amount.

We avoid the problem using if/else Python unary operation instead
of and/or expression.
…grouped sum values in purchase tree view

TT38874
Copy link
Copy Markdown
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase to solve some test warnings.

Comment thread purchase_order_uninvoiced_amount/tests/test_purchase_order_uninvoiced_amount.py Outdated
@sergio-teruel sergio-teruel force-pushed the 15.0-mig-purchase_order_uninvoiced_amount branch from 43ad55a to ae5db77 Compare October 26, 2022 08:42
@sergio-teruel
Copy link
Copy Markdown
Contributor Author

@victoralmau Changes done!!

@victoralmau
Copy link
Copy Markdown
Member

Tests fail, could you check it?

@sergio-teruel
Copy link
Copy Markdown
Contributor Author

Yes.. I know...

@sergio-teruel sergio-teruel force-pushed the 15.0-mig-purchase_order_uninvoiced_amount branch from ae5db77 to e9ecb29 Compare October 26, 2022 12:23
@sergio-teruel
Copy link
Copy Markdown
Contributor Author

Tests fixed!!

Copy link
Copy Markdown
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review OK

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza
Copy link
Copy Markdown
Member

/ocabot migration purchase_order_uninvoiced_amount
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Nov 8, 2022
@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-1609-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Nov 8, 2022
78 tasks
@OCA-git-bot OCA-git-bot merged commit 3f2da52 into OCA:15.0 Nov 8, 2022
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 3cc3f65. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants