format columns
This commit is contained in:
parent
16fd2ca549
commit
d170ac0061
|
@ -0,0 +1 @@
|
|||
,villa,villa-trytonServer,04.05.2021 19:10,file:///home/villa/.config/libreoffice/4;
|
|
@ -445,7 +445,7 @@ class PurchaseSuggestedReport(Report):
|
|||
}
|
||||
with Transaction().set_context(stock_context):
|
||||
product, = Product.search([('id', '=', product_id)])
|
||||
return product.quantity, product.stock_duration
|
||||
return product.quantity
|
||||
|
||||
@classmethod
|
||||
def get_last_out_moves(cls, product_id, location_id, end_date, days):
|
||||
|
@ -534,7 +534,7 @@ class PurchaseSuggestedReport(Report):
|
|||
'name': product.template.name,
|
||||
'current_stock': current_stock,
|
||||
'uom': product.template.default_uom.name,
|
||||
'stock_duration': Decimal(current_stock) / daily_rotation,
|
||||
'stock_duration': int(Decimal(current_stock) / daily_rotation),
|
||||
'pending_purchase': cls.get_pending_purchase(product.id),
|
||||
'30': sales_30,
|
||||
'60': sales_60,
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue