server-tools/views_migration_17
Bruno Zanotti 0309cf9e10 [ADD] views_migration_17: module to migrate views
This is a non installable module, the aim is to use it as a server
module to patch the odoo to to migrate views to Odoo version v17.
2023-12-13 12:00:55 -03:00
..
readme [ADD] views_migration_17: module to migrate views 2023-12-13 12:00:55 -03:00
README.rst [ADD] views_migration_17: module to migrate views 2023-12-13 12:00:55 -03:00
__init__.py [ADD] views_migration_17: module to migrate views 2023-12-13 12:00:55 -03:00
__manifest__.py [ADD] views_migration_17: module to migrate views 2023-12-13 12:00:55 -03:00
patch_xml_import.py [ADD] views_migration_17: module to migrate views 2023-12-13 12:00:55 -03:00

README.rst

.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. image:: https://img.shields.io/badge/python-3.6-blue.svg
    :alt: Python support: 3.6
.. image:: https://app.travis-ci.com/OCA/odoo-module-migrator.svg?branch=master
    :target: https://app.travis-ci.com/OCA/odoo-module-migrator

====================
Views-migration-v17
====================

``views-migration-v17`` is a odoo server mode module that allows you to automatically migrate the views of a Odoo module versión <= v16 to v17 .

For example::

    <field name="test_field_1" attrs="{'invisible': [('active', '=', True)]}"/>
    <field name="test_field_2" attrs="{'invisible': [('zip', '!=', 123)]}"/>
    <field name="test_field_3" attrs="{'readonly': [('zip', '!=', False)]}"/>

To::

    <field name="test_field_1" invisible="active"/>
    <field name="test_field_2" invisible="zip != 123"/>
    <field name="test_field_3" readonly="zip"/>


Usage
=====

This module is not installable, to use this module, you need to:

1. Run odoo with this module as a server module:

.. code-block:: shell

  odoo -d DATABASE_NAME -i MODULE_TO_MIGRATE --load=base,web,views_migration_17 --stop-after-init


2. If success the modifications will be in the source code of your module.


Credits
=======

Authors
-------
* ADHOC SA


Contributors
------------
* `ADHOC SA <https://www.adhoc.com.ar>`_:

  * Juan José Scarafía <jjs@adhoc.com.ar>
  * Bruno Zanotti <bz@adhoc.com.ar>