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

[FW][FIX] l10n_ch: don't assume the bank account of the company always has a currency_id #43351

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jan 15, 2020

Since this field is not required on res.partner.bank (which is fine: we want it to be synchronized with the journal's currency, which is None if the journal uses company currency), the parameter received by validate_swiss_code_arguments ended out being an empty recordset in case the company was directly in CHF. This caused the QR code to never be displayed in this situation.

Forward-Port-Of: #43282

…s a currency_id

Since this field is not required on res.partner.bank (which is fine: we want it to be synchronized with the journal's currency, which is None if the journal uses company currency), the parameter received by validate_swiss_code_arguments ended out being an empty recordset in case the company was directly in CHF. This caused the QR code to never be displayed in this situation.

X-original-commit: 60a5583
@robodoo robodoo added seen 🙂 forwardport This PR was created by @fw-bot CI 🤖 Robodoo has seen passing statuses labels Jan 15, 2020
@C3POdoo C3POdoo added the RD research & development, internal work label Jan 15, 2020
@smetl
Copy link
Contributor

smetl commented Jan 15, 2020

@fw-bot r+

robodoo pushed a commit that referenced this pull request Jan 15, 2020
…s a currency_id

Since this field is not required on res.partner.bank (which is fine: we want it to be synchronized with the journal's currency, which is None if the journal uses company currency), the parameter received by validate_swiss_code_arguments ended out being an empty recordset in case the company was directly in CHF. This caused the QR code to never be displayed in this situation.

closes #43351

X-original-commit: 60a5583
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
@robodoo robodoo closed this Jan 15, 2020
@robodoo robodoo temporarily deployed to merge January 15, 2020 16:01 Inactive
@fw-bot fw-bot deleted the master-12.0-fix-ch-qr-currency-oco-LLTq-fw branch January 29, 2020 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants