mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-21 23:32:09 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import test_crm_lead
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2023 Moduon Team S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class CRMLead(TransactionCase):
|
||||
def test_crm_lead_date_partner_assign(self):
|
||||
"""Test that `date_partner_assign` is set when assigning a partner."""
|
||||
lead = self.env["crm.lead"].create(
|
||||
{
|
||||
"name": "Lead 1",
|
||||
"partner_contact_assigned_id": self.env["res.partner"]
|
||||
.create(
|
||||
{
|
||||
"name": "Partner 1",
|
||||
}
|
||||
)
|
||||
.id,
|
||||
}
|
||||
)
|
||||
self.assertTrue(lead.date_partner_assign)
|
||||
Loading…
Add table
Add a link
Reference in a new issue