Browse Source

Mar 27 [UPDT] : Updated 'inventory_stock_dashboard_odoo'

pull/313/head
AjmalCybro 1 year ago
parent
commit
d380153fa2
  1. 7
      inventory_stock_dashboard_odoo/doc/RELEASE_NOTES.md
  2. 2
      inventory_stock_dashboard_odoo/models/stock_move_line.py

7
inventory_stock_dashboard_odoo/doc/RELEASE_NOTES.md

@ -4,3 +4,10 @@
#### Version 17.0.1.0.0
##### ADD
- Initial commit for Inventory Dashboard Odoo 17
## Module <inventory_stock_dashboard_odoo>
#### 27.03.2024
#### Version 17.0.1.0.1
##### BUG FIX
- Added condition for checking the category of the product.

2
inventory_stock_dashboard_odoo/models/stock_move_line.py

@ -62,6 +62,8 @@ class StockMoveLine(models.Model):
@api.model
def product_move_by_category(self, option):
""" Returns category name and quantity_done."""
if option is None:
return {}
category_id = int(option)
company_id = self.env.company.id
query = ('''select product_template.name,sum(stock_move_line.quantity) from stock_move_line

Loading…
Cancel
Save