Here is my code to customize « external identifiers » view. I added a ID column.
But when I add a new column like this in a view, I CAN NOT sort lines according to this new column. If I click the header of the table, nothing arrives. How could it work?
Also, how could I get the little triangle icon in the header when the column is sorted? (see the triangle at the right of Model Name)
<?xml version="1.0" encoding="utf-8"?>
<record id="base.view_model_data_list" model="ir.ui.view">
<field name="arch" type="xml">
<tree string="External Identifiers">
<field name="model" groups="base.group_no_one"/>
<field name="module" invisible="1"/>
@Pascal, I tried adding the id field as you have done (using OpenERP v7) and I can sort based on the ID field. Note that you can only sort by 1 column at any time. Note that you cannot sort by Complete ID and Display Name as they are function fields. You did not redefined the ID field, did you?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/20/15, 6:26 AM|
|Seen: 3421 times|
|Last updated: 3/23/16, 11:19 AM|