Skip to content

[ADD] Server Action: Create Record Set Default Value#35

Open
samirGuesmi wants to merge 1 commit intoOCA:18.0from
acsone:ServerActionCreateDefaultValue-sgu
Open

[ADD] Server Action: Create Record Set Default Value#35
samirGuesmi wants to merge 1 commit intoOCA:18.0from
acsone:ServerActionCreateDefaultValue-sgu

Conversation

@samirGuesmi
Copy link
Member

In standard Odoo, when creating a new record through Server Actions, often relies on name_create(self.value), which only fills in the name field. This is limiting in scenarios where multiple fields need to be pre-populated or dynamically computed.

@samirGuesmi
Copy link
Member Author

@sbejaoui

@samirGuesmi samirGuesmi force-pushed the ServerActionCreateDefaultValue-sgu branch from 9d2a3c0 to 460e02c Compare August 19, 2025 14:47
@samirGuesmi samirGuesmi force-pushed the ServerActionCreateDefaultValue-sgu branch from 460e02c to f570f4d Compare August 19, 2025 15:10
Copy link
Member

@yvaucher yvaucher left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

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

This repository is mainly used for automation_oca module and the related modules of it. Shouldn't this module go to server-tools or server-ux?

It has no direct relation with automation_oca module.

@yvaucher
Copy link
Member

yvaucher commented Sep 15, 2025

@etobella server action are automated actions I asked @samirGuesmi to target this repo as it is closer in mind than generic other repo like server-tools.

To me this extends server actions and automation_oca enhance server actions. Is there really a better home for this module?

@etobella
Copy link
Member

Well, automation_oca generates a way to automate things (not only server actions, emails, activities....). By themselves, server actions do not automate anything, they are just snippets of code that can be launched by an automation or a user.

@yvaucher
Copy link
Member

In our context we created this module for automation_oca, thus it felt the right place to go, server-tools being a mixup of things I prefer to target specific repositories.

If you refuse it we will move it to server-tools, please give us your choice so we can move forward with this.

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale label Jan 18, 2026
Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

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

Although it is not clear which would be the right place to be, the code is Ok.

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.

4 participants