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.

20 lines
408 B

  1. This module was written to extend the functionality of actions in tree views.
  2. Odoo by default support:
  3. ::
  4. <tree delete="false" create="false">
  5. with this module you can do:
  6. ::
  7. <tree delete="state=='draft'">
  8. you can use `_group_refs` to make a condition based on the user's groups:
  9. ::
  10. <tree delete="'base.group_user' in _group_refs">
  11. It works in any tree view, so you can use it in One2many.