Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] replace toggle_button to boolean_toggle widget #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xaviedoanhduy
Copy link

an example to migrating account_invoice_select_for_payment

$ python -m odoo_module_migrate -d /home/trobz/code/oca/bank-payment/16.0 -m account_invoice_select_for_payment -i 14.0 -t 18.0
Check for Odoo modules using pylint......................................Passed
11:06:37   INFO        Stage and commit changes done by pre-commit
On branch 14.0
Your branch is up to date with 'origin/14.0'.

nothing to commit, working tree clean
11:06:37   INFO        [account_invoice_select_for_payment] Running migration from 14.0 to 18.0
11:06:37   INFO        Bump version to 18.0.1.0.0
11:06:37   INFO        Replace toggle_button widget to boolean_toggle widget in file: /home/trobz/code/oca/bank-payment/16.0/account_invoice_select_for_payment/views/account_move.xml
11:06:37   INFO        Commit changes for account_invoice_select_for_payment. commit name '[MIG] account_invoice_select_for_payment: Migration to 18.0'

$ git git show --color --pretty=format:%b d95e40f9f2823d2bda83a6f208e63ad25f03e233
diff --git a/account_invoice_select_for_payment/views/account_move.xml b/account_invoice_select_for_payment/views/account_move.xml
index 7b486fb3..f3062ac9 100644
--- a/account_invoice_select_for_payment/views/account_move.xml
+++ b/account_invoice_select_for_payment/views/account_move.xml
@@ -8,7 +8,7 @@
                 <field
                     name="selected_for_payment"
                     attrs="{'invisible': [('payment_state', '!=', 'not_paid') ]}"
-                    widget="toggle_button"
+                    widget="boolean_toggle"
                 />
             </field>
         </field>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants