mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
fix test
This commit is contained in:
parent
fc55bca7aa
commit
ebb4da70d5
@ -2,7 +2,8 @@
|
||||
<openerp>
|
||||
<data noupdate="1">
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field eval="[(4, ref('base.group_sale_salesman')),(4, ref('base.group_document_user'))]" name="groups_id"/>
|
||||
<field eval="[(4, ref('base.group_document_user'))]"
|
||||
name="groups_id"/>
|
||||
</record>
|
||||
<record id="demo_category1" model="document.page">
|
||||
<field name="name">OpenERP Features</field>
|
||||
|
@ -30,13 +30,16 @@
|
||||
|
||||
Wiki text can easily be edited
|
||||
'
|
||||
|
||||
-
|
||||
I check the page history for the current page by clicking on "Page History".After that find difference between history.
|
||||
-
|
||||
!python {model: wizard.document.page.history.show_diff}: |
|
||||
hist_obj = model.pool.get('document.page.history')
|
||||
ids = hist_obj.search(cr, uid, [('page_id', '=', ref("test_page0"))])
|
||||
model.get_diff(cr, uid, {'active_ids': ids[:] })
|
||||
!python {model: wizard.document.page.history.show_diff, id: False}: |
|
||||
hist_obj = self.env['document.page.history']
|
||||
ids = hist_obj.search([('page_id', '=', ref("test_page0"))])
|
||||
self.with_context(active_ids=[i.id for i in ids]).get_diff()
|
||||
|
||||
|
||||
-
|
||||
I click the "create menu" link and i fill the form.
|
||||
-
|
||||
@ -46,9 +49,7 @@
|
||||
-
|
||||
I create a Menu by clicking on "create menu"
|
||||
-
|
||||
!python {model: document.page.create.menu}: |
|
||||
ids = [ref("test_create_menu0")]
|
||||
context['active_id'] = ref('test_page0')
|
||||
self.document_page_menu_create(cr, uid, ids, context)
|
||||
|
||||
!python {model: document.page.create.menu, id: False}: |
|
||||
menu = self.search([('id', '=', ref("test_create_menu0"))])
|
||||
menu.with_context(active_id=[ref('test_page0')]).document_page_menu_create()
|
||||
|
||||
|
@ -49,12 +49,6 @@ class document_page_create_menu(models.TransientModel):
|
||||
|
||||
@api.multi
|
||||
def document_page_menu_create(self):
|
||||
# events = self.env['event.event'].browse(self._context.get('event_ids', []))
|
||||
# events.do_confirm()
|
||||
# return {'type': 'ir.actions.act_window_close'}
|
||||
# def document_page_menu_create(self, cr, uid, ids, context=None):
|
||||
# if context is None:
|
||||
# context = {}
|
||||
obj_page = self.env['document.page']
|
||||
obj_menu = self.env['ir.ui.menu']
|
||||
obj_action = self.env['ir.actions.act_window']
|
||||
|
Loading…
Reference in New Issue
Block a user