forked from Smile-SA/odoo_addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] #1085733 smile_impex : migration to V15.0
- Loading branch information
imane
authored and
Rahma ROUMANI
committed
Aug 10, 2022
1 parent
4400f60
commit d1a1311
Showing
22 changed files
with
2,353 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
=============== | ||
Import / Export | ||
=============== | ||
|
||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-Smile_SA%2Fodoo_addons-lightgray.png?logo=github | ||
:target: https://github.com/Smile-SA/odoo_addons/tree/15.0/smile_impex | ||
:alt: Smile-SA/odoo_addons | ||
|
||
|badge2| |badge3| | ||
|
||
This module allows to track and record logs during the execution of import/export operations. | ||
|
||
It could be useful especially during scheduled action, so instead of checking server logs, you could get the information from interface when actions successfully done or understand the main causes when things go wrong through logs. | ||
|
||
To be able to track logs of import/export operations, make sure you give access rights to the user by adding him to the rule ``Smile Logs / User`` as follow: | ||
|
||
#. Go to ``Settings > Users & companies > Users`` menu and select the user. | ||
#. In ``Access Rights > Others`` check the rule ``Smile Logs / User``. | ||
|
||
Features: | ||
|
||
* Define an import/export template: | ||
* Choose a model | ||
* Define a method to import/export records | ||
* Define a domain to filter lines to export | ||
* Create actions to generate a new import/export: | ||
* A client action to generate an export on the fly from records list | ||
* A scheduled action to generate periodically a new import/export | ||
* Log execution | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
**Export Case** | ||
|
||
.. figure:: static/description/export.png | ||
:alt: Export | ||
:width: 100% | ||
|
||
**Import Case** | ||
|
||
.. figure:: static/description/import.png | ||
:alt: Import | ||
:width: 100% | ||
|
||
Case of load balancing | ||
====================== | ||
|
||
If Odoo runs with several servers, with load balancing, you need to set the option `hostname` | ||
inside the configuration file of each server (default: `localhost`). | ||
|
||
If you don't set it, as PID of process created on an host is not visible by the others, | ||
at each restart of one of the other host, the import/export process will be marked as *Killed*. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/Smile-SA/odoo_addons/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/Smile-SA/odoo_addons/issues/new?body=module:%20smile_impex%0Aversion:%2014.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. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Smile SA | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Corentin Pouhet-Brunerie | ||
* Isabelle Richard | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the Smile SA. | ||
|
||
Since 1991 Smile has been a pioneer of technology and also the European expert in open source solutions. | ||
|
||
.. image:: https://avatars0.githubusercontent.com/u/572339?s=200&v=4 | ||
:alt: Smile SA | ||
:target: https://www.smile.eu | ||
|
||
This module is part of the `odoo-addons <https://github.com/Smile-SA/odoo_addons>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
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,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# (C) 2020 Smile (<https://www.smile.eu>) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import tools |
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,41 @@ | ||
# -*- coding: utf-8 -*- | ||
# (C) 2020 Smile (<https://www.smile.eu>) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Import / Export", | ||
"version": "1.2", | ||
"depends": ['smile_log'], | ||
"author": "Smile", | ||
"license": 'AGPL-3', | ||
"description": """ | ||
Import / Export | ||
Features | ||
# Define an import/export template by | ||
* choose a model | ||
* define a method to import/export records | ||
* define a domain to filter lines to export | ||
# Create actions to generate a new import/export | ||
* a client action to generate an export on the fly from records list | ||
* a scheduled action to generate periodically a new import/export | ||
# Log execution exceptions | ||
Suggestions & Feedback to: Corentin Pouhet-Brunerie | ||
& Isabelle Richard | ||
""", | ||
"summary": "", | ||
"website": "https://www.smile.eu", | ||
"category": 'Tools', | ||
"sequence": 20, | ||
"data": [ | ||
'security/ir.model.access.csv', | ||
'views/export_view.xml', | ||
'views/import_view.xml', | ||
'views/menu_view.xml', | ||
], | ||
"auto_install": False, | ||
"installable": True, | ||
"application": False, | ||
} |
Oops, something went wrong.