diff --git a/account_banking_mandate/README.rst b/account_banking_mandate/README.rst index d92c2ed17..767034550 100644 --- a/account_banking_mandate/README.rst +++ b/account_banking_mandate/README.rst @@ -7,7 +7,7 @@ Account Banking Mandate !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:eb1e70284401ac6034fdc5377ebe1ea10cf1b66bded40581ebc4e4ddd228fcbf + !! source digest: sha256:a2e985ff665c753c4fc04968eca91622f81cf5c595fd9d26967c2aefea3556a3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/account_banking_mandate/__manifest__.py b/account_banking_mandate/__manifest__.py index d5631e667..fc0c61600 100644 --- a/account_banking_mandate/__manifest__.py +++ b/account_banking_mandate/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Account Banking Mandate", "summary": "Banking mandates", - "version": "16.0.1.2.0", + "version": "16.0.1.2.1", "development_status": "Production/Stable", "license": "AGPL-3", "author": "Compassion CH, " diff --git a/account_banking_mandate/models/account_move.py b/account_banking_mandate/models/account_move.py index 990ff1c0f..4f56561da 100644 --- a/account_banking_mandate/models/account_move.py +++ b/account_banking_mandate/models/account_move.py @@ -22,9 +22,10 @@ class AccountMove(models.Model): related="payment_mode_id.payment_method_id.mandate_required", readonly=True ) - @api.depends("payment_mode_id", "partner_id") + @api.depends("company_id", "payment_mode_id", "partner_id") def _compute_mandate_id(self): for move in self: + move = move.with_company(move.company_id) if move.payment_mode_id.payment_method_id.mandate_required: move.mandate_id = move.partner_id.valid_mandate_id else: diff --git a/account_banking_mandate/static/description/index.html b/account_banking_mandate/static/description/index.html index ac7368381..6b64db39b 100644 --- a/account_banking_mandate/static/description/index.html +++ b/account_banking_mandate/static/description/index.html @@ -366,7 +366,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:eb1e70284401ac6034fdc5377ebe1ea10cf1b66bded40581ebc4e4ddd228fcbf +!! source digest: sha256:a2e985ff665c753c4fc04968eca91622f81cf5c595fd9d26967c2aefea3556a3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
This module adds a generic model for banking mandates.