In the customer portal, the Quotation panel only shows orders with the status 'sent' or 'cancel'. The sale Order panel also only shows orders with the status 'sale' or 'done'. I want to show 'draft' orders to customers as well. what should I do? I also changed the domain in the sale customer portal controller but it doesn't affect.
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
3328
Widoki
Hi,
If you are familiar with odoo customization you can use the following method.
You can override the following functions in the sales customer portal controller.Replace the following lines in the _prepare_home_portal_values function with,
quotation_count = SaleOrder.search_count([
('message_partner_ids', 'child_of', [partner.commercial_partner_id.id]),
('state', 'in', ['draft', 'sent', 'cancel'])
]) if SaleOrder.check_access_rights('read', raise_exception=False) else 0
also the inside the portal_my_quotes function with,
domain = [
('message_partner_ids', 'child_of', [partner.commercial_partner_id.id]),
('state', 'in', ['draft', 'sent', 'cancel'])
]
Regards
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ść | |
---|---|---|---|---|
|
0
lip 22
|
4876 | ||
Odoo13 many2many insert does not work
Rozwiązane
|
|
1
sie 21
|
2317 | |
|
2
lis 17
|
5942 | ||
|
1
sty 25
|
2800 | ||
Odoo13 Set password for portal user
Rozwiązane
|
|
1
gru 23
|
5746 |
logically customers are allowed to see the sale orders that have been sent. Draft orders may be get canceled and to manage the price and other formalities internally.
In there any way to show draft quotes in customer portal quotations ?