format columns

This commit is contained in:
hmvr_tryton 2021-05-04 19:15:46 -05:00
parent 16fd2ca549
commit d170ac0061
3 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
,villa,villa-trytonServer,04.05.2021 19:10,file:///home/villa/.config/libreoffice/4;

View File

@ -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.