[REF] change the test try if it works

bzr revid: mva@openerp.com-20120213164633-6yayl4yic8659acq
This commit is contained in:
MVA
2012-02-13 17:46:33 +01:00
parent 1604698095
commit aa8d8e92bd
4 changed files with 1 additions and 48 deletions
@@ -48,7 +48,6 @@ class report_event_registration(osv.osv):
'speaker_id': fields.many2one('res.partner', 'Speaker', readonly=True),
'company_id': fields.many2one('res.company', 'Company', readonly=True),
'total': fields.float('Total'),
'section_id': fields.related('event_id', 'section_id', type='many2one', relation='crm.case.section', string='Sale Team', store=True, readonly=True),
}
_order = 'event_date desc'
def init(self, cr):
@@ -93,9 +92,8 @@ class report_event_registration(osv.osv):
registration_state,
r.nb_register,
event_type, e.id, e.date_begin, e.main_speaker_id,
e.register_max,event_id, e.user_id,e.company_id,e.section_id,
e.register_max,event_id, e.user_id,e.company_id,
e.user_id,
e.section_id,
event_state,
e.company_id,
e.main_speaker_id,
@@ -25,7 +25,6 @@
<field name="user_id_registration" invisible="1"/>
<field name="register_max" invisible="context.get('max_reg_event_visible', True)"/>
<field name="company_id" invisible="1"/>
<field name="section_id" invisible="1"/>
<field name="total" invisible="context.get('total_invisible', True)" sum="Total"/>
</tree>
</field>
@@ -100,7 +99,6 @@
<filter string="Responsible" name="user_id" icon="terp-personal" context="{'group_by': 'user_id'}"/>
<filter string="Speaker" name="speaker" icon="terp-personal+" context="{'group_by': 'speaker_id'}"/>
<filter string="Participant" icon="terp-personal" context="{'group_by':'name_registration'}" help="Registration contact"/>
<filter string="Sale Team" icon="terp-personal" context="{'group_by': 'section_id'}"/>
<separator orientation="vertical"/>
<filter string="Event" name="event" icon="terp-crm" context="{'group_by':'event_id', 'max_reg_event_visible':0}"/>
-1
View File
@@ -10,7 +10,6 @@
-
!record {model: event.event, id: event_2}:
product_id: event_product_2
section_id: crm.section_sales_department
name: 'Conference on ERP Buisness'
-
I call onchange event from event registration wizard.
-42
View File
@@ -8,45 +8,3 @@
type: service
event_ok: True
event_type_id: 1
-
create a sale order
-
!record {model: sale.order, id: order}:
partner_id: base.res_partner_agrolait
note: Invoice after delivery
payment_term: account.account_payment_term
-
create sale order line from the sale order with the product
-
!record {model: event.event,id: event}:
name: test_event
type: 1
date_end: '2012-01-01 19:05:15'
date_begin: '2012-01-01 18:05:15'
-
!record {model: sale.order.line, id: line}:
product_id: event_product
price_unit: 190.50
product_uom_qty: 8
order_id: order
name: sale order line
event: event
-
confirm the sale order
-
!workflow {model: sale.order, ref: order, action: order_confirm}
-
check if sale order is confirmed
-
!assert {model: sale.order, id: order}:
- state == 'confirmed'
-
check if a registration is created
-
!python {model: event.registration}: |
order_id = ref('order')
order = self.pool.get('sale.order').browse(cr, uid,order_id)
registration_ids = self.search(cr,uid,[('origin','=',order.name)])
if registration_ids == []:
raise osv.except_osv(_('Error!'),_("The registration is not created"))