[MIG] excel_import_export, excel_import_export_demo: Migration to 16.0
parent
c6b7c85ac8
commit
8f3cb73073
|
@ -14,13 +14,13 @@ Excel Import/Export/Report
|
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/server-tools/tree/14.0/excel_import_export
|
||||
:target: https://github.com/OCA/server-tools/tree/16.0/excel_import_export
|
||||
:alt: OCA/server-tools
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export
|
||||
:target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/149/14.0
|
||||
:target: https://runbot.odoo-community.org/runbot/149/16.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
@ -132,12 +132,12 @@ this option allow user to create a report based on a model or view, all by confi
|
|||
- Click Save, system will create sample export line, user can add more fields according to results model.
|
||||
3. Click Add Report Menu, the report menu will be created, user can change its location. Now the report is ready to use.
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/excel_import_export/static/description/xlsx_template.png
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/server-tools/16.0/excel_import_export/static/description/xlsx_template.png
|
||||
:width: 800 px
|
||||
|
||||
Note: Using easy reporting mode, system will used a common criteria wizard.
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/excel_import_export/static/description/common_wizard.png
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/server-tools/16.0/excel_import_export/static/description/common_wizard.png
|
||||
:width: 800 px
|
||||
|
||||
Known issues / Roadmap
|
||||
|
@ -151,7 +151,7 @@ Bug Tracker
|
|||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
|
@ -190,6 +190,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
|||
|
||||
|maintainer-kittiu|
|
||||
|
||||
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/14.0/excel_import_export>`_ project on GitHub.
|
||||
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/16.0/excel_import_export>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{
|
||||
"name": "Excel Import/Export/Report",
|
||||
"summary": "Base module for developing Excel import/export/report",
|
||||
"version": "15.0.1.0.0",
|
||||
"version": "16.0.1.0.0",
|
||||
"author": "Ecosoft,Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"website": "https://github.com/OCA/server-tools",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
from . import main
|
||||
from . import report
|
||||
|
|
|
@ -8,16 +8,11 @@ import logging
|
|||
from werkzeug.urls import url_decode
|
||||
|
||||
from odoo import http
|
||||
from odoo.http import (
|
||||
content_disposition,
|
||||
request,
|
||||
route,
|
||||
serialize_exception as _serialize_exception,
|
||||
)
|
||||
from odoo.http import content_disposition, request, route, serialize_exception
|
||||
from odoo.tools import html_escape
|
||||
from odoo.tools.safe_eval import safe_eval, time
|
||||
|
||||
from odoo.addons.web.controllers import main as report
|
||||
from odoo.addons.web.controllers import report
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -44,7 +39,7 @@ class ReportController(report.ReportController):
|
|||
excel, report_name = report.with_context(**context)._render_excel(
|
||||
docids, data=data
|
||||
)
|
||||
excel = base64.decodestring(excel)
|
||||
excel = base64.decodebytes(excel)
|
||||
if docids:
|
||||
records = request.env[report.model].browse(docids)
|
||||
if report.print_report_name and not len(records) > 1:
|
||||
|
@ -94,6 +89,6 @@ class ReportController(report.ReportController):
|
|||
)
|
||||
except Exception as e:
|
||||
_logger.exception("Error while generating report %s", reportname)
|
||||
se = _serialize_exception(e)
|
||||
se = serialize_exception(e)
|
||||
error = {"code": 200, "message": "Odoo Server Error", "data": se}
|
||||
return request.make_response(html_escape(json.dumps(error)))
|
File diff suppressed because it is too large
Load Diff
|
@ -6,8 +6,8 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2022-05-13 10:05+0000\n"
|
||||
"Last-Translator: Alessandro Fiorino <alessandro.fiorino@digitaldomus.it>\n"
|
||||
"PO-Revision-Date: 2022-03-16 13:17+0000\n"
|
||||
"Last-Translator: Francesco Foresti <francesco.foresti@ooops404.com>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -242,7 +242,7 @@ msgstr "<code>date, datetime, time</code>: alcune utili classi python"
|
|||
#. module: excel_import_export
|
||||
#: model_terms:ir.ui.view,arch_db:excel_import_export.view_xlsx_template_form
|
||||
msgid "<code>model</code>: active model, e.g., self.env['my.model']"
|
||||
msgstr "<code>model</code>: modello attivo, ad es. self.env['my.model']"
|
||||
msgstr "<code>modello</code>: modello attivo, ad es. self.env['my.model']"
|
||||
|
||||
#. module: excel_import_export
|
||||
#: model_terms:ir.ui.view,arch_db:excel_import_export.view_xlsx_template_form
|
||||
|
@ -250,18 +250,18 @@ msgid ""
|
|||
"<code>object</code>: record object or line object depends on <b>Row "
|
||||
"Field</b>"
|
||||
msgstr ""
|
||||
"<code>object</code>: oggetto del record o oggetto della riga che dipende dal "
|
||||
"<b>Campo Riga</b>"
|
||||
"<code>oggetto</code>: oggetto del record o oggetto della riga che dipende "
|
||||
"dal <b>Campo Riga</b>"
|
||||
|
||||
#. module: excel_import_export
|
||||
#: model_terms:ir.ui.view,arch_db:excel_import_export.view_xlsx_template_form
|
||||
msgid "<code>value</code>: value from <b>Cell</b>"
|
||||
msgstr "<code>value</code>: valore dalla <b>Cella</b>"
|
||||
msgstr "<code>valore</code>: valore dalla <b>Cella</b>"
|
||||
|
||||
#. module: excel_import_export
|
||||
#: model_terms:ir.ui.view,arch_db:excel_import_export.view_xlsx_template_form
|
||||
msgid "<code>value</code>: value from <b>Field</b>"
|
||||
msgstr "<code>value</code>: valore dal <b>Campo</b>"
|
||||
msgstr "<code>valore</code>: valore dal <b>Campo</b>"
|
||||
|
||||
#. module: excel_import_export
|
||||
#. openerp-web
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
import csv
|
||||
import itertools
|
||||
import logging
|
||||
import re
|
||||
import string
|
||||
import uuid
|
||||
|
@ -11,17 +10,12 @@ from ast import literal_eval
|
|||
from datetime import datetime as dt
|
||||
from io import StringIO
|
||||
|
||||
import xlrd
|
||||
from dateutil.parser import parse
|
||||
|
||||
from odoo import _
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
try:
|
||||
import xlrd
|
||||
except ImportError:
|
||||
_logger.debug('Cannot import "xlrd". Please make sure it is installed.')
|
||||
|
||||
|
||||
def adjust_cell_formula(value, k):
|
||||
"""Cell formula, i.e., if i=5, val=?(A11)+?(B12) -> val=A16+B17"""
|
||||
|
|
|
@ -38,4 +38,5 @@ class ReportAction(models.Model):
|
|||
("report_type", "in", qwebtypes),
|
||||
("report_name", "=", report_name),
|
||||
]
|
||||
return report_obj.search(conditions, limit=1)
|
||||
context = self.env["res.users"].context_get()
|
||||
return report_obj.with_context(**context).search(conditions, limit=1)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
||||
<title>Excel Import/Export/Report</title>
|
||||
<style type="text/css">
|
||||
|
||||
|
@ -367,7 +367,7 @@ ul.auto-toc {
|
|||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/14.0/excel_import_export"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/excel_import_export"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>The module provide pre-built functions and wizards for developer to build excel import / export / report with ease.</p>
|
||||
<p>Without having to code to create excel file, developer do,</p>
|
||||
<ul class="simple">
|
||||
|
@ -477,13 +477,13 @@ this option allow user to create a report based on a model or view, all by confi
|
|||
</ol>
|
||||
<blockquote>
|
||||
<div class="figure">
|
||||
<img alt="https://raw.githubusercontent.com/OCA/server-tools/14.0/excel_import_export/static/description/xlsx_template.png" src="https://raw.githubusercontent.com/OCA/server-tools/14.0/excel_import_export/static/description/xlsx_template.png" style="width: 800px;" />
|
||||
<img alt="https://raw.githubusercontent.com/OCA/server-tools/16.0/excel_import_export/static/description/xlsx_template.png" src="https://raw.githubusercontent.com/OCA/server-tools/16.0/excel_import_export/static/description/xlsx_template.png" style="width: 800px;" />
|
||||
</div>
|
||||
</blockquote>
|
||||
<p>Note: Using easy reporting mode, system will used a common criteria wizard.</p>
|
||||
<blockquote>
|
||||
<div class="figure">
|
||||
<img alt="https://raw.githubusercontent.com/OCA/server-tools/14.0/excel_import_export/static/description/common_wizard.png" src="https://raw.githubusercontent.com/OCA/server-tools/14.0/excel_import_export/static/description/common_wizard.png" style="width: 800px;" />
|
||||
<img alt="https://raw.githubusercontent.com/OCA/server-tools/16.0/excel_import_export/static/description/common_wizard.png" src="https://raw.githubusercontent.com/OCA/server-tools/16.0/excel_import_export/static/description/common_wizard.png" style="width: 800px;" />
|
||||
</div>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
@ -499,7 +499,7 @@ this option allow user to create a report based on a model or view, all by confi
|
|||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
|
@ -526,7 +526,7 @@ mission is to support the collaborative development of Odoo features and
|
|||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/kittiu"><img alt="kittiu" src="https://github.com/kittiu.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/14.0/excel_import_export">OCA/server-tools</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/excel_import_export">OCA/server-tools</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -197,9 +197,11 @@
|
|||
<li><b
|
||||
>Field</b>: Field of the record, e.g., product_id.uom_id.name. They are orm compliant.</li>
|
||||
<li><b>Field Cond.</b>: Python code in <code
|
||||
>${...}</code> to manipulate field value, e.g., if field = product_id, <code
|
||||
>$</code><code
|
||||
>{...}</code> to manipulate field value, e.g., if field = product_id, <code
|
||||
>value</code> will represent product object, e.g., <code
|
||||
>${value and value.uom_id.name or ""}</code></li>
|
||||
>$</code><code
|
||||
>{value and value.uom_id.name or ""}</code></li>
|
||||
<li><b>Sum</b>: Add sum value on last row, <code
|
||||
>@{sum}</code></li>
|
||||
<li><b>Style</b>: Default style in <code
|
||||
|
@ -214,7 +216,8 @@
|
|||
<p>
|
||||
<b>Note:</b>
|
||||
</p>
|
||||
For code block <code>${...}</code> and <code
|
||||
For code block <code>$</code><code
|
||||
>{...}</code> and <code
|
||||
>#?...?</code>, following object are available,
|
||||
<ul>
|
||||
<li><code>value</code>: value from <b>Field</b></li>
|
||||
|
@ -336,15 +339,17 @@
|
|||
<li><b
|
||||
>Field</b>: Field of the record to be imported to, e.g., product_id</li>
|
||||
<li><b>Field Cond.</b>: Python code in <code
|
||||
>${...}</code> value will represent data from excel cell, e.g., if A1 = 'ABC', <code
|
||||
>$</code><code
|
||||
>{...}</code> value will represent data from excel cell, e.g., if A1 = 'ABC', <code
|
||||
>value</code> will represent 'ABC', e.g., <code
|
||||
>${value == "ABC" and "X" or "Y"}</code> thus can change from cell value to other value for import.</li>
|
||||
>$</code><code
|
||||
>{value == "ABC" and "X" or "Y"}</code> thus can change from cell value to other value for import.</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b>Note:</b>
|
||||
</p>
|
||||
For code block <code
|
||||
>${...}</code>, following object are available,
|
||||
For code block <code>$</code><code
|
||||
>{...}</code>, following object are available,
|
||||
<ul>
|
||||
<li><code>value</code>: value from <b>Cell</b></li>
|
||||
<li><code
|
||||
|
@ -375,14 +380,15 @@
|
|||
'__EXPORT__': {
|
||||
'sale_order': { # sheet can be name (string) or index (integer)
|
||||
'_HEAD_': {
|
||||
'B2': 'partner_id.display_name${value or ""}#{align=left;style=text}',
|
||||
'B3': 'name${value or ""}#{align=left;style=text}',
|
||||
'B2': 'partner_id.display_name<span
|
||||
>$</span>{value or ""}#{align=left;style=text}',
|
||||
'B3': 'name<span>$</span>{value or ""}#{align=left;style=text}',
|
||||
},
|
||||
'line_ids': { # prefix with _CONT_ to continue rows from previous row field
|
||||
'A6': 'product_id.display_name${value or ""}#{style=text}',
|
||||
'C6': 'product_uom_qty${value or 0}#{style=number}',
|
||||
'E6': 'price_unit${value or 0}#{style=number}',
|
||||
'G6': 'price_subtotal${value or 0}#{style=number}',
|
||||
'A6': 'product_id.display_name<span>$</span>{value or ""}#{style=text}',
|
||||
'C6': 'product_uom_qty<span>$</span>{value or 0}#{style=number}',
|
||||
'E6': 'price_unit<span>$</span>{value or 0}#{style=number}',
|
||||
'G6': 'price_subtotal<span>$</span>{value or 0}#{style=number}',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -391,11 +397,11 @@
|
|||
'order_line': { # prefix with _NODEL_ to not delete rows before import
|
||||
'A6': 'product_id',
|
||||
'C6': 'product_uom_qty',
|
||||
'E6': 'price_unit${value > 0 and value or 0}',
|
||||
'E6': 'price_unit<span>$</span>{value > 0 and value or 0}',
|
||||
},
|
||||
},
|
||||
},
|
||||
'__POST_IMPORT__': '${object.post_import_do_something()}',
|
||||
'__POST_IMPORT__': '<span>$</span>{object.post_import_do_something()}',
|
||||
}
|
||||
|
||||
</code>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
|
||||
from odoo import _, api, fields, models
|
||||
from odoo.exceptions import RedirectWarning, ValidationError
|
||||
|
||||
|
|
|
@ -14,13 +14,13 @@ Excel Import/Export/Report Demo
|
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/server-tools/tree/14.0/excel_import_export_demo
|
||||
:target: https://github.com/OCA/server-tools/tree/16.0/excel_import_export_demo
|
||||
:alt: OCA/server-tools
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export_demo
|
||||
:target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export_demo
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/149/14.0
|
||||
:target: https://runbot.odoo-community.org/runbot/149/16.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
@ -74,7 +74,7 @@ Bug Tracker
|
|||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export_demo%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export_demo%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
|
@ -112,6 +112,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
|||
|
||||
|maintainer-kittiu|
|
||||
|
||||
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/14.0/excel_import_export_demo>`_ project on GitHub.
|
||||
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/16.0/excel_import_export_demo>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
{
|
||||
"name": "Excel Import/Export/Report Demo",
|
||||
"version": "15.0.1.0.0",
|
||||
"version": "16.0.1.0.0",
|
||||
"author": "Ecosoft,Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"website": "https://github.com/OCA/server-tools",
|
||||
|
|
|
@ -13,4 +13,5 @@
|
|||
name="print_report_name"
|
||||
>(object.state in ('draft', 'sent') and 'Quotation - %s' % (object.name)) or 'Order - %s' % (object.name)</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
||||
<title>Excel Import/Export/Report Demo</title>
|
||||
<style type="text/css">
|
||||
|
||||
|
@ -367,7 +367,7 @@ ul.auto-toc {
|
|||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/14.0/excel_import_export_demo"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export_demo"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/excel_import_export_demo"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export_demo"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module provide some example use case for excel_import_export</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Import/Export Sales Order (import_export_sale_order)</li>
|
||||
|
@ -413,7 +413,7 @@ ul.auto-toc {
|
|||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export_demo%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20excel_import_export_demo%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
|
@ -439,7 +439,7 @@ mission is to support the collaborative development of Odoo features and
|
|||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/kittiu"><img alt="kittiu" src="https://github.com/kittiu.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/14.0/excel_import_export_demo">OCA/server-tools</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/excel_import_export_demo">OCA/server-tools</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -101,12 +101,11 @@ class TestExcelImportExport(SingleTransactionCase):
|
|||
{"name": "Test Partner", "category_id": [(6, 0, categ_ids)]}
|
||||
)
|
||||
# Create a Product
|
||||
user_type_income = cls.env.ref("account.data_account_type_direct_costs")
|
||||
cls.account_income_product = cls.env["account.account"].create(
|
||||
{
|
||||
"code": "INCOME_PROD111",
|
||||
"code": "PROD111",
|
||||
"name": "Income - Test Account",
|
||||
"user_type_id": user_type_income.id,
|
||||
"account_type": "expense_direct_cost",
|
||||
}
|
||||
)
|
||||
# Create category
|
||||
|
|
Loading…
Reference in New Issue