Skip to content

Conversation

@wouitmil
Copy link

No description provided.

chienandalu and others added 27 commits September 11, 2025 14:16
Currently translated at 3.0% (1 of 33 strings)

Translation: survey-15.0/survey-15.0-survey_sale_generation
Translate-URL: https://translation.odoo-community.org/projects/survey-15-0/survey-15-0-survey_sale_generation/it/
Currently translated at 100.0% (33 of 33 strings)

Translation: survey-15.0/survey-15.0-survey_sale_generation
Translate-URL: https://translation.odoo-community.org/projects/survey-15-0/survey-15-0-survey_sale_generation/es/
- We can configure a custom mail template for the quotation.
- Now it's possible to set a linked answer that acts as multiplier.

TT40983
Allow to set multiple products so one question can generate several
product lines
Allow to choose a quotation template
Adds the dependency to survey_result_mail
Allow to fill sale.order links from the survey answers

TT47576
Now we can use a single choice question to force the template into the
generated sale order.

TT51297
Currently translated at 100.0% (47 of 47 strings)

Translation: survey-17.0/survey-17.0-survey_sale_generation
Translate-URL: https://translation.odoo-community.org/projects/survey-17-0/survey-17-0-survey_sale_generation/it/
…ompany_id

When generating a quotation from a survey response, the sale order was being
assigned to the company of the `create_uid`. This is incorrect in multi-company
contexts, especially when the user has access to multiple companies and their
default company (`company_id`) is not the active one.

Instead, this commit uses `self.env.company` to retrieve the currently active
company from the context, which correctly reflects the company in which the
user is operating when completing the survey.

This change ensures that the sale order is created in the company active in the
user's session, avoiding multi-company integrity errors (e.g. trying to create
a record in a company other than the one currently active).

TT57057
@wouitmil wouitmil changed the title 18.0 mig survey sale generation [18.0][MIG] survey sale generation Sep 11, 2025
@wouitmil wouitmil changed the title [18.0][MIG] survey sale generation [18.0][MIG] survey sale generation: Migration to 18.0 Sep 11, 2025
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.

7 participants