[FIX] _check_payment_mode_company_constrains
Can breaks multi company environments, for example: https://travis-ci.org/github/OCA/l10n-brazil/jobs/722154732#L2375
Onchange of odoo/sale: https://github.com/odoo/odoo/blob/12.0/addons/sale/models/sale.py#L477-L490
Is called without company, than this can handle some unexpected behavior at multi company environment.
When the company of the sales order is different from the user who confirms it.
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 12.0-ocabot-merge-pr-730-by-dreispt-bump-patch, awaiting test results.
It looks like something changed on 12.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 12.0-ocabot-merge-pr-730-by-dreispt-bump-patch, awaiting test results.
@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 12.0-ocabot-merge-pr-730-by-dreispt-bump-patch.
After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
/ocbot merge patch
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 12.0-ocabot-merge-pr-730-by-dreispt-bump-patch, awaiting test results.
Congratulations, your PR was merged at e9e7a6ef69589e14161fd7f04818b4ec8aadf5ed. Thanks a lot for contributing to OCA. ❤️