summaryrefslogtreecommitdiff
path: root/addons/product/static
diff options
context:
space:
mode:
authorJigar Patel <jat@openerp.com>2018-07-17 18:49:05 +0530
committerxmo-odoo <xmo@odoo.com>2018-07-17 15:19:05 +0200
commitb60de0db41bbe4af3c2f6e2369eda5d483702d76 (patch)
tree5b41a3654948efb6f758d63f7676f3a040d2d7d2 /addons/product/static
parent57676dc7d10b50bee44d122d48863586b18e4593 (diff)
[IMP] import/export UIs
Task 40692 Various changes to import/export (mainly) UIs: * default to excel & "full" (non-import-compatible) export * auto-detect encoding of CSV using chardet * remember column -> field mapping after having imported a file (useful for repeated imports where auto-matching failed) * better handle localised booleans & column names * automatically select source list view's fields when exporting * better integrate import templates feature and add a number of templates
Diffstat (limited to 'addons/product/static')
-rw-r--r--addons/product/static/csv/product.template.csv4
-rw-r--r--addons/product/static/src/js/product_template_import.js19
-rw-r--r--addons/product/static/xls/product_pricelist.xlsbin0 -> 33280 bytes
-rw-r--r--addons/product/static/xls/product_supplierinfo.xlsbin0 -> 32768 bytes
-rw-r--r--addons/product/static/xls/product_template.xlsbin0 -> 36864 bytes
5 files changed, 0 insertions, 23 deletions
diff --git a/addons/product/static/csv/product.template.csv b/addons/product/static/csv/product.template.csv
deleted file mode 100644
index bb47b9c4fae..00000000000
--- a/addons/product/static/csv/product.template.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-ID,Name,Product Type,Internal Reference,Barcode,Sales Price,Cost,Weight,Sale Description
-product_template_1,Pedal Bin,Consumable,AK789,,29.99,12,,
-product_template_2,Dell Inspiron Laptop without OS,Consumable,DELL15,,2499,1643,,2 years warranty
-product_template_3,Prepaid Consulting,Service,,,90,40,,
diff --git a/addons/product/static/src/js/product_template_import.js b/addons/product/static/src/js/product_template_import.js
deleted file mode 100644
index c00a6d983e1..00000000000
--- a/addons/product/static/src/js/product_template_import.js
+++ /dev/null
@@ -1,19 +0,0 @@
-odoo.define('product_template_import.import', function (require) {
-"use strict";
-
-var core = require('web.core');
-var BaseImport = require('base_import.import');
-
-var _t = core._t;
-
-BaseImport.DataImport.include({
- renderImportLink: function() {
- this._super();
- if (this.res_model == 'product.template') {
- this.$(".import-link").prop({"text": _t(" Import Template for Products"), "href": "/product/static/csv/product.template.csv"});
- this.$(".template-import").removeClass("hidden");
- }
- },
-});
-
-});
diff --git a/addons/product/static/xls/product_pricelist.xls b/addons/product/static/xls/product_pricelist.xls
new file mode 100644
index 00000000000..308534d88e7
--- /dev/null
+++ b/addons/product/static/xls/product_pricelist.xls
Binary files differ
diff --git a/addons/product/static/xls/product_supplierinfo.xls b/addons/product/static/xls/product_supplierinfo.xls
new file mode 100644
index 00000000000..75a07730980
--- /dev/null
+++ b/addons/product/static/xls/product_supplierinfo.xls
Binary files differ
diff --git a/addons/product/static/xls/product_template.xls b/addons/product/static/xls/product_template.xls
new file mode 100644
index 00000000000..f74e7064ba6
--- /dev/null
+++ b/addons/product/static/xls/product_template.xls
Binary files differ