[ADD] Added test case to check resource duplicate
bzr revid: jam@tinyerp.com-20111129045432-3asz2skngzh8mh3t
This commit is contained in:
parent
a3e243fee4
commit
6f9262a9f6
|
@ -47,7 +47,8 @@ It also manages the leaves of every resource.
|
|||
],
|
||||
'test': [
|
||||
'test/process/test_resource.yml',
|
||||
'test/ui/on_chnage_resource.yml',
|
||||
'test/ui/on_change_resource.yml',
|
||||
'test/ui/duplicate_resource.yml',
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
-
|
||||
I duplicate the resource "Demo resource"
|
||||
-
|
||||
!python {model: resource.resource}: |
|
||||
copied_id = self.copy(cr, uid, ref("resource_resource_demorsource"))
|
||||
assert copied_id, "Unablr to Duplicate Reousrce"
|
Loading…
Reference in New Issue