Skip to content

[14.0][FIX] sale_commission_product_criteria: Get items without commission#660

Open
SirPyTech wants to merge 3 commits into
OCA:14.0from
PyTech-SRL:14.0-fix-sale_commission_product_criteria-no_commission
Open

[14.0][FIX] sale_commission_product_criteria: Get items without commission#660
SirPyTech wants to merge 3 commits into
OCA:14.0from
PyTech-SRL:14.0-fix-sale_commission_product_criteria-no_commission

Conversation

@SirPyTech

Copy link
Copy Markdown

Backporting 2 small PRs from 16.0: #615 and #619.
@Tisho99, @ValentinVinagre and @manuelregidor thanks for your work on those PRs!
Maybe you want to have a look?


I have also a dded a fix for method _get_commission_items: unfortunately I don't know ho to reproduce it from the UI, but calling the method with an empty commission raises:

ERROR: operator does not exist: integer = boolean
LINE 9:             AND (item.commission_id = false)
                                            ^
HINT:  No operator matches the given name and argument types. You might need to add explicit type casts

See the added test for more details.

Tisho99 and others added 3 commits February 3, 2026 09:34
Otherwise the following error happens:
ERROR: operator does not exist: integer = boolean
LINE 9:             AND (item.commission_id = false)
                                            ^
HINT:  No operator matches the given name and argument types. You might need to add explicit type casts
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @PicchiSeba, @renda-dev, @aleuffre, @ilyasProgrammer,
some modules you are maintaining are being modified, check this out!

@SirPyTech SirPyTech marked this pull request as ready for review February 3, 2026 09:13

@Tisho99 Tisho99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Code review. ¿Could you add the version to the PR title?

@SirPyTech SirPyTech changed the title [FIX] sale_commission_product_criteria: Get items without commission [14.0][FIX] sale_commission_product_criteria: Get items without commission Feb 3, 2026
@SirPyTech

Copy link
Copy Markdown
Author

LGTM. Code review. ¿Could you add the version to the PR title?

Thanks for the review!
I usually don't add it because it feels redundant, but here I added it to thank you for the approval 😉

@ValentinVinagre

Copy link
Copy Markdown

@SirPyTech We don't review things from older versions. Sorry for the inconvenience. Next time, please don't ping two people from the same company. Thanks.

@SirPyTech

Copy link
Copy Markdown
Author

@SirPyTech We don't review things from older versions. Sorry for the inconvenience. Next time, please don't ping two people from the same company. Thanks.

Thanks for the feedback anyway 🤗
Sorry for the noise, as you know it's hard to get reviews in the OCA so I usually ping whoever might be interested.

@ValentinVinagre

Copy link
Copy Markdown

@SirPyTech We don't review things from older versions. Sorry for the inconvenience. Next time, please don't ping two people from the same company. Thanks.

Thanks for the feedback anyway 🤗 Sorry for the noise, as you know it's hard to get reviews in the OCA so I usually ping whoever might be interested.

No problem 😸 . You should ping the repository's psc's; they're the ones who maintain the whole ecosystem.

@SirPyTech

Copy link
Copy Markdown
Author

@SirPyTech We don't review things from older versions. Sorry for the inconvenience. Next time, please don't ping two people from the same company. Thanks.

Thanks for the feedback anyway 🤗 Sorry for the noise, as you know it's hard to get reviews in the OCA so I usually ping whoever might be interested.

No problem 😸 . You should ping the repository's psc's; they're the ones who maintain the whole ecosystem.

I usually bother the PSC only when the PR has enough reviews.

@HekkiMelody HekkiMelody left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code review, LGTM. Thanks for the fixes!

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 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 PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 7, 2026
@SirPyTech

Copy link
Copy Markdown
Author

@OCA/crm-sales-marketing-maintainers this backporting already has 2 approvals, can someone have a look? Thanks!

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

Labels

approved stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants