Skip to content

[19.0][MIG] srm: Migration to 19.0#732

Open
vvrossem wants to merge 5 commits intoOCA:19.0from
camptocamp:19.0-mig-srm
Open

[19.0][MIG] srm: Migration to 19.0#732
vvrossem wants to merge 5 commits intoOCA:19.0from
camptocamp:19.0-mig-srm

Conversation

@vvrossem
Copy link
Copy Markdown

@vvrossem vvrossem commented Mar 6, 2026

No description provided.

@vvrossem vvrossem marked this pull request as draft March 6, 2026 14:38
@vvrossem vvrossem marked this pull request as ready for review March 11, 2026 09:46
Copy link
Copy Markdown
Contributor

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

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

Can we take the opportunity to add unit tests? 🙏🏻

)
action.setdefault("context", {})
action["context"]["default_request_type"] = request_type
return action
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

returning a Domain instance here works?
Is it converted to a list automatically in the JSON response?

honest question.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent, didn't know that. Thanks!

("exist", "Link to an existing vendor"),
("nothing", "Do not link to a vendor"),
],
selection="_get_selection_action",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason to switch to a separated hook method instead of the inline selection options?

The inline selection options are preferred usually

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For the translations to apply

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Translations work just fine with regular inline list in selection fields

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yep I remember that. I've returned back the selection 😃

@yankinmax
Copy link
Copy Markdown

Can we take the opportunity to add unit tests? 🙏🏻

I've taken an opportunity and added some tests 😄

@yankinmax
Copy link
Copy Markdown

Hello @simahawk
This PR is a migration of the one opened here (which is also updated):

I'm ready to update both to speed up process.
Thanks in advance 😃

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Copy Markdown

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

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

I got this error on SRM > Purchases > My Pipeline

Image

@yankinmax yankinmax force-pushed the 19.0-mig-srm branch 2 times, most recently from 856c8ac to 5d61f53 Compare March 12, 2026 08:08
@yankinmax
Copy link
Copy Markdown

I got this error on SRM > Purchases > My Pipeline

fixed now, thanks for the review

Copy link
Copy Markdown

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

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

Code review and tested on runboat, LGTM!

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.

6 participants