You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
637 B

5 years ago
  1. Widgets
  2. =======
  3. <field name="url_field" widget="iframe" style="width: 100%" iframe_style="width: 100%" />
  4. Creates an iframe with ``url_field`` value as a source.
  5. <field name="article_ids" widget="one2many_flexible" click_target="current" />
  6. Allows changing the target for the item click action.
  7. Functions
  8. =========
  9. odoo.addons.galicea_toolset.utils.get_base_url(env)
  10. Client actions
  11. ==============
  12. @api.multi
  13. def button_action(self):
  14. return {
  15. 'type': 'ir.actions.client',
  16. 'tag': 'galicea_toolset.open_edit_dialog',
  17. 'params': { 'res_id': <id>, 'res_model': <model>, 'title': <title>}
  18. };