diff --git a/product_library/__manifest__.py b/product_library/__manifest__.py
index da1daff..61cf170 100644
--- a/product_library/__manifest__.py
+++ b/product_library/__manifest__.py
@@ -4,13 +4,15 @@
'name': 'Product Library',
'category': 'Product',
'summary': 'Add library related fields to product',
- 'version': '12.0.1.0.0',
+ 'version': '12.0.1.0.1',
'description': """
Addon mejora de Odoo para librerías y tiendas de discos
==================================================
* Añade campos a product: Editorial, autor, género, formato,...
* Hace búsquedas en el TPV y backend en esos campos nuevos
+* Búsqueda sin acentos en el PoS
+* Muestra el campo formato en el PoS en los productos y en las líneas de la orden
""",
'author': 'Criptomart',
@@ -18,12 +20,18 @@ Addon mejora de Odoo para librerías y tiendas de discos
'product',
'point_of_sale',
],
+ 'external_dependencies': {'python': [], 'bin': []},
'data': [
'views/product.xml',
'views/templates.xml'
],
+ 'qweb': ['static/src/xml/pos.xml'],
'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/static/src/css/pos.css b/product_library/static/src/css/pos.css
new file mode 100644
index 0000000..e2e4f1b
--- /dev/null
+++ b/product_library/static/src/css/pos.css
@@ -0,0 +1,19 @@
+.pos .product .format {
+ position: absolute;
+ top: 2px;
+ left: 2px;
+ vertical-align: top;
+ color: white;
+ line-height: 13px;
+ background: #7f82ac;
+ padding: 2px 5px;
+ border-radius: 2px;
+ font-weight: bold;
+}
+
+.pos .order .orderline .format {
+ color: #777;
+ font-weight: bold;
+ font-style: normal;
+}
+
diff --git a/product_library/static/src/js/product_library.js b/product_library/static/src/js/product_library.js
index 525fb37..f8cc6fa 100644
--- a/product_library/static/src/js/product_library.js
+++ b/product_library/static/src/js/product_library.js
@@ -22,6 +22,7 @@ Overload models.PosModel
product_model.fields.push('autor');
product_model.fields.push('editorial');
product_model.fields.push('genero');
+ product_model.fields.push('formato');
return _super_posmodel.initialize.apply(this, arguments);
}
});
diff --git a/product_library/static/src/xml/pos.xml b/product_library/static/src/xml/pos.xml
new file mode 100644
index 0000000..1bd5c31
--- /dev/null
+++ b/product_library/static/src/xml/pos.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/product_library/views/templates.xml b/product_library/views/templates.xml
index aa04332..4b698b9 100644
--- a/product_library/views/templates.xml
+++ b/product_library/views/templates.xml
@@ -1,3 +1,4 @@
+
@@ -5,6 +6,27 @@
+
+
+
+
+
+