[WIP] start writing some simple tests for portal_crm
bzr revid: abo@openerp.com-20120928174109-q8z9w71oj27n0s56
This commit is contained in:
@@ -27,11 +27,14 @@
|
||||
'complexity': 'easy',
|
||||
'description': """
|
||||
This module adds a contact page (with a contact form creating a lead when submitted) to your portal if crm and portal are installed.
|
||||
====================================================================================================================================
|
||||
====================================================================================================================================
|
||||
""",
|
||||
'author': 'OpenERP SA',
|
||||
'depends': ['crm','portal'],
|
||||
'data': ['wizard/contact_view.xml'],
|
||||
'test': [
|
||||
'test/submit_contact_form.yml',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': True,
|
||||
'category': 'Hidden',
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
-
|
||||
As a portal user, I fill in the contact form and submit it
|
||||
-
|
||||
!python {model: portal_crm.crm_contact_us}: |
|
||||
values = {
|
||||
'name': 'Need information about your products',
|
||||
'partner_name': 'Mr. John Doe',
|
||||
'email_from': 'mister@john.doe',
|
||||
'phone': '+32 444 11 22 33',
|
||||
'description': 'Dear Sir or Madam, could you get back to me asap ? Regards.'
|
||||
}
|
||||
self.create(cr, ref("portal.demo_user0"), values, context=context)
|
||||
Reference in New Issue
Block a user