diff --git a/custom_addons/dashboard/__manifest__.py b/custom_addons/dashboard/__manifest__.py index a57e5dc0b..bc1017779 100644 --- a/custom_addons/dashboard/__manifest__.py +++ b/custom_addons/dashboard/__manifest__.py @@ -14,7 +14,7 @@ 'assets': { 'web.assets_backend': [ ('include', 'web_grid._assets_pqgrid'), - 'web/static/src/libs/fontawesome/css/font-awesome.css', + 'web/static/src/libs/fontawesome/*', # Internal module JS and XML files (ensure correct paths within 'static/src') 'dashboard/static/src/components/pqgrid_dashboard/pqgrid_stock_dashboard.js', 'dashboard/static/src/components/pqgrid_dashboard/pqgrid_sale_dashboard.js', diff --git a/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_sale_dashboard.xml b/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_sale_dashboard.xml index d69bb9634..9816d4586 100644 --- a/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_sale_dashboard.xml +++ b/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_sale_dashboard.xml @@ -56,67 +56,66 @@ -
-
-
-
-
- -
-
Total Invoices
-

-

-
-
- -
-
-
-
- -
-
Total Production
-

-

-
-
- -
-
-
-
- -
-
Total Sale
-

-

-
-
- -
-
-
-
- -
-
Total Margin
-

-

-
-
- -
-
-
-
- -
-
Margin %
-

-

-
+
+
+
+
+
+ ๐Ÿงพ
+
Total Invoices
+

+
+
+ +
+
+
+
+ ๐Ÿญ +
+
Total Production
+

+

+
+
+ +
+
+
+
+ ๐Ÿ›’ +
+
Total Sale
+

+

+
+
+ +
+
+
+
+ ๐Ÿ“ˆ +
+
Total Margin
+

+

+
+
+ +
+
+
+
๐Ÿ“Š
+
Margin %
+

+

+
+
+
+
diff --git a/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_stock_dashboard.xml b/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_stock_dashboard.xml index 3dec75b40..917f70522 100644 --- a/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_stock_dashboard.xml +++ b/custom_addons/dashboard/static/src/components/pqgrid_dashboard/pqgrid_stock_dashboard.xml @@ -57,65 +57,67 @@
-
- -
-
-
-
- -
-
Total Products
-

- -

- -
-
-
+
- -
-
-
-
- -
-
Current Stock Value
-

- Total inventory value -

-
-
- - -
-
-
-
- -
-
Out of Stock
-

- Products need restocking -

-
-
- - -
-
-
-
- -
-
Low Stock Alert
-

- Below minimum levels -

-
+ +
+
+
+
+ ๐Ÿ“ฆ
+
Total Products
+

+ +

+
+
+
+ + +
+
+
+
+ ๐Ÿ’ฐ +
+
Current Stock Value
+

+ Total inventory value +

+
+
+ + +
+
+
+
+ โŒ +
+
Out of Stock
+

+ Products need restocking +

+
+
+ + +
+
+
+
+ โš ๏ธ +
+
Low Stock Alert
+

+ Below minimum levels +

+
+
+ +
diff --git a/custom_addons/fixed_asset_management/models/asset_detail.py b/custom_addons/fixed_asset_management/models/asset_detail.py index 6e1272738..af29bb891 100644 --- a/custom_addons/fixed_asset_management/models/asset_detail.py +++ b/custom_addons/fixed_asset_management/models/asset_detail.py @@ -24,7 +24,7 @@ class AssetDetail(models.Model): quantity = fields.Float('Quantity', default=1.0, copy=False, tracking=True) state = fields.Selection([('draft', 'New'), ('active', 'Active'), ('scrap', 'Scrap')], string='State', default="draft") - @api.model + @api.model_create_multi def create(self, vals): location_id = self.env["asset.location"].search([("is_default", "=", True)], limit=1) vals["asset_code"] = self.env["ir.sequence"].next_by_code("asset.detail", sequence_date=datetime.now().year) or "New" diff --git a/custom_addons/fixed_asset_management/models/asset_move.py b/custom_addons/fixed_asset_management/models/asset_move.py index 8c274ad08..e7c210c92 100644 --- a/custom_addons/fixed_asset_management/models/asset_move.py +++ b/custom_addons/fixed_asset_management/models/asset_move.py @@ -12,7 +12,7 @@ class AssetMove(models.Model): asset_id = fields.Many2one(comodel_name="asset.detail", string="Asset") state = fields.Selection([('draft', 'Draft'),('done', 'Done'),('cancel', 'Cancel')], string='State', default="draft") - @api.model + @api.model_create_multi def create(self, vals): vals["name"] = self.env["ir.sequence"].next_by_code("asset.move", sequence_date=datetime.now().year) or "New" return super(AssetMove, self).create(vals)