pos icon indicating copy to clipboard operation
pos copied to clipboard

[16.0][IMP] pos_membership_extension: consider membership in shopping cart

Open flaenen opened this issue 9 months ago • 11 comments

Allow the sale of a product requiring membership if the membership product is in the shopping cart, even if the customer is not yet a member

flaenen avatar Mar 19 '25 21:03 flaenen

Hi @legalsylvain, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Mar 19 '25 21:03 OCA-git-bot

I'm not sure to understand. After the order is confirmed, the state of the customer will allways be "Non member". That is not consistent don't you think ?

legalsylvain avatar Mar 19 '25 22:03 legalsylvain

Once the order has been confirmed, the customer becomes a member of the same category as the membership product (Paid Member). This makes it possible to sell the membership at the same time as a product requiring membership.

flaenen avatar Mar 19 '25 22:03 flaenen

@flaenen Tested unsuccessfully on https://lespetitescantines.test.coopiteasy.be/ At first it worked, then I changed the config (among other things I installed l10n_fr_pos_cert_update_draft_order_line and now it doesn't work at all :

screenshot-lespetitescantines test coopiteasy be-2025 03 20-13_48_51

polchampion avatar Mar 20 '25 12:03 polchampion

@polchampion On this instance, the membership product is Adhésion and not Adhésion en Cantine. I've added it to the POS.

flaenen avatar Mar 20 '25 15:03 flaenen

@legalsylvain did you take another look here?

polchampion avatar Mar 28 '25 13:03 polchampion

@legalsylvain when you have a moment ;-)

polchampion avatar Apr 17 '25 08:04 polchampion

Tested. Looks broken.

step to reproduce :

* on last runboat,

* open a session

* search "product for member"

* select it.

image

Result : UX Problem. the product is selected. IMO, the product could be selectable, only if a membership product has been put in the shopping cart before.

Then :

* mark the order as paid.

Result: ⛔ Feature problem. It is possible to sale a product reserved to membership, on an order without customer selected.

@flaenen perhaps a conflict with another module?

polchampion avatar Apr 17 '25 14:04 polchampion

Tested. Looks broken. step to reproduce :

* on last runboat,

* open a session

* search "product for member"

* select it.

image Result : UX Problem. the product is selected. IMO, the product could be selectable, only if a membership product has been put in the shopping cart before. Then :

* mark the order as paid.

Result: ⛔ Feature problem. It is possible to sale a product reserved to membership, on an order without customer selected.

@flaenen perhaps a conflict with another module?

pos_sale_product_config_no_variant is not compatible with pos_membership_extension (no call to super in _getAddProductOptions method). This is not related to the proposed evolution.

flaenen avatar Apr 20 '25 17:04 flaenen

Tested again.

I'm sorry. I dont understand what is working.

  • possibility to sale membership without customer defined. (Doesnt make sense and should be forgotten)
  • saling membership to customer doesnt make him a member...

legalsylvain avatar Apr 21 '25 23:04 legalsylvain

Tested again.

I'm sorry. I dont understand what is working.

  • possibility to sale membership without customer defined. (Doesnt make sense and should be forgotten)
  • saling membership to customer doesnt make him a member...

This PR mainly concerns the code that determines whether or not a product can be added to the shopping cart. The modification is therefore very localised. It cannot be the cause of these problems.

pos_membership_extension does not require the creation of an invoice and the selection of a customer. To do this, the pos_membership module must be installed. I suggest adding it as a dependency : #1372

flaenen avatar Apr 27 '25 16:04 flaenen

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[bot] avatar Sep 14 '25 12:09 github-actions[bot]

@legalsylvain problems you mention have a cause elsewhere or should be fixed after #1372 is merged, can you take another look then?

polchampion avatar Oct 28 '25 14:10 polchampion