Skip to content

[16.0] - sale_triple_discount - [BUG] preprocess cache invalidation seems to make updates impossible#3324

Closed
IJOL wants to merge 78 commits intoOCA:16.0from
BITVAX:16.0-sale_triple_discount-fixes-3323
Closed

[16.0] - sale_triple_discount - [BUG] preprocess cache invalidation seems to make updates impossible#3324
IJOL wants to merge 78 commits intoOCA:16.0from
BITVAX:16.0-sale_triple_discount-fixes-3323

Conversation

@IJOL
Copy link
Copy Markdown

@IJOL IJOL commented Sep 25, 2024

I know is really naive but until now it solves the issue AFAIK

@IJOL
Copy link
Copy Markdown
Author

IJOL commented Sep 27, 2024

@pedrobaeza Can you help get some visibility and reach for this one?, is really giving me a hard time, the 16.0 branch doesnt works at all and I need some triage and confirmation, is about to get me mad!!

@IJOL IJOL force-pushed the 16.0-sale_triple_discount-fixes-3323 branch from d1f8fb0 to 381ab47 Compare September 27, 2024 16:15
@pedrobaeza pedrobaeza added this to the 16.0 milestone Sep 27, 2024
@pedrobaeza
Copy link
Copy Markdown
Member

You can ping the authors/contributors/maintainers of the module.

@francesco-ooops
Copy link
Copy Markdown
Contributor

@IJOL I think the same issue is being addressed in #3329

Alexis de Lattre and others added 21 commits October 18, 2024 18:21
…the same SO as the rentals = the start date of the rentals, because we suppose that these products are "accessories" of the rental. Re-organise the order of some lines of code to make it more "logic".
Add POT file Add full FR translation for sale_start_end_dates Add partial FR translation for sale_rental

Add pt_BR translation, contributed by Caio Barros.
…g because it means that, if you had sale_rental installed, you are missing the link betweek purchase order lines and invoice lines (for purchase orders created from pickings)
…ew of sale order line, and instructions on how to do it Add demo data to automatically add admin and demo to group sale.group_mrp_properties, to have access to form view of sale order lines.
…a link to the screencast in the module description
Update POT file and FR translation

Fix translated string in code

Slovene translations added

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

remove obsolete .pot files [ci skip]

fix invalid pt_BR.po

Update sale_rental.pot

Translated using Weblate (Nederlands (nl_NL))

Currently translated at 100,0% (99 of 99 strings)

Translation: sale-workflow-10.0/sale-workflow-10.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-10-0/sale-workflow-10-0-sale_rental/nl_NL/

Update sale_rental.pot

Update translation files

Updated by Actualizar ficheiros PO com o novo POT (msgmerge) hook in Weblate.

Translated using Weblate (German)

Currently translated at 28.3% (28 of 99 strings)

Translation: sale-workflow-10.0/sale-workflow-10.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-10-0/sale-workflow-10-0-sale_rental/de/

[REM] Translation file for error
Add option to copy image from product to rental service
default_code should not be a required field in rental service wizard
Add help message on rental_qty field
oca-ci and others added 26 commits October 18, 2024 18:21
Currently translated at 40.7% (42 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/fr_FR/
Currently translated at 63.1% (65 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/fr_FR/
Currently translated at 49.5% (51 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/fr/
Currently translated at 60.1% (62 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/it/
Currently translated at 60.1% (62 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/it/
Currently translated at 60.1% (62 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/it/
Currently translated at 60.1% (62 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/it/
Currently translated at 60.1% (62 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/it/
Currently translated at 60.1% (62 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/it/
Currently translated at 100.0% (103 of 103 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/
Currently translated at 100.0% (104 of 104 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/
Currently translated at 55.7% (58 of 104 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/it/
Currently translated at 100.0% (104 of 104 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/es/
Currently translated at 100.0% (104 of 104 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_rental
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_rental/es/
…updated records in sale.order, with this change seems to solve it and the extension seems working, needs review
@IJOL IJOL force-pushed the 16.0-sale_triple_discount-fixes-3323 branch from 311f494 to 545c402 Compare November 27, 2024 11:52
Copy link
Copy Markdown

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for flagging this cache invalidation issue, @IJOL — it was a real pain point.

However, this PR has a couple of problems that prevent it from being mergeable:

  1. The diff contains no sale_triple_discount changes. The branch only includes the addition of an unrelated sale_rental module (48k+ lines). The actual sale_triple_discount fix seems to have been lost — possibly after a rebase or force-push gone wrong.

  2. The underlying issue has already been fixed. PR #3329 was merged on 2024-10-16 and addresses the same cache invalidation problem with a more comprehensive approach (context manager instead of invalidate_cache).

Given that #3329 already landed, I think this PR can simply be closed. @IJOL could you confirm the issue is resolved on your end with the merged fix?

@IJOL IJOL closed this Mar 3, 2026
@IJOL
Copy link
Copy Markdown
Author

IJOL commented Mar 3, 2026

Totally forgot this one, thanks , the problem has been long gone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.