A squashed merge is required as the conversion of the apiculture branch from bzr to git was not correctly done. The git history contains irrelevant blobs and commits. This branch brings a lot of changes and fixes, too many to list exhaustively. - New orm api, objects are now used instead of ids - Environements to encapsulates cr uid context while maintaining backward compatibility - Field compute attribute is a new object oriented way to define function fields - Shared browse record cache - New onchange protocol - Optional copy flag on fields - Documentation update - Dead code cleanup - Lots of fixes
25 lines
709 B
YAML
25 lines
709 B
YAML
-
|
|
I create event registation record to call event onchange and partner onchange.
|
|
-
|
|
!record {model: event.registration, id: reg_0_1}:
|
|
event_id: event_0
|
|
partner_id: base.res_partner_1
|
|
name: 'Ticket for Concert'
|
|
-
|
|
I create event record to call product onchange and team onchange.
|
|
-
|
|
!record {model: event.event, id: event_2}:
|
|
product_id: event_product_2
|
|
name: 'Conference on ERP Buisness'
|
|
-
|
|
I confirm event from wizard.
|
|
-
|
|
!python {model: event.confirm, id: False}: |
|
|
wizard = self.with_context(event_ids=[ref("event_2")]).create({})
|
|
wizard.confirm()
|
|
-
|
|
I call close registration process.
|
|
-
|
|
!python {model: event.registration, id: reg_0_2}: |
|
|
self.button_reg_close()
|