[IMP] removed categories in tags , fix

bzr revid: fp@openerp.com-20120814132952-1t9pocyaxlsoxwt3
This commit is contained in:
Fabien Pinckaers 2012-08-14 15:29:52 +02:00
parent ba5314947b
commit cf59ee6f43
1 changed files with 2 additions and 9 deletions

View File

@ -2,22 +2,15 @@
Testing for hierarchical search in M2M
-
!python {model: res.partner }: |
ids = self.search(cr, uid, [('category_id', 'child_of','supplier')])
ids = self.search(cr, uid, [('category_id', 'child_of',ref('res_partner_category_1'))])
assert len(ids) >= 1, ids
-
Test hierarchical search in M2M with child ID1
-
!python {model: res.partner }: |
ids = self.search(cr, uid, [('category_id', 'child_of','Customer')])
ids = self.search(cr, uid, [('category_id', 'child_of',ref('res_partner_category_0'))])
assert len(ids) >= 1, ids
-
Test hierarchical search in M2M with child ID2
-
!python {model: res.partner }: |
ids = self.search(cr, uid, [('category_id', 'child_of','Manufacturer')])
assert len(ids) == 2, ids
-
"1.0 Setup test partner categories: parent root"
-