-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] views_migration_17: refactor patch
- Loading branch information
1 parent
5f6e28d
commit e2eb1f8
Showing
3 changed files
with
66 additions
and
131 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,53 @@ | ||
.. 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: | ||
|
||
.. code-block:: xml | ||
<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: | ||
|
||
.. code-block:: xml | ||
<field name="test_field_1" invisible="active"/> | ||
<field name="test_field_2" invisible="zip != 123"/> | ||
<field name="test_field_3" readonly="zip"/> | ||
Usage | ||
===== | ||
|
||
.. code-block:: shell | ||
odoo -d [database_name] -i [module_name] --load=base,web,views_migration_17 | ||
Credits | ||
======= | ||
|
||
Authors | ||
------- | ||
* ADHOC SA | ||
|
||
|
||
Contributors | ||
------------ | ||
* `ADHOC SA <https://www.adhoc.com.ar>`_: | ||
|
||
* Juan José Scarafía | ||
* Bruno Zanotti |
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