Files
odoo_source/addons/spreadsheet_dashboard/models/spreadsheet_dashboard_group.py
T
niyasraphy b4388a9206 [IMP] spreadsheet_dashboard: translatable name field
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>
2023-01-03 08:54:52 +01:00

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()