Skip to content

[FIX][9.0] base_multi_image: Adhere to image delete bypass#628

Merged
pedrobaeza merged 1 commit intoOCA:9.0from
LasLabs:bugfix/9.0/base_multi_image-unlink_bypass
Nov 30, 2016
Merged

[FIX][9.0] base_multi_image: Adhere to image delete bypass#628
pedrobaeza merged 1 commit intoOCA:9.0from
LasLabs:bugfix/9.0/base_multi_image-unlink_bypass

Conversation

@lasley
Copy link
Copy Markdown
Contributor

@lasley lasley commented Nov 30, 2016

At long last I have figured out the bug plaguing OCA/product-attribute#199, and it is actually in the base module. The images were being unlinked during the variant addition due to the call to super in the unlink method.

It seems there was an intent for a context override, but it never made it into this module. It has now!

  • Add catch in owner unlink to allow for image delete bypass via context

* Add catch in owner unlink to allow for image delete bypass via context
@lasley lasley added this to the 9.0 milestone Nov 30, 2016
@lasley lasley changed the title [FIX] base_multi_image: Adhere to image delete bypass [FIX][9.0] base_multi_image: Adhere to image delete bypass Nov 30, 2016
Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

I don't know why this was removed in 9.0 migration, as in 8.0 it's present in https://github.com/OCA/server-tools/blob/8.0/base_multi_image/models/owner.py#L96...

Anyway, let's fast-track this to have it working again.

@pedrobaeza pedrobaeza merged commit c9d97b9 into OCA:9.0 Nov 30, 2016
@sebalix
Copy link
Copy Markdown
Contributor

sebalix commented Nov 30, 2016

Thank you @lasley !

@lasley lasley deleted the bugfix/9.0/base_multi_image-unlink_bypass branch November 30, 2016 16:25
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (8.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants