Skip to content

Add a list of products available for change tariff in Product catalog

Pelayo García requested to merge feature/products-available-from-product into master

CHANGELOG:

### Added
- [#783](https://gitlab.com/coopdevs/odoo-somconnexio/-/merge_requests/783) Add a list of products available for change tariff in Product catalog

Related card: https://trello.com/c/Dpe3qMUP/1213-modelar-productos-disponibles-para-cambio-de-tarifa-por-cada-producto


This MR adds a configuration panel to choose what products are available from product to change the contract tariff.

Configure it form product form and expose them via API with a filter (product query parameter) in product-catalog/ endpoint. Ex:

imagen

➜ curl -X GET \
-H  "accept: application/json" \
-H  "api-key: $APIKEY" \
-H  "Accept-Language: $ODOOLANG" \
"$URL/api/product-catalog/?product_code=SE_SC_REC_BA_F_100" | jq '.pricelists[0].products[].name'

"Fibra 100Mb Sense Fix"
Edited by Pelayo García

Merge request reports