Closed yankinmax closed 1 year ago
@gurneyalex can you pls help to get it merged?
NOTE: pre-commit is failing because of an error caused by pre-commit initialisation itself. So, it's not related to a module.
@yankinmax can you pls remove the odoo version from the commit msg?
/ocabot merge patch
This PR looks fantastic, let's merge it! Prepared branch 15.0-ocabot-merge-pr-209-by-simahawk-bump-patch, awaiting test results.
@simahawk your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-209-by-simahawk-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.
/ocabot merge patch
FTR pre-commit was failing due to a broken download likely. Reported here anyway https://github.com/OCA/oca-addons-repo-template/issues/186
What a great day to merge this nice PR. Let's do it! Prepared branch 15.0-ocabot-merge-pr-209-by-simahawk-bump-patch, awaiting test results.
@simahawk The merge process could not be finalized, because command git push origin 15.0-ocabot-merge-pr-209-by-simahawk-bump-patch:15.0
failed with output:
To https://github.com/OCA/sale-reporting
! [remote rejected] 15.0-ocabot-merge-pr-209-by-simahawk-bump-patch -> 15.0 (cannot lock ref 'refs/heads/15.0': is at 26ee33fc3604bee3aa7e1cc619311c81c20e6327 but expected ec9e42d725ea171ff27826a9c4242160b8fd59c7)
error: failed to push some refs to 'https://***@github.com/OCA/sale-reporting'
Congratulations, your PR was merged at 26ee33fc3604bee3aa7e1cc619311c81c20e6327. Thanks a lot for contributing to OCA. ❤️
@ivantodorovich I would say I've written
_compute_multicompany_reporting_currency_rate
as much as close tocompute_currency_rate
to avoid any issues: https://github.com/odoo/odoo/blob/b396584515b51035c14f100bf6b90fc9f7606284/addons/sale/models/sale_order.py#L308 But, the condition whenif not order.company_id
seems redundant to me, becausecompany_id
is required on db level https://github.com/odoo/odoo/blob/b396584515b51035c14f100bf6b90fc9f7606284/addons/sale/models/sale_order.py#L259 So, no need to write extra test here.