[18.0][MIG] crm_won_reason: Migration to 18.0
- Migrated from 15.0 to 18.0.
- Replaced deprecated
attrswith newinvisibleexpression incrm_won_reason/views/crm_views.xml: - Updated test class inheritance from "TransactionCase" to "BaseCommon".
@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.
@apami0111 : The functionality works perfectly, but having the same "Won" label for both buttons can be confusing.
/ocabot migration crm_won_reason
ping @pedrobaeza
@BhaveshHeliconia has requested changes
@pedrobaeza Thanks for the note. The issue mentioned in
@BhaveshHeliconia has requested changes is already resolved. As I explained here: https://github.com/OCA/crm/pull/658#issuecomment-3177391757
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.
Yeah, but he should confirm it.