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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1857
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Oct 24
|
176 | ||
|
2
Nov 24
|
272 | ||
|
1
Oct 24
|
335 | ||
|
4
Oct 24
|
326 | ||
Connect Odoo with unopim
Solved
|
|
2
Oct 24
|
362 |
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.