3
0
Fork 0
Commit Graph

5 Commits (5ee8764579407c80c684dd7c1cbd5648aed79121)

Author SHA1 Message Date
Antonio Espinosa 0d7c5b07c2 Use toLowerCase() instead another comparator 2015-06-25 08:36:55 +02:00
Antonio Espinosa abc31b611b [FIX] Allow set web_tree_many2one_clickable.default as True 2015-06-24 12:06:02 +02:00
Yannick Vaucher 9aa6964ff4 Add bug tracker link on README.rst 2015-05-22 19:45:36 +02:00
Pedro M. Baeza 7e67aaa627 [FIX] web_tree_many2one_clickable: Don't complain if there is no parameter defined 2015-04-10 22:50:06 +02:00
Pedro M. Baeza dcacee14bf [ADD] web_tree_many2one_clickable
Clickable many2one fields for tree views
========================================

This addon provides a separate widget to allow many2one fields in a tree view
open the linked resource when clicking on their name.

You can also define a system parameter to have this behaviour for all the
existing many2one fields in tree views.

Installation
============

Install it the regular way.

Configuration
=============

If you want to have all many2one fields clickable by default, you have to
define in *Configuration > Technical > Parameters > System parameters*, a new
parameter with name `web_tree_many2one_clickable.default` and with value
`true`.

Usage
=====

For the widget option, you need to add `widget="many2one_clickable"` attribute
in the XML field definition in the tree view.

For example:

`<field name="partner_id" widget="many2one_clickable" />`

will open the linked partner in a form view.

Known issues / Roadmap
======================

* You cannot deactivate clickable behaviour for an specific many2one field if
  you configure the system parameter.
* The value of the system parameter is retrieved for each many2one field
  present in the view instead of only once.
2015-03-16 12:23:05 +01:00