Skip to content

Conversation

@apami0111
Copy link

  • Migrated from 15.0 to 18.0.
  • Replaced deprecated attrs with new invisible expression in crm_won_reason/views/crm_views.xml:
  • Updated test class inheritance from "TransactionCase" to "BaseCommon".

@apami0111 apami0111 force-pushed the 18.0-mig-crm_won_reason branch 3 times, most recently from 3557b0d to f16ea9c Compare June 28, 2025 16:26
Copy link
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

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

Two "Won" buttons are being displayed.
Screenshot from 2025-07-30 15-55-22

@apami0111
Copy link
Author

@BhaveshHeliconia Thank you for the feedback. I have reviewed the case and confirm that the crm_won_reason module by itself does not present the issue of two "Won" buttons. This behavior only occurs when it is installed together with the crm_won_restrict_per_stage module, as both apply an invisible attribute to the same button, causing the view to be triggered and resulting in two instances of the button being displayed.
In an environment with only crm_won_reason, both functionality and interface work as expected.
Captura desde 2025-08-07 21-44-26

@BhaveshHeliconia
Copy link
Contributor

@apami0111 : The functionality works perfectly, but having the same "Won" label for both buttons can be confusing.

Copy link
Contributor

@celm1990 celm1990 left a comment

Choose a reason for hiding this comment

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

LGTM

@pedrobaeza could you review this?

@pedrobaeza
Copy link
Member

/ocabot migration crm_won_reason

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Oct 24, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 24, 2025
26 tasks
"website": "https://github.com/OCA/crm",
"license": "AGPL-3",
"depends": [
"base",
Copy link

Choose a reason for hiding this comment

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

depends 'base' is not necessary

Copy link
Author

Choose a reason for hiding this comment

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

Thank you very much for your observation! @jaenbox
I've already made the change.

@apami0111 apami0111 force-pushed the 18.0-mig-crm_won_reason branch from f16ea9c to 69c5c63 Compare November 7, 2025 02:23
Copy link

@jaenbox jaenbox left a comment

Choose a reason for hiding this comment

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

LGTM

@celm1990
Copy link
Contributor

ping @pedrobaeza

@pedrobaeza
Copy link
Member

@BhaveshHeliconia has requested changes

@apami0111
Copy link
Author

@pedrobaeza Thanks for the note. The issue mentioned in

@BhaveshHeliconia has requested changes
is already resolved. As I explained here:
#658 (comment)

the duplicated “Won” button was not caused by crm_won_reason, but by its interaction with crm_won_restrict_per_stage, since both apply an invisible attribute to the same button.

With only crm_won_reason installed, everything works correctly.

@pedrobaeza
Copy link
Member

Yeah, but he should confirm it.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants