Skip to content

Commit

Permalink
[MIG] partner_bank_acc_type_constraint: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Deriman-Alonso committed Jul 5, 2024
1 parent aa8cad3 commit 5be093a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion partner_bank_acc_type_constraint/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Bank Account Account Type Constraint
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3d9f14c2c6b8da853990406711c740b9119d769318ff53ca5e63986d8b623403
!! source digest: sha256:8f62730cb366cb5b82234d019922c3642319a98b8332e1ac31d8a393453d1092
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
5 changes: 1 addition & 4 deletions partner_bank_acc_type_constraint/post_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import SUPERUSER_ID, api


def initialize_acc_type_manual(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
def initialize_acc_type_manual(env):
bank_accounts = env["res.partner.bank"].with_context(active_test=False).search([])
for bank_account in bank_accounts:
bank_account.write({"acc_type_manual": bank_account.acc_type})
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Bank Account Account Type Constraint</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3d9f14c2c6b8da853990406711c740b9119d769318ff53ca5e63986d8b623403
!! source digest: sha256:8f62730cb366cb5b82234d019922c3642319a98b8332e1ac31d8a393453d1092
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/partner-contact/tree/17.0/partner_bank_acc_type_constraint"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_bank_acc_type_constraint"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module aims at restoring the behavior of bank account types of Odoo
Expand Down

0 comments on commit 5be093a

Please sign in to comment.