mirror of
https://github.com/bringout/oca-crm.git
synced 2026-04-24 04:22:05 +02:00
Add oca-crm submodule with 26 CRM modules
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0e924979be
commit
0608132c9e
1296 changed files with 142509 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