Odoo Help

2

0
2 Answers
1
Avatar

JC Malaysia

--JC--
1096
| 5 3 10
Kuala Lumpur, Malaysia
--JC--

 

JC Malaysia
5/31/14, 7:15 PM

In order to change delimeter to '|'  for export , edit   addons\web\controller\main.py line 1645 *1645   writer = csv.writer(fp, quoting=csv.QUOTE_ALL)* change to * writer = csv.writer(fp, delimiter='|', quoting=csv.QUOTE_ALL)*

1
Avatar

Prakash India

--Prakash--

11631
| 6 7 9
Bikaner, India
--Prakash--

OpenERP Developer at SunARC Technology

Prakash India
5/31/14, 6:00 AM

2) To remove external ID

    In the core module in the directory addons\web\static\src\js\data_export.js

    Uncomment the below Line no: 378

   /* exported_fields.unshift({name: 'id', label: 'External ID'}); */

    OR override on_click_export_data Method in custom module

3) Export Code

  1) addons\web\static\src\xml\base.xml

  2)  addons\web\static\src\js\data_export.js

EDIT:-

  3) addons\web\controller\main.py   class CSVExport(ExportFormat, http.Controller):

I think You can change the CSV format in the above python file.

1 Comment
JC Malaysia
5/31/14, 6:43 PM

Prakash, thanks for the answer. Is the a way to export multiple tables in one export?

Ask a Question
Writer
1096
JC
Tag
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now