mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] added missing column partner_id to test
This commit is contained in:
@@ -9,14 +9,18 @@ class TestContractSignatureTracking(common.SavepointCase):
|
|||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
super(TestContractSignatureTracking, cls).setUpClass()
|
super(TestContractSignatureTracking, cls).setUpClass()
|
||||||
# Simple 1x1 transparent base64 encoded GIF
|
# Simple 1x1 transparent base64 encoded GIF
|
||||||
cls.image = 'R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='
|
cls.image = "R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
||||||
|
|
||||||
def test_contract_signature_tracking(self):
|
def test_contract_signature_tracking(self):
|
||||||
self.contract = self.env['contract.contract'].create({
|
partner = self.env["res.partner"].create({"name": "test partner"})
|
||||||
'name': 'Test Contract',
|
self.contract = self.env["contract.contract"].create(
|
||||||
'customer_signature': self.image,
|
{
|
||||||
})
|
"name": "Test Contract",
|
||||||
message = self.env['mail.message'].search([
|
"customer_signature": self.image,
|
||||||
('res_id', '=', self.contract.id)
|
"partner_id": partner.id,
|
||||||
], order='id desc', limit=1)
|
}
|
||||||
self.assertIn('Signature has been created.', message.body)
|
)
|
||||||
|
message = self.env["mail.message"].search(
|
||||||
|
[("res_id", "=", self.contract.id)], order="id desc", limit=1
|
||||||
|
)
|
||||||
|
self.assertIn("Signature has been created.", message.body)
|
||||||
|
|||||||
Reference in New Issue
Block a user