I have created a Rental Application to add product for rent for duration like hourly, monthly, etc. But when i add product only the product which are available for sale are listed in Shop. I think it is due to sale_ok field in product.template table. Because i have made updation that both sellable and rentable product should have is_publised field to True.
I want to update the product domain such that the product having field is_Rent=True should also be listed in the shop page. I am unable to locate the folder where this product domain is defined that on sale_ok=True the products are displayed. Please solve my issue, in which directory i need to make changes.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
611
Widoki
the function that returns the products is _shop_lookup_products located in website_sale/controllers -> main.py
here is called the function _search_with_fuzzy which is the one that applies the filters of is_published and sale_ok fields
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
sty 25
|
965 | ||
|
0
sie 25
|
647 | ||
|
1
sie 25
|
371 | ||
My account will expire.
Rozwiązane
|
|
2
lip 25
|
691 | |
|
2
cze 25
|
1272 |