-
-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] report_csv: add encoding option
- Loading branch information
1 parent
fd083f7
commit 66d6741
Showing
10 changed files
with
126 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
In case the exported CSV report should be encoded in another system than UTF-8, following | ||
fields of the report record (*Settings > Technical > Reports*) should be populated accordingly. | ||
|
||
* Encoding: set an encoding system (such as cp932) | ||
* Encode Error Handling: select 'Ignore' or 'Replace' as necessary. | ||
|
||
* 'Ignore': in case of an encoding error, the problematic character will be removed from the exported file. | ||
* 'Replace': in case of an encoding error, the problematic character will be replaced with '?' symbol. | ||
* Leaving the field blank: in case of an encoding error, the report generation fails with an error message. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
* Enric Tobella <etobella@creublanca.es> | ||
* Jaime Arroyo <jaime.arroyo@creublanca.es> | ||
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th> | ||
* `Quartile <https://www.quartile.co>`__: | ||
|
||
* Aung Ko Ko Lin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="act_report_xml_view" model="ir.ui.view"> | ||
<field name="name">ir.actions.report</field> | ||
<field name="model">ir.actions.report</field> | ||
<field name="inherit_id" ref="base.act_report_xml_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='report_type']" position="after"> | ||
<field | ||
name="encoding" | ||
attrs="{'invisible': [('report_type', '!=', 'csv')]}" | ||
/> | ||
<field | ||
name="encode_error_handling" | ||
attrs="{'invisible': [('encoding', '=', False)]}" | ||
/> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |