-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
cef4ed6
to
b5aedec
Compare
academic/models/crm_lead.py
Outdated
group_id = fields.Many2one("academic.group") | ||
|
||
def _create_customer(self): | ||
res = super()._create_customer() |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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í..
There was a problem hiding this comment.
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
b5aedec
to
2693d30
Compare
2693d30
to
155ce26
Compare
…lude section and subject fields
No description provided.