Skip to content

[16.0][Add] survey_prefilled_answer#217

Open
kobros-tech wants to merge 1 commit intoOCA:16.0from
kobros-tech:16.0-add-survey_prefilled_answers
Open

[16.0][Add] survey_prefilled_answer#217
kobros-tech wants to merge 1 commit intoOCA:16.0from
kobros-tech:16.0-add-survey_prefilled_answers

Conversation

@kobros-tech
Copy link
Copy Markdown

@kobros-tech kobros-tech changed the title [16.0][Add] survey_prefilled_answers [16.0][Add] survey_prefilled_answer Mar 30, 2026
@kobros-tech kobros-tech force-pushed the 16.0-add-survey_prefilled_answers branch from 680a046 to bb5fd3a Compare March 30, 2026 12:34
@pedrobaeza pedrobaeza added this to the 16.0 milestone Mar 30, 2026
@pedrobaeza
Copy link
Copy Markdown
Member

Please follow commit message guidelines, and check pre-commit.

https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message

@kobros-tech
Copy link
Copy Markdown
Author

Please follow commit message guidelines, and check pre-commit.

https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message

pre-commit is doing wrong in one machine, I deleted it and installed many times but is still making mess

I am fixing the issu from another machine, if you can help me to learn how to install it and use correctly serving all repos without issues?

@pedrobaeza
Copy link
Copy Markdown
Member

Oh, wait, this is due to an outdated template. You can open another PR doing the copier update. Do you know how to do it?

@kobros-tech
Copy link
Copy Markdown
Author

Oh, wait, this is due to an outdated template. You can open another PR doing the copier update. Do you know how to do it?

I am not used to precommit templates, but I like to know

@pedrobaeza
Copy link
Copy Markdown
Member

OK, doing the update. Check the tool:

https://copier.readthedocs.io/en/stable/

@pedrobaeza
Copy link
Copy Markdown
Member

#218

@pedrobaeza
Copy link
Copy Markdown
Member

You can rebase now.

@kobros-tech kobros-tech force-pushed the 16.0-add-survey_prefilled_answers branch from bb5fd3a to bf6e176 Compare March 30, 2026 14:22
@kobros-tech
Copy link
Copy Markdown
Author

@pedrobaeza

pre-commit fixed

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.

The commit message is still incorrect. Remove [16.0] and the tag should be uppercase.

_inherit = "survey.question"

suggested_prefilled_answer = fields.Char()
suggested_prefilled_answer_multi = fields.Text()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can't you put only one field with different widget according the type of the answer?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I wil try

@kobros-tech kobros-tech force-pushed the 16.0-add-survey_prefilled_answers branch from bf6e176 to 827b1f9 Compare March 30, 2026 14:42
@kobros-tech kobros-tech force-pushed the 16.0-add-survey_prefilled_answers branch from 827b1f9 to 99ab94e Compare March 30, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants