if pickings:
for picking in pickings:
if picking.seller_id.name in already_scanned:
exist_in_list = self.env['highest.bill.done.report'].search(
[('name', '=', picking.seller_id.name)])
for each_row in exist_in_list:
if each_row.name in exist_in_list:
new_qty = exist_in_list.write({'quantity': each_row.quantity + 1})
else:
already_scanned.append(picking.seller_id.name)
highest_biller = self.env['highest.bill.done.report'].create(
{'name': picking.seller_id.name, 'quantity': 1})
created_ids.append(highest_biller.id)
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
2601
Widoki
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
paź 24
|
1287 | ||
|
2
sie 25
|
2589 | ||
|
1
lip 25
|
996 | ||
|
1
sie 25
|
1151 | ||
|
0
maj 25
|
1445 |
The Indentation got mixed up here...This is the correct one....
if pickings:
for picking in pickings:
if picking.seller_id.name in already_scanned:
exist_in_list = self.env['highest.bill.done.report'].search(
[('name', '=', picking.seller_id.name)])
for each_row in exist_in_list:
if each_row.name in exist_in_list:
new_qty = exist_in_list.write({'quantity': each_row.quantity + 1})
else:
already_scanned.append(picking.seller_id.name)
highest_biller = self.env['highest.bill.done.report'].create(
{'name': picking.seller_id.name, 'quantity': 1})
created_ids.append(highest_biller.id)
Sorry The Indentation getting mixed up everytime.