Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 17, 2025

Show all customers wallets on search pos

Impacted versions:

18.0 and later

Steps to reproduce:

Add more than one customer with same first characters of their name
Add gift cards to them with positive balance
Search them by clicking customer button on a pos session

Video on runbot: https://drive.google.com/file/d/1kFAYjxWJmTNuNOK2ul684x_H_GAptsjB/view?usp=sharing

Current behavior:

Only shows the first wallet found (fetchCoupons default limit 1)

Expected behavior:

Show all wallets

Task: 4572808

Forward-Port-Of: #199907

@robodoo
Copy link
Contributor

robodoo commented Mar 17, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 17, 2025

This PR targets saas-18.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 17, 2025
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 18, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 26, 2025

@marh-odoo @adgu-odoo this forward port of #199907 is awaiting action (not merged or closed).

@fw-bot fw-bot force-pushed the saas-18.2-18.0-fix-4572808-marh-423627-fw branch from c164f5f to 5626df0 Compare March 26, 2025 16:35
@C3POdoo C3POdoo requested review from a team and caburj and removed request for a team March 26, 2025 16:39
@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 26, 2025

@marh-odoo @adgu-odoo legal/cla failed on this forward-port PR

@fw-bot fw-bot force-pushed the saas-18.2-18.0-fix-4572808-marh-423627-fw branch from 5626df0 to a105cae Compare March 26, 2025 17:38
When you have many contacts (more than 300 approx.) and you search for a specific one from the point of sale, if more than one of those listed in the result has a wallet, only one wallet will be shown, because by default fetchCoupons has limit = 1

Video on runbot: https://drive.google.com/file/d/1kFAYjxWJmTNuNOK2ul684x_H_GAptsjB/view?usp=sharing

By modifying searchPartner function, we ensure all customers wallets will be displayed, I've also added point condition to ensure not to show empty wallets.

Related task: [4572808](https://www.odoo.com/odoo/project/49/tasks/4572808)

X-original-commit: b621b25
@fw-bot fw-bot force-pushed the saas-18.2-18.0-fix-4572808-marh-423627-fw branch from a105cae to e5c3fae Compare March 27, 2025 23:27
@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 28, 2025

@marh-odoo @adgu-odoo child PR #202212 was modified / updated and has become a normal PR. This PR (and any of its parents) will need to be merged independently as approvals won't cross.

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 1, 2025

@marh-odoo @adgu-odoo this forward port of #199907 is awaiting action (not merged or closed).

3 similar comments
@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 8, 2025

@marh-odoo @adgu-odoo this forward port of #199907 is awaiting action (not merged or closed).

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 15, 2025

@marh-odoo @adgu-odoo this forward port of #199907 is awaiting action (not merged or closed).

@fw-bot
Copy link
Contributor Author

fw-bot commented May 13, 2025

@marh-odoo @adgu-odoo this forward port of #199907 is awaiting action (not merged or closed).

@adgu-odoo
Copy link
Contributor

robodoo r+

@robodoo
Copy link
Contributor

robodoo commented May 15, 2025

@marh-odoo @adgu-odoo because this PR has multiple commits, I need to know how to merge it:

  • merge to merge directly, using the PR as merge commit message
  • rebase-merge to rebase and merge, using the PR as merge commit message
  • rebase-ff to rebase and fast-forward

robodoo pushed a commit that referenced this pull request May 15, 2025
When you have many contacts (more than 300 approx.) and you search for a specific one from the point of sale, if more than one of those listed in the result has a wallet, only one wallet will be shown, because by default fetchCoupons has limit = 1

Video on runbot: https://drive.google.com/file/d/1kFAYjxWJmTNuNOK2ul684x_H_GAptsjB/view?usp=sharing

By modifying searchPartner function, we ensure all customers wallets will be displayed, I've also added point condition to ensure not to show empty wallets.

Related task: [4572808](https://www.odoo.com/odoo/project/49/tasks/4572808)

closes #202204

X-original-commit: b621b25
Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
@robodoo robodoo closed this May 15, 2025
@fw-bot fw-bot deleted the saas-18.2-18.0-fix-4572808-marh-423627-fw branch May 22, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants