Skip to content

18.0 t 42285 lef approach b #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

jjscarafia
Copy link
Member

No description provided.

@roboadhoc
Copy link

@lef-adhoc lef-adhoc force-pushed the 18.0-t-42285-lef-approach-b branch 4 times, most recently from cef4ed6 to b5aedec Compare May 9, 2025 19:30
group_id = fields.Many2one("academic.group")

def _create_customer(self):
res = super()._create_customer()
Copy link
Member Author

Choose a reason for hiding this comment

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

un detaller, pero si podés probá hacerlo así:

def _create_customer(self): res = super(CrmLead, self.with_context(default_partner_type="student")._create_customer()
Es basicamente para evitar hacer create y luego write.

si querés mantener el context "from_lead" mandalo, no estoy seguro que otro caso hay.

from odoo import models


class Opportunity2Quotation(models.TransientModel):
Copy link
Member Author

Choose a reason for hiding this comment

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

sumado a lo de arriba, si sacamos el if todo esto no es necesario...
hay otros casos donde se cree? tal vez arriba solo lo creamos tipo student si tengo group_id?

igual es un detalle, si no dejalo así..

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahí lo dejé que se cree tipo student si tengo group_id y borre el archivo de crm_opportunity_to_quotation

@lef-adhoc lef-adhoc force-pushed the 18.0-t-42285-lef-approach-b branch from b5aedec to 2693d30 Compare May 12, 2025 14:46
@lef-adhoc lef-adhoc force-pushed the 18.0-t-42285-lef-approach-b branch from 2693d30 to 155ce26 Compare May 12, 2025 18:46
@lef-adhoc lef-adhoc closed this May 22, 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.

3 participants