Browse Source

[MIG] base_export_manager: Migrate to v11

- Remove all possible translation commits
- Aesthetical changes
- Bump version
- Some new standards, such as split readme

Basically, nothing.
pull/67/head
Jairo Llopis 6 years ago
committed by Olivier Jossen
parent
commit
e749962caa
  1. 66
      base_export_manager/README.rst
  2. 4
      base_export_manager/__init__.py
  3. 7
      base_export_manager/__manifest__.py
  4. 1
      base_export_manager/hooks.py
  5. 4
      base_export_manager/models/__init__.py
  6. 1
      base_export_manager/models/ir_exports.py
  7. 1
      base_export_manager/models/ir_exports_line.py
  8. 1
      base_export_manager/models/ir_model_access.py
  9. 1
      base_export_manager/models/res_users.py
  10. 6
      base_export_manager/readme/CONFIGURE.rst
  11. 7
      base_export_manager/readme/CONTRIBUTORS.rst
  12. 7
      base_export_manager/readme/DESCRIPTION.rst
  13. 1
      base_export_manager/readme/ROADMAP.rst
  14. 35
      base_export_manager/readme/USAGE.rst
  15. 5
      base_export_manager/tests/__init__.py
  16. 3
      base_export_manager/tests/test_ir_exports.py
  17. 1
      base_export_manager/tests/test_ir_exports_line.py

66
base_export_manager/README.rst

@ -1,10 +1,29 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
============================
Manage model export profiles
============================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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-OCA%2Fserver--ux-lightgray.png?logo=github
:target: https://github.com/OCA/server-ux/tree/11.0/base_export_manager
:alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-ux-11-0/server-ux-11-0-base_export_manager
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/250/11.0
:alt: Try me on Runbot
===================
Base Export Manager
===================
|badge1| |badge2| |badge3| |badge4| |badge5|
This module extends the export capability:
@ -14,6 +33,11 @@ This module extends the export capability:
override the export method to check if the user is allowed to export. Export
is enabled by default.
**Table of contents**
.. contents::
:local:
Configuration
=============
@ -63,10 +87,6 @@ Once you have configured groups who cannot export an object:
* Go to the list view of the object you disabled the export
* Select records and open the Action menu. The "Export" is not there.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
Known issues / Roadmap
======================
@ -75,17 +95,25 @@ Known issues / Roadmap
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.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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-ux/issues/new?body=module:%20base_export_manager%0Aversion:%2011.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
~~~~~~~
* Tecnativa
* LasLabs
* Ursa Information Systems
Contributors
------------
~~~~~~~~~~~~
* Javier Iniesta <javieria@antiun.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
@ -95,17 +123,19 @@ Contributors
* Sandip Mangukiya <smangukiya@ursainfosystems.com>
* Maxime Chambreuil <mchambreuil@ursainfosystems.com>
Maintainer
----------
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/11.0/base_export_manager>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

4
base_export_manager/__init__.py

@ -1,6 +1,2 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
from .hooks import post_init_hook

7
base_export_manager/__manifest__.py

@ -1,11 +1,12 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# Copyright 2015 Tecnativa - Antonio Espinosa
# Copyright 2016 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': "Manage model export profiles",
'category': 'Personalization',
'version': '10.0.1.0.0',
'version': '11.0.1.0.0',
'depends': [
'web',
],

1
base_export_manager/hooks.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, SUPERUSER_ID

4
base_export_manager/models/__init__.py

@ -1,6 +1,2 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import ir_exports, ir_exports_line
from . import ir_model_access, res_users

1
base_export_manager/models/ir_exports.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

1
base_export_manager/models/ir_exports_line.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# Copyright 2015-2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

1
base_export_manager/models/ir_model_access.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 - Ursa Information Systems <http://ursainfosystems.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

1
base_export_manager/models/res_users.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 - Ursa Information Systems <http://ursainfosystems.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

6
base_export_manager/readme/CONFIGURE.rst

@ -0,0 +1,6 @@
* Activate the developer mode
* Go to Settings > Users > Groups to select a user group
* Edit the group and go to the Access Rights tab
* Uncheck the "Export Access" box on the object of your choice and save
You can also go to Settings > Technical > Security > Access Rights.

7
base_export_manager/readme/CONTRIBUTORS.rst

@ -0,0 +1,7 @@
* Javier Iniesta <javieria@antiun.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* Rafael Blasco <rafael.blasco@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Dave Lasley <dave@laslabs.com>
* Sandip Mangukiya <smangukiya@ursainfosystems.com>
* Maxime Chambreuil <mchambreuil@ursainfosystems.com>

7
base_export_manager/readme/DESCRIPTION.rst

@ -0,0 +1,7 @@
This module extends the export capability:
1. It allows an admin to manage export profiles (``ir.exports``) that
Odoo stores internally but does not show anywhere.
2. It also adds a new column to access rights to enable/disable export and
override the export method to check if the user is allowed to export. Export
is enabled by default.

1
base_export_manager/readme/ROADMAP.rst

@ -0,0 +1 @@
* Translated labels are not used in final exported file.

35
base_export_manager/readme/USAGE.rst

@ -0,0 +1,35 @@
You can create the export profiles as you are used to:
* Go to any list view.
* Check some records.
* Press *More > Export*.
* Use the wizard to choose the columns to export.
* Press *Save fields list*.
* Give it a name.
* Press *OK*.
To manage export profiles, you need to:
* Go to *Settings > Technical > User Interface > Export Profiles*.
* Create a new one.
* Choose a name.
* Choose a model (table in the database).
* Choose the fields to export.
* If you choose a related field, you can choose also up to 4 levels of
subfields.
* You can drag & drop to reorder the fields.
To use one of those profiles, you need to:
* Go to any list view.
* Check some records.
* Press *More > Export*.
* Choose your saved export from *Saved exports*.
* Press *Export to file*.
Once you have configured groups who cannot export an object:
* Connect as a user of this group
* Go to the list view of the object you disabled the export
* Select records and open the Action menu. The "Export" is not there.

5
base_export_manager/tests/__init__.py

@ -1,7 +1,2 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingeniería S.L. - Javier Iniesta
# Copyright 2015 Antiun Ingeniería S.L. - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_ir_exports
from . import test_ir_exports_line

3
base_export_manager/tests/test_ir_exports.py

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis
# Copyright 2015-2018 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.exceptions import ValidationError

1
base_export_manager/tests/test_ir_exports_line.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta
# Copyright 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

Loading…
Cancel
Save