# Point of Sale - Membership Extension

This module extends the functionality of point of sale module to implement features related to `membership_extension` OCA module. (https://github.com/OCA/vertical-association repository) For the time being, it prevents cashier to sell product to customer that doesn’t belong to some membership categories.

Table of contents

- Configuration
- Usage
- Known issues / Roadmap
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Other credits
  - Maintainers

# Configuration

- open a product form
- Go to the sale tab
- fill the field “Allowed Membership Categories”

- Configure also the membership categories. For that purpose, refer to the documentation of the OCA `membership_extension` module.

# Usage

- open the Point of Sale product

- You can see that some products have a new icon that mention that the product is not sallable. the icon disappear if you select a customer that belong to one of the membership categories :

- The module adds in the Product Pop Up info, the list of the membership categories allowed for the current product :

- If you select the product with an incorrect customer, you’ll see an error Popup :

- If you selected allowed restricted product for a partner, and then switch for another partner, a check is realized to verify that the selected products are allowed. If not, order lines will be removed and a popup message will be displayed :

# Known issues / Roadmap

- If OCA members want to develop a module named `sale_membership_extension` we should extract move some part of the code of the current module in the new module and make the current module depends on the new one.

# Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

# Credits

## Authors

- GRAP

## Contributors

- Sylvain LE GAL (https://twitter.com/legalsylvain)

## Other credits

The development of this module has been financially supported by:

- UGESS, Union Nationale des Groupements des épiceries Sociales et Solidaires (https://ugess.org/)

## Maintainers

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

This module is part of the OCA/pos project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.