v 11.0 Third Party 66
Download for v 11.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 73
Technical Name web_widget_table
LicenseLGPL-3
Websitehttp://www.savoirfairelinux.com
You bought this module and need support? Click here!

Web Widget Table

A module to add datatable https://datatables.net/ as a widget

Table of contents

Usage

Use this widget by saying:

<field name="my_table" widget="widget_table" options="{
'field_name': 'child_ids', 'datatable_params':{'searching': False, 'paging': False, 'info': False}, 'fields': ['name','date_start', 'date_end', 'real_date_start', 'real_date_end', 'total_time'], 'headers': ['Name','Date Start', 'Date End', 'Real Date Start', 'Real Date End', 'Total Time']}"/>

"my_table" field must be of type char, it is only used to display the table. For example:

my_table = fields.Char(
store=False)

You need to pass the following parameters:

field_name
This required parameter indicates a One2many field present in the model from which the fields parameter will refer
fields
This required parameter is a list that indicates the fields from child_ids records that will be displayed in the datatable
headers
The required parameter is a list of used string to display in the table header, they should be in the same order as the fields
datatable_params
This is to pass the datatable parameters https://datatables.net/manual/options, like:
paging; info; searching; scrollY; etc.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed

Do not contact contributors directly about support or help with technical issues.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.