Код: Выделить всё
class CrmLead(models.Model):
_inherit = 'crm.lead'
quote_ids = fields.One2many('insurance.quotes', 'crm_lead_id', string='Quotes')
Код: Выделить всё
class InsuranceQuotes(models.Model):
_name = 'insurance.quotes'
_description = 'Insurance Quotes'
crm_lead_id = fields.Many2one('crm.lead', string='CRM Lead')
broker_id = fields.Many2one('res.partner', string='Broker', domain="[('is_broker', '=', True)]", context={'default_is_broker': True})
Код: Выделить всё
crm.lead.kanban.inherit.custom
crm.lead
[*]
Код: Выделить всё
UncaughtPromiseError > OwlError
Uncaught Promise > Invalid loop expression: "undefined" is not iterable
Подробнее здесь: https://stackoverflow.com/questions/790 ... anban-card