Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1534 Widoki

I am facing the issue of loading 20-30 sec on quotation confirm sales. The issue way due to the multipel lot and serial of specific product. One of the proudct suppose Paracetamol medicine has some how 106 lot/serial during purhcase of that product multiple times and if I sales that product it start loading and if I configure No lot tracking for that product, confirm sales work fine. How can I solve this issue as I have so many products in my odoo 10 with multiple lot/serial or is there any module to archieve the lot/serial with Zero quantity?  

Awatar
Odrzuć
Autor

Thank you @bella james, but with archiveing lot aslo didn't solve the issue.

Najlepsza odpowiedź

Hi 

You can create a server action for archiving those records for the model stock.production.lot 

and update the code as following

def archive_lot(self):
for rec in self:
if not rec.product_qty:
rec.active = False

Hope this helps 

Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
gru 23
22359
0
kwi 22
2549
2
kwi 21
7823
1
lip 16
4579
1
mar 15
3874