before this commit the name field in spreadsheet.dashboard.group and spreadsheet.dashboard is not translatable, and it always appears in english in the dashboard. after this commit, the name will be translatable and values will be shown in users language in the dashboard. closes odoo/odoo#108972 Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
12 lines
358 B
Python
12 lines
358 B
Python
from odoo import fields, models
|
|
|
|
|
|
class SpreadsheetDashboardGroup(models.Model):
|
|
_name = 'spreadsheet.dashboard.group'
|
|
_description = 'Group of dashboards'
|
|
_order = 'sequence'
|
|
|
|
name = fields.Char(required=True, translate=True)
|
|
dashboard_ids = fields.One2many('spreadsheet.dashboard', 'dashboard_group_id')
|
|
sequence = fields.Integer()
|