diff --git a/product_create_stock_picking/__manifest__.py b/product_create_stock_picking/__manifest__.py index 513c21a..ff02431 100644 --- a/product_create_stock_picking/__manifest__.py +++ b/product_create_stock_picking/__manifest__.py @@ -1,17 +1,28 @@ { - "name": "Product Create Stock Picking", - "category": "Warehouse", - "summary": "Add an action to create a stock picking from a selection of products.", - "version": "16.0.1.0.0", - "author": "Criptomart", - "license": "AGPL-3", - "description": """ + 'name': 'Product Create Stock Picking', + 'category': 'Warehouse', + 'summary': 'Add an action to create a stock picking from a selection of products.', + 'version': "16.0.1.0.0", + 'description': """ Add an action to create a stock picking from a selection of products. - """, - "depends": ["stock"], - "data": ["data/data.xml"], - "installable": True, - "application": False, +""", + 'author': 'Criptomart', + 'depends': [ + 'stock', + ], + 'external_dependencies': {'python': [], 'bin': []}, + 'data': [ + 'data/data.xml', + ], + 'qweb': [], + 'demo': [], + 'installable': True, + 'auto_install': False, + 'application': True, + "post_load": None, + "pre_init_hook": None, + "post_init_hook": None, + "uninstall_hook": None, } diff --git a/product_library/__manifest__.py b/product_library/__manifest__.py index 7b2b724..96c156b 100644 --- a/product_library/__manifest__.py +++ b/product_library/__manifest__.py @@ -1,20 +1,24 @@ { - "name": "Product Library", - "category": "Product", - "summary": "Add library related fields to product", - "version": "16.0.1.0.0", - 'author': "Criptomart", - "license": "AGPL-3", - "description": """ + 'name': 'Product Library', + 'category': 'Product', + 'summary': 'Add library related fields to product', + 'version': "16.0.1.0.0", + 'description': """ Addon mejora de Odoo para librerías y tiendas de discos ================================================== * Añade campos a product: Editorial, autor, género, formato, fecha de edición, fecha de entrada, colección, subcolección. * Hace búsquedas en la ficha de productos del backend en esos campos nuevos. """, - "depends": ["product"], - "data": ["views/product.xml"], - "demo": [], - "installable": True, - "application": True, + 'author': 'Criptomart', + 'depends': [ + 'product', + ], + 'data': [ + 'views/product.xml', + ], + 'demo': [], + 'installable': True, + 'auto_install': False, + 'application': True, } diff --git a/product_retail_cm/__manifest__.py b/product_retail_cm/__manifest__.py index 923ad07..38bbfcd 100644 --- a/product_retail_cm/__manifest__.py +++ b/product_retail_cm/__manifest__.py @@ -1,19 +1,23 @@ { - "name": "Product Retail", - "category": "Product", - "summary": "Gestiona productos en distribución a minoristas.", - "author": "Criptomart", - "license": "AGPL-3", - "version": "16.0.1.0.0", - "description": """ + 'name': 'Product Retail', + 'category': 'Product', + 'summary': 'Gestiona productos en distribución.', + 'version': "16.0.1.0.0", + 'description': """ Gestiona productos en distribución / Venta a minoristas ================================================== * Añade campo a product: En Distribución y margin de minoristas. * Filtro de productos en distribución en la vista de productos. """, - "depends": ["product"], - "data": ["views/product.xml"], - "installable": True, - "application": False, + 'author': 'Criptomart', + 'depends': [ + 'product', + ], + 'data': [ + 'views/product.xml', + ], + 'installable': True, + 'auto_install': False, + 'application': False, } diff --git a/product_retail_cm/models/product_template.py b/product_retail_cm/models/product_template.py index e61ca84..969896f 100644 --- a/product_retail_cm/models/product_template.py +++ b/product_retail_cm/models/product_template.py @@ -1,7 +1,7 @@ # Copyright (C) 2022-2024: Criptomart (https://criptomart.net) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import models, fields +from odoo import tools, models, fields, api, _ class ProductTemplate(models.Model): diff --git a/stock_picking_deposito/models/stock_picking.py b/stock_picking_deposito/models/stock_picking.py index 70d961f..f9855e7 100644 --- a/stock_picking_deposito/models/stock_picking.py +++ b/stock_picking_deposito/models/stock_picking.py @@ -41,7 +41,8 @@ class Picking(models.Model): for picking in self: if not picking.partner_id: return - _logger.debug("onchange %s %s", picking.location_dest_id.name, picking.location_id.name) # web client does not update without this, wtf? + _logger.warning("onchange %s %s", picking.location_dest_id.name, picking.location_id.name) # web cliebt does not update without this, wtf? + _logger.warning("onchange %s", picking.picking_type_id.code) if picking.picking_type_id.is_deposit: if picking.picking_type_id.code in ["internal","outgoing"]: if not picking.partner_id.deposit_sale_accept: @@ -63,12 +64,12 @@ class Picking(models.Model): def change_dest_location(self, vals, code): if vals.get("partner_id"): partner = self.env["res.partner"].browse(vals.get("partner_id")) - if code in ["internal", "outgoing"]: + if code == "internal": if not partner.deposit_sale_accept: raise ValidationError("Éste cliente no acepta material en depósito, configúralo antes de crear un depósito para él.") return vals.update({ - "location_id": partner.deposit_sale_location_id.id, + "location_dest_id": partner.deposit_sale_location_id.id, }) elif code == 'incoming': if not partner.deposit_buy_accept: diff --git a/website_description_internal/__manifest__.py b/website_description_internal/__manifest__.py index 7b1348b..95f08ec 100644 --- a/website_description_internal/__manifest__.py +++ b/website_description_internal/__manifest__.py @@ -1,16 +1,15 @@ { - "name": "Website Descrition Internal", - "version": "16.0.1.0.0", - "summary": "Sobrescribe el campo website_description y devuelve el campo internal description. Hereda la vista del campo y modifica el css.", - "author2": "Criptomart", - "license": "AGPL-3", - "depends": ["product","website_sale"], - "data": ["views/templates.xml"], - "assets": { - "web.assets_frontend": [ - "website_description_internal/static/src/scss/custom.scss", + 'name': 'Website Descrition Internal', + 'version': '16.0.1.0.0', + 'summary': 'Sobrescribe el campo website_description y devuelve el campo internal description. Hereda la vista del campo y modifica el css.', + 'author': 'Criptomart', + 'depends': ['product','website_sale'], + 'data': ['views/templates.xml'], + 'assets': { + 'web.assets_frontend': [ + 'website_description_internal/static/src/scss/custom.scss', ], }, - "installable": True, - "application": False, + 'installable': True, + 'application': False, } diff --git a/website_sale_product_library/__manifest__.py b/website_sale_product_library/__manifest__.py index 1219a10..2b34c1c 100644 --- a/website_sale_product_library/__manifest__.py +++ b/website_sale_product_library/__manifest__.py @@ -1,5 +1,5 @@ { - "name": "Website Sale Product Library", + "name": "Website Sale Product Library.", "version": "16.0.1.0.3", "category": "Website", "summary": "Modifica website_sale para una librería / Tienda de música.", @@ -15,13 +15,13 @@ Modifica la tienda online con los campos de product_library. * Linka internal description con website_description. * Muestra en product en la lista de productos los campos de product_library (subtítulo, autor, editorial, formato, género). * En la vista del producto, añade subtítulo y autor después del nombre y la descripción. -* Búsqueda en la web por autor, editorial y subtítulo, quita la búsqueda en descripción. +* Búsueda en la web por autor, editorial y subtítulo. """, "depends": ["website_sale", "product_library"], "data": ["views/website_sale_views.xml"], "assets": { "web.assets_frontend": [ - "website_sale_product_library/static/src/scss/custom.scss", + "website_sale_product_description_displayed/static/src/scss/custom.scss", ], }, "application": False, diff --git a/website_sale_product_library/views/website_sale_views.xml b/website_sale_product_library/views/website_sale_views.xml index 20d1f96..cbcc60d 100644 --- a/website_sale_product_library/views/website_sale_views.xml +++ b/website_sale_product_library/views/website_sale_views.xml @@ -8,10 +8,10 @@ > - . - . - - + . + . + +