[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 Christopher Rogos
parent 2323ed112a
commit 8dce5c58af
21 changed files with 2360 additions and 57 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')