diff --git a/mrp_usability_akretion/__manifest__.py b/mrp_usability_akretion/__manifest__.py index 44c2434..c3057ac 100644 --- a/mrp_usability_akretion/__manifest__.py +++ b/mrp_usability_akretion/__manifest__.py @@ -1,15 +1,15 @@ -# Copyright 2015-2022 Akretion (http://www.akretion.com) +# Copyright 2015-2024 Akretion France (https://www.akretion.com) # @author Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'MRP Usability', - 'version': '16.0.1.0.0', + 'version': '18.0.1.0.0', 'category': 'Manufacturing', 'license': 'AGPL-3', 'summary': 'Usability improvements on manufacturing', 'author': 'Akretion', - 'website': 'http://www.akretion.com', + 'website': 'https://github.com/akretion/odoo-usability', 'depends': ['mrp'], 'data': [ 'views/mrp_production.xml', @@ -17,5 +17,5 @@ 'views/stock_move.xml', # 'report/mrp_report.xml' # TODO ], - 'installable': False, + 'installable': True, } diff --git a/mrp_usability_akretion/models/mrp_bom.py b/mrp_usability_akretion/models/mrp_bom.py index 67d7041..4849277 100644 --- a/mrp_usability_akretion/models/mrp_bom.py +++ b/mrp_usability_akretion/models/mrp_bom.py @@ -1,4 +1,4 @@ -# Copyright 2021-2022 Akretion (http://www.akretion.com) +# Copyright 2021-2024 Akretion France (https://www.akretion.com) # @author Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -18,3 +18,4 @@ class MrpBom(models.Model): ready_to_produce = fields.Selection(tracking=90) picking_type_id = fields.Many2one(tracking=60) consumption = fields.Selection(tracking=40) + produce_delay = fields.Integer(tracking=100) diff --git a/mrp_usability_akretion/models/mrp_production.py b/mrp_usability_akretion/models/mrp_production.py index 7a2160d..7996444 100644 --- a/mrp_usability_akretion/models/mrp_production.py +++ b/mrp_usability_akretion/models/mrp_production.py @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Akretion (http://www.akretion.com) +# Copyright 2015-2024 Akretion France (https://www.akretion.com) # @author Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/mrp_usability_akretion/models/product.py b/mrp_usability_akretion/models/product.py index 871e342..0634ee6 100644 --- a/mrp_usability_akretion/models/product.py +++ b/mrp_usability_akretion/models/product.py @@ -1,4 +1,4 @@ -# Copyright 2020-2022 Akretion France (http://www.akretion.com/) +# Copyright 2020-2024 Akretion France (https://www.akretion.com/) # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import models @@ -19,7 +19,7 @@ class ProductTemplate(models.Model): { "context": {"default_product_tmpl_id": self.id}, "views": False, - "view_mode": "form,tree", + "view_mode": "form,list,kanban", "res_id": bom.id, } ) @@ -39,7 +39,7 @@ class ProductProduct(models.Model): action.update( { "views": False, - "view_mode": "form,tree", + "view_mode": "form,list,kanban", "res_id": bom_target_ids[0].id, } ) diff --git a/mrp_usability_akretion/views/mrp_production.xml b/mrp_usability_akretion/views/mrp_production.xml index 5c1d54d..d005dfe 100644 --- a/mrp_usability_akretion/views/mrp_production.xml +++ b/mrp_usability_akretion/views/mrp_production.xml @@ -1,6 +1,6 @@ @@ -15,8 +15,8 @@ - - + + @@ -24,13 +24,6 @@ 1 - - - - - diff --git a/mrp_usability_akretion/views/stock_move.xml b/mrp_usability_akretion/views/stock_move.xml index 152ebac..e82cfb0 100644 --- a/mrp_usability_akretion/views/stock_move.xml +++ b/mrp_usability_akretion/views/stock_move.xml @@ -1,6 +1,6 @@ @@ -11,10 +11,10 @@ stock.move - + - +