-
-
Notifications
You must be signed in to change notification settings - Fork 437
[14.0][FIX] change membership product on invoice line #1299
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
base: 14.0
Are you sure you want to change the base?
[14.0][FIX] change membership product on invoice line #1299
Conversation
|
this seems to be present on version 18.0 as well... I'll propose the patch against Odoo... |
but membership module as been refactored to partnership with different business value by this PR odoo#197228 that target version 18.3 so will be removed in future 19.0 |
488fa65 to
61bfba3
Compare
Impacted versions: - 14.0 - 15.0 - 16.0 - 17.0 - 18.0 Steps To reproduce: * create 2 membership product * create an invoice for a partner with a membership line for the first product * you will see membership line exist while invoice is draft * change product on the invoice to use the other member ship product Current behavior: - membership line is not updated: membership product / dates / member_price are those from the initial definition Expected behavior: - membership line updated to reflected changed on the draft invoice before it becomes confirmed
61bfba3 to
ef660df
Compare
|
Please find the upstream PR odoo#211584 |
|
I've double checked that this fix don't break unittest of |
|
@petrus-v I tried testing today on runboat but I suppose I miss something in the workflow. Here are the steps I took:
So I don't see the fix working. |
I've seen your tests, I've retry this code on my laptop on a fresh database without issue, I'm wondering if it's related to runboat config on this repository - it's special case comparing to other repository that provide modules- I think I''ve never tested PR here... So it seems we can't tests on runboat here. as far we are almost ready there OCA/oca-custom#59 I'll:
So we could get an test environment with OCA context modules! |
Add contribute tools in order to develop and release docker images for https://odoo-community.org using Acsonne toolsets likes hatch-odoo, odoo-bedrock... This helps to quickly create a locale environement close to what is installed on our production instance. Use following unreleased code: * odoo14-addon-membership-delegated-partner-line from OCA/vertical-association/pull/151 * odoo from OCA/OCB/pull/1299 Co-authored-by: Stéphane Bidoul <[email protected]> Co-authored-by: Holger Brunn <[email protected]>
|
@vdewulf this fix has been deployed to https://test.odoo-community.org, could you retry there? |
|
@vdewulf do you have time to gives your review on this one, this one is in production since middle of June! |
|
/ocabot merge patch |
|
This PR looks fantastic, let's merge it! |
|
@thomaspaulb it's not clear to me why bot is still merging for a month 😿 ? |
|
@petrus-v I think in OCB we're not supposed to use the bot but just merge directly @pedrobaeza Just a check before I break something: can I just press merge? Or does Pierre need to rebase first? |
pedrobaeza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't be merged, as this is changing things a way that a module using this hook won't be compatible with both vanilla Odoo and OCB. Anyway, you are already migrating OCA instance to 18, so just keep your patch locally, and push this hook in vanilla Odoo 18.
Description of the issue/feature this PR addresses:
While changing information on invoice line, the related membership line is not updated.
This is done as part of OCA Internal Working Group: task 871862
Current behavior before PR:
(So, this also happen while duplicating an invoice from previous year changing the membership product.)
Desired behavior after PR is merged:
The member ship line is updated with fresh informations changed on the invoice: