[IMP] improve crm_partner_assing demo file
[odoo/odoo.git] / addons / crm / test / segmentation.yml
1
2   In order to test segmentation process which create specific partner categories criteria,
3
4   I start the process.
5 -
6   !python {model: crm.segmentation}: |
7     self.process_start(cr, uid, [ref("crm_segmentation0")],context)
8     #Todo: Need to check after segmentation started
9
10 -
11   I create rule segmentation line record for partner .
12 -
13   !python {model: crm.segmentation.line}: |
14     id = self.create(cr, uid, {'name': "OpenERP partners",'expr_value': 25})
15     self.test(cr, uid, [id],partner_id=0)
16     #Todo: Need to test segmantation line record