Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/20/15, 6:26 AM|
|Seen: 5096 times|
|Last updated: 7/22/17, 2:26 PM|