[IMP][10.0] contract: Add report + send by mail (#86)

* [IMP][9.0] contract: Add report + send by mail

* Update translation and rename contract report

* Changes requested and translation updated
This commit is contained in:
cubells
2017-08-16 20:07:41 +02:00
committed by Dave Lasley
parent 985daadc5f
commit cb5085ded9
9 changed files with 366 additions and 4 deletions

View File

@@ -155,3 +155,7 @@ class TestContract(TransactionCase):
}
del self.template_vals['name']
self.assertDictEqual(res, self.template_vals)
def test_send_mail_contract(self):
result = self.contract.action_contract_send()
self.assertEqual(result['res_model'], 'mail.compose.message')