From 74ad77e1b6ccb9efce15962095605e4b830ece26 Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 15:01:48 +0200 Subject: [PATCH 01/16] [FIX] lighting: Fix Warnings and translations --- lighting/README.rst | 2 +- lighting/i18n/es.po | 58 ++++++++++++------ lighting/i18n/fr.po | 60 ++++++++++++------- lighting/i18n/pt.po | 65 ++++++++++++++++----- lighting/models/product.py | 3 + lighting/models/product_attachment.py | 7 ++- lighting/models/product_beam.py | 4 +- lighting/models/product_source_line.py | 3 +- lighting/readme/CONTRIBUTORS.rst | 2 +- lighting/static/description/index.html | 2 +- lighting/views/product_attachment_views.xml | 5 +- lighting/views/product_views.xml | 8 ++- 12 files changed, 152 insertions(+), 67 deletions(-) diff --git a/lighting/README.rst b/lighting/README.rst index d28ac223a..68018a08a 100644 --- a/lighting/README.rst +++ b/lighting/README.rst @@ -55,7 +55,7 @@ Contributors * Eric Antones * Kilian Niubo * Deniz Gallo - * Bijaya kumal + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting/i18n/es.po b/lighting/i18n/es.po index 19704c4ad..e523d69ad 100644 --- a/lighting/i18n/es.po +++ b/lighting/i18n/es.po @@ -804,6 +804,7 @@ msgstr "" #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line_color_temperature_flux__color_temperature_id +#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line__color_temperature_display msgid "Color Temperature" msgstr "Temperatura de color" @@ -817,12 +818,6 @@ msgstr "" msgid "Color consistency (SDCM)" msgstr "Consistencia del color (SDCM)" -#. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line__color_temperature_display -#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line__color_temperature_ids -msgid "Color temperature" -msgstr "Temperatura de color" - #. module: lighting #: model_terms:ir.ui.view,arch_db:lighting.product_color_temperature_form_view msgid "Color temperature Form" @@ -952,11 +947,15 @@ msgid "Corrosion resistance" msgstr "Resistencia a la corrosión" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product__cost -#: model:ir.model.fields,field_description:lighting.field_lighting_product__standard_price +#: model_terms:ir.ui.view,arch_db:lighting.product_form_view msgid "Cost" msgstr "Coste" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product__cost +msgid "Actual Cost" +msgstr "Coste Real" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product__cost_currency_id msgid "Cost Currency" @@ -1562,11 +1561,16 @@ msgstr "Tipos de dimension" #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product__dimension_ids #: model:ir.model.fields,field_description:lighting.field_lighting_product_beam__dimension_ids -#: model:ir.model.fields,field_description:lighting.field_lighting_product_beam__dimensions_display #: model_terms:ir.ui.view,arch_db:lighting.product_category_form_view +#: model_terms:ir.ui.view,arch_db:lighting.product_form_view msgid "Dimensions" msgstr "Dimensiones" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product_beam__dimensions_display +msgid "Beam Dimensions" +msgstr "Dimensiones del Haz" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_dimmable__name msgid "Dimmable" @@ -1899,13 +1903,6 @@ msgstr "" msgid "Fields" msgstr "" -#. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas -#: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__file -#: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__file -msgid "File" -msgstr "Fichero" - #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas_fname #: model:ir.model.fields,field_description:lighting.field_lighting_product_addattachment__datas_fname @@ -4383,15 +4380,19 @@ msgid "Recommended accessories" msgstr "Accesorios recomendados" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product__code -#: model:ir.model.fields,field_description:lighting.field_lighting_product__reference #: model:ir.model.fields,field_description:lighting.field_lighting_product_auxiliaryequipmentmodel__reference #: model:ir.model.fields,field_description:lighting.field_lighting_product_ledchip__reference #: model:ir.model.fields,field_description:lighting.field_lighting_product_supplier__reference #: model_terms:ir.ui.view,arch_db:lighting.product_form_view +#: model_terms:ir.ui.view,arch_db:lighting.product_tree_view msgid "Reference" msgstr "Referencia" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product__reference +msgid "Product Reference" +msgstr "Referencia del Producto" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product__reflector_material_ids msgid "Reflector Material" @@ -5395,14 +5396,33 @@ msgid "Uom" msgstr "Uom" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas_url #: model:ir.model.fields,field_description:lighting.field_lighting_attachment__url #: model:ir.model.fields,field_description:lighting.field_lighting_product_addattachment__datas_url #: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__url #: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__url +#: model_terms:ir.ui.view,arch_db:lighting.attachment_kanban_view +#: model_terms:ir.ui.view,arch_db:lighting.attachment_tree_view +#: model_terms:ir.ui.view,arch_db:lighting.attachment_form_view msgid "Url" msgstr "Url" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas_url +msgid "Attachment Url" +msgstr "Url Adjunta" + +#. module: lighting +#: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__file +#: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__file +#: model_terms:ir.ui.view,arch_db:lighting.attachment_form_view +msgid "File" +msgstr "Fichero" + +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas +msgid "Attachment File" +msgstr "Fichero Adjunto" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_group__use_category_attributes msgid "Use Category Attributes" diff --git a/lighting/i18n/fr.po b/lighting/i18n/fr.po index 06e8c0082..ce8fea6a5 100644 --- a/lighting/i18n/fr.po +++ b/lighting/i18n/fr.po @@ -798,6 +798,7 @@ msgstr "" #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line_color_temperature_flux__color_temperature_id +#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line__color_temperature_display msgid "Color Temperature" msgstr "Température de couleur" @@ -811,12 +812,6 @@ msgstr "" msgid "Color consistency (SDCM)" msgstr "Consistance chromatique (SDCM)" -#. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line__color_temperature_display -#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line__color_temperature_ids -msgid "Color temperature" -msgstr "Température de couleur" - #. module: lighting #: model_terms:ir.ui.view,arch_db:lighting.product_color_temperature_form_view msgid "Color temperature Form" @@ -946,10 +941,14 @@ msgid "Corrosion resistance" msgstr "Résistance à la corrosion" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product__cost -#: model:ir.model.fields,field_description:lighting.field_lighting_product__standard_price +#: model_terms:ir.ui.view,arch_db:lighting.product_form_view msgid "Cost" -msgstr "Cost" +msgstr "Coût" + +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product__cost +msgid "Actual Cost" +msgstr "Coût Réel" #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product__cost_currency_id @@ -1556,11 +1555,16 @@ msgstr "Types de dimension" #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product__dimension_ids #: model:ir.model.fields,field_description:lighting.field_lighting_product_beam__dimension_ids -#: model:ir.model.fields,field_description:lighting.field_lighting_product_beam__dimensions_display #: model_terms:ir.ui.view,arch_db:lighting.product_category_form_view +#: model_terms:ir.ui.view,arch_db:lighting.product_form_view msgid "Dimensions" msgstr "Dimensions" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product_beam__dimensions_display +msgid "Beam Dimensions" +msgstr "Dimensions du Faisceau" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_dimmable__name msgid "Dimmable" @@ -1893,13 +1897,6 @@ msgstr "" msgid "Fields" msgstr "" -#. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas -#: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__file -#: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__file -msgid "File" -msgstr "Ficher" - #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas_fname #: model:ir.model.fields,field_description:lighting.field_lighting_product_addattachment__datas_fname @@ -4381,15 +4378,19 @@ msgid "Recommended accessories" msgstr "Accessoires recommandés" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product__code -#: model:ir.model.fields,field_description:lighting.field_lighting_product__reference #: model:ir.model.fields,field_description:lighting.field_lighting_product_auxiliaryequipmentmodel__reference #: model:ir.model.fields,field_description:lighting.field_lighting_product_ledchip__reference #: model:ir.model.fields,field_description:lighting.field_lighting_product_supplier__reference #: model_terms:ir.ui.view,arch_db:lighting.product_form_view +#: model_terms:ir.ui.view,arch_db:lighting.product_tree_view msgid "Reference" msgstr "Référence" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product__reference +msgid "Product Reference" +msgstr "Référence Produit" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product__reflector_material_ids msgid "Reflector Material" @@ -5390,14 +5391,33 @@ msgid "Uom" msgstr "Uom" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas_url #: model:ir.model.fields,field_description:lighting.field_lighting_attachment__url #: model:ir.model.fields,field_description:lighting.field_lighting_product_addattachment__datas_url #: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__url #: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__url +#: model_terms:ir.ui.view,arch_db:lighting.attachment_kanban_view +#: model_terms:ir.ui.view,arch_db:lighting.attachment_tree_view +#: model_terms:ir.ui.view,arch_db:lighting.attachment_form_view msgid "Url" msgstr "Url" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas_url +msgid "Attachment Url" +msgstr "URL Jointe" + +#. module: lighting +#: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__file +#: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__file +#: model_terms:ir.ui.view,arch_db:lighting.attachment_form_view +msgid "File" +msgstr "Ficher" + +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas +msgid "Attachment File" +msgstr "Fichier Joint" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_group__use_category_attributes msgid "Use Category Attributes" diff --git a/lighting/i18n/pt.po b/lighting/i18n/pt.po index 93b832e08..94905544b 100644 --- a/lighting/i18n/pt.po +++ b/lighting/i18n/pt.po @@ -484,7 +484,8 @@ msgid "Color temperature/Flux" msgstr "Color temperature/Flux" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line_color_temperature_display +#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line_color_temperature_flux__color_temperature_id +#: model:ir.model.fields,field_description:lighting.field_lighting_product_source_line__color_temperature_display msgid "Color temperature" msgstr "Temperatura de cor" @@ -935,9 +936,15 @@ msgstr "Tipos de dimensão" #: model:ir.model.fields,field_description:lighting.field_lighting_product_beam_dimension_ids #: model:ir.model.fields,field_description:lighting.field_lighting_product_beam_dimensions_display #: model:ir.model.fields,field_description:lighting.field_lighting_product_dimension_ids +#: model_terms:ir.ui.view,arch_db:lighting.product_form_view msgid "Dimensions" msgstr "Dimensões" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product_beam__dimensions_display +msgid "Beam Dimensions" +msgstr "Dimensões do Feixe" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_dimmable_name msgid "Dimmable" @@ -1075,9 +1082,14 @@ msgid "Price currency" msgstr "Price currency" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product_cost +#: model_terms:ir.ui.view,arch_db:lighting.product_form_view msgid "Cost" -msgstr "Cost" +msgstr "Custo" + +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product__cost +msgid "Actual Cost" +msgstr "Custo Real" #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_cost_currency_id @@ -1151,13 +1163,6 @@ msgstr "Família" msgid "Fan blades" msgstr "Pás de ventilador" -#. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_attachment_datas -#: model:ir.model.fields,field_description:lighting.field_lighting_product_addattachment_datas -#: selection:lighting.attachment,datas_location:0 -msgid "File" -msgstr "Arquivo" - #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_addattachment_overwrite msgid "Overwrite" @@ -2414,14 +2419,19 @@ msgid "Cut hole box included" msgstr "Caixa de recesso incluído" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_product_auxiliaryequipmentmodel_reference -#: model:ir.model.fields,field_description:lighting.field_lighting_product_ledchip_reference -#: model:ir.model.fields,field_description:lighting.field_lighting_product_reference -#: model:ir.model.fields,field_description:lighting.field_lighting_product_supplier_reference -#: model:ir.ui.view,arch_db:lighting.product_form_view +#: model:ir.model.fields,field_description:lighting.field_lighting_product_auxiliaryequipmentmodel__reference +#: model:ir.model.fields,field_description:lighting.field_lighting_product_ledchip__reference +#: model:ir.model.fields,field_description:lighting.field_lighting_product_supplier__reference +#: model_terms:ir.ui.view,arch_db:lighting.product_form_view +#: model_terms:ir.ui.view,arch_db:lighting.product_tree_view msgid "Reference" msgstr "Referência" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_product__reference +msgid "Product Reference" +msgstr "Referência do Produto" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_reflector_material_ids msgid "Reflector material" @@ -2916,10 +2926,33 @@ msgid "UGR" msgstr "UGR" #. module: lighting -#: model:ir.model.fields,field_description:lighting.field_lighting_attachment_url +#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__url +#: model:ir.model.fields,field_description:lighting.field_lighting_product_addattachment__datas_url +#: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__url +#: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__url +#: model_terms:ir.ui.view,arch_db:lighting.attachment_kanban_view +#: model_terms:ir.ui.view,arch_db:lighting.attachment_tree_view +#: model_terms:ir.ui.view,arch_db:lighting.attachment_form_view msgid "Url" msgstr "Url" +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas_url +msgid "Attachment Url" +msgstr "URL Anexo" + +#. module: lighting +#: model:ir.model.fields.selection,name:lighting.selection__lighting_attachment__datas_location__file +#: model:ir.model.fields.selection,name:lighting.selection__lighting_product_addattachment__datas_location__file +#: model_terms:ir.ui.view,arch_db:lighting.attachment_form_view +msgid "File" +msgstr "Arquivo" + +#. module: lighting +#: model:ir.model.fields,field_description:lighting.field_lighting_attachment__datas +msgid "Attachment File" +msgstr "Ficheiro Anexo" + #. module: lighting #: model:ir.model.fields,field_description:lighting.field_lighting_product_usb_ports msgid "USB ports charging devices" diff --git a/lighting/models/product.py b/lighting/models/product.py index a174c0d05..495fcb544 100644 --- a/lighting/models/product.py +++ b/lighting/models/product.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) # TODO :Deleted from security: # access_product_product_price_history_guest,product.product @@ -66,6 +67,7 @@ class LightingProduct(models.Model): # TODO: This reference can be a product.default_code? # Common data reference = fields.Char( + string="Product Reference", required=True, tracking=True, ) @@ -1404,6 +1406,7 @@ def _search_is_required_accessory(self, operator, value): readonly=True, ) cost = fields.Float( + string="Actual Cost", readonly=True, tracking=True, groups="lighting.group_lighting_user", diff --git a/lighting/models/product_attachment.py b/lighting/models/product_attachment.py index bdc548534..5afc09a82 100644 --- a/lighting/models/product_attachment.py +++ b/lighting/models/product_attachment.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) import base64 @@ -68,10 +69,10 @@ def _sequence_default(self): required=True, ) datas_url = fields.Char( - string="Url", + string="Attachment Url", ) datas = fields.Binary( - string="File", + string="Attachment File", attachment=True, ) datas_fname = fields.Char( @@ -114,7 +115,7 @@ def _compute_datas_size(self): compute="_compute_images", verify_resolution=False, ) - image_medium = fields.Binary( + image_medium = fields.Image( string="Medium-sized image", attachment=True, max_width=512, diff --git a/lighting/models/product_beam.py b/lighting/models/product_beam.py index 562bb43d4..3d76cdd33 100644 --- a/lighting/models/product_beam.py +++ b/lighting/models/product_beam.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, fields, models @@ -27,7 +28,6 @@ class LightingProductBeam(models.Model): dimension_ids = fields.One2many( comodel_name="lighting.product.beam.dimension", inverse_name="beam_id", - string="Dimensions", copy=True, ) product_id = fields.Many2one( @@ -38,7 +38,7 @@ class LightingProductBeam(models.Model): # computed fields dimensions_display = fields.Char( compute="_compute_dimensions_display", - string="Dimensions", + string="Beam Dimensions", ) @api.depends("dimension_ids") diff --git a/lighting/models/product_source_line.py b/lighting/models/product_source_line.py index 438ecc515..e55299ae7 100644 --- a/lighting/models/product_source_line.py +++ b/lighting/models/product_source_line.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import _, api, fields, models @@ -439,7 +440,7 @@ def get_format_lang_decimal(self, number): # TODO: This to remove is an old comment. # to remove color_temperature_ids = fields.Many2many( - string="Color temperature", + string="Color temperature Common", comodel_name="lighting.product.color.temperature", relation="lighting_product_source_line_color_temperature_rel", column1="source_line_id", diff --git a/lighting/readme/CONTRIBUTORS.rst b/lighting/readme/CONTRIBUTORS.rst index 7b06ff525..40c992bd6 100644 --- a/lighting/readme/CONTRIBUTORS.rst +++ b/lighting/readme/CONTRIBUTORS.rst @@ -3,4 +3,4 @@ * Eric Antones * Kilian Niubo * Deniz Gallo - * Bijaya kumal + * Bijaya Kumal diff --git a/lighting/static/description/index.html b/lighting/static/description/index.html index 6e54a9d39..dc9326f6b 100644 --- a/lighting/static/description/index.html +++ b/lighting/static/description/index.html @@ -406,7 +406,7 @@

Contributors

  • Eric Antones <eantones@nuobit.com>
  • Kilian Niubo <kniubo@nuobit.com>
  • Deniz Gallo <dgallo@nuobit.com>
  • -
  • Bijaya kumal <bkumal@nuobit.com>
  • +
  • Bijaya Kumal <bkumal@nuobit.com>
  • diff --git a/lighting/views/product_attachment_views.xml b/lighting/views/product_attachment_views.xml index 419561578..842de1b6d 100644 --- a/lighting/views/product_attachment_views.xml +++ b/lighting/views/product_attachment_views.xml @@ -50,11 +50,13 @@ @@ -95,7 +97,7 @@ - + @@ -135,6 +137,7 @@ /> diff --git a/lighting/views/product_views.xml b/lighting/views/product_views.xml index 153b29667..e12937359 100644 --- a/lighting/views/product_views.xml +++ b/lighting/views/product_views.xml @@ -376,7 +376,10 @@ widget="many2many_tags" options="{'color_field': 'color'}" /> - + @@ -471,6 +474,7 @@ @@ -546,7 +550,7 @@ /> - + Date: Wed, 21 May 2025 14:49:55 +0200 Subject: [PATCH 02/16] [FIX] lighting_advanced_search: Fix warnings --- lighting_advanced_search/README.rst | 8 ++++-- lighting_advanced_search/i18n/ca.po | 11 ++++++-- lighting_advanced_search/i18n/es.po | 11 ++++++-- .../readme/CONTRIBUTORS.rst | 8 ++++-- .../static/description/index.html | 4 +++ .../wizard/product_advanced_search.py | 27 ++++++++++--------- .../wizard/product_advanced_search_views.xml | 16 ++++++++--- 7 files changed, 60 insertions(+), 25 deletions(-) diff --git a/lighting_advanced_search/README.rst b/lighting_advanced_search/README.rst index 1d093f43d..cdb0ebbf4 100644 --- a/lighting_advanced_search/README.rst +++ b/lighting_advanced_search/README.rst @@ -50,8 +50,12 @@ Authors Contributors ~~~~~~~~~~~~ -* Eric Antones -* Kilian Niubo +* `NuoBiT `__: + + * Eric Antones + * Kilian Niubo + * Bijaya Kumal + Maintainers ~~~~~~~~~~~ diff --git a/lighting_advanced_search/i18n/ca.po b/lighting_advanced_search/i18n/ca.po index 2b84fd449..4e676b386 100644 --- a/lighting_advanced_search/i18n/ca.po +++ b/lighting_advanced_search/i18n/ca.po @@ -120,8 +120,9 @@ msgstr "" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__nominal_flux_from_in #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__wattage_from_in +#: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form msgid "From" -msgstr "" +msgstr "Des de" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__id @@ -211,8 +212,9 @@ msgstr "" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__nominal_flux_to_in #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__wattage_to_in +#: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form msgid "To" -msgstr "" +msgstr "Fins a" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__attachment_type_in_ids @@ -244,3 +246,8 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form msgid "Without types" msgstr "" + +#. module: lighting_advanced_search +#: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form +msgid "Operation" +msgstr "Operació" \ No newline at end of file diff --git a/lighting_advanced_search/i18n/es.po b/lighting_advanced_search/i18n/es.po index 6f962259a..9a2bf9f86 100644 --- a/lighting_advanced_search/i18n/es.po +++ b/lighting_advanced_search/i18n/es.po @@ -120,8 +120,9 @@ msgstr "" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__nominal_flux_from_in #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__wattage_from_in +#: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form msgid "From" -msgstr "" +msgstr "De" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__id @@ -211,8 +212,9 @@ msgstr "" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__nominal_flux_to_in #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__wattage_to_in +#: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form msgid "To" -msgstr "" +msgstr "A" #. module: lighting_advanced_search #: model:ir.model.fields,field_description:lighting_advanced_search.field_lighting_product_advanced_search__attachment_type_in_ids @@ -244,3 +246,8 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form msgid "Without types" msgstr "Sin los tipos" + +#. module: lighting_advanced_search +#: model_terms:ir.ui.view,arch_db:lighting_advanced_search.product_advanced_search_view_form +msgid "Operation" +msgstr "Operación" \ No newline at end of file diff --git a/lighting_advanced_search/readme/CONTRIBUTORS.rst b/lighting_advanced_search/readme/CONTRIBUTORS.rst index 433c4bbe6..3b5b00225 100644 --- a/lighting_advanced_search/readme/CONTRIBUTORS.rst +++ b/lighting_advanced_search/readme/CONTRIBUTORS.rst @@ -1,2 +1,6 @@ -* Eric Antones -* Kilian Niubo +* `NuoBiT `__: + + * Eric Antones + * Kilian Niubo + * Bijaya Kumal + diff --git a/lighting_advanced_search/static/description/index.html b/lighting_advanced_search/static/description/index.html index f9b61c1f0..ebf339361 100644 --- a/lighting_advanced_search/static/description/index.html +++ b/lighting_advanced_search/static/description/index.html @@ -402,8 +402,12 @@

    Authors

    Contributors

    diff --git a/lighting_advanced_search/wizard/product_advanced_search.py b/lighting_advanced_search/wizard/product_advanced_search.py index 1ed5727df..a42799353 100644 --- a/lighting_advanced_search/wizard/product_advanced_search.py +++ b/lighting_advanced_search/wizard/product_advanced_search.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import _, fields, models @@ -35,26 +36,26 @@ class LightingProductAdvancedSearch(models.TransientModel): # attachment search attachment_type_in_ids = fields.Many2many( - string="Types", + string="Includes Types", comodel_name="lighting.attachment.type", relation="lighting_product_advanced_search_attachment_type_in_rel", column1="advanced_search_id", column2="type_id", ) attachment_type_in_op = fields.Selection( - string="Operator", + string="Operator for included types", selection=OP_SEL, default="and", ) attachment_type_not_in_ids = fields.Many2many( - string="Types", + string="Excluded types", comodel_name="lighting.attachment.type", relation="lighting_product_advanced_search_attachment_type_not_in_rel", column1="advanced_search_id", column2="type_id", ) attachment_type_not_in_op = fields.Selection( - string="Operator", + string="Operator for excluded types", selection=OP_SEL, default="and", ) @@ -68,7 +69,7 @@ class LightingProductAdvancedSearch(models.TransientModel): column2="application_id", ) application_in_op = fields.Selection( - string="Operator", + string="Operator for applicatiom", selection=OP_SEL, default="and", ) @@ -91,7 +92,7 @@ class LightingProductAdvancedSearch(models.TransientModel): column2="lampholder_id", ) lampholder_in_op = fields.Selection( - string="Operator", + string="Operator for Lampholder", selection=OP_SEL, default="and", ) @@ -105,7 +106,7 @@ class LightingProductAdvancedSearch(models.TransientModel): column2="source_type_id", ) source_type_in_op = fields.Selection( - string="Operator", + string="Operator for Source Type", selection=OP_SEL, default="and", ) @@ -119,7 +120,7 @@ class LightingProductAdvancedSearch(models.TransientModel): column2="body_material_id", ) body_material_in_op = fields.Selection( - string="Operator", + string="Operator for Body Material", selection=OP_SEL, default="and", ) @@ -133,7 +134,7 @@ class LightingProductAdvancedSearch(models.TransientModel): column2="voltage_id", ) voltage_in_op = fields.Selection( - string="Operator", + string="Operator for Voltage", selection=OP_SEL, default="and", ) @@ -156,17 +157,17 @@ class LightingProductAdvancedSearch(models.TransientModel): ) # Luminous flux search nominal_flux_from_in = fields.Float( - string="From", + string="Nominal flux From", ) nominal_flux_to_in = fields.Float( - string="To", + string="Nominal flux To", ) # wattage wattage_from_in = fields.Float( - string="From", + string="Wattage From", ) wattage_to_in = fields.Float( - string="To", + string="Wattage To", ) def advanced_search(self): diff --git a/lighting_advanced_search/wizard/product_advanced_search_views.xml b/lighting_advanced_search/wizard/product_advanced_search_views.xml index 7fad6b39e..131e89037 100644 --- a/lighting_advanced_search/wizard/product_advanced_search_views.xml +++ b/lighting_advanced_search/wizard/product_advanced_search_views.xml @@ -18,6 +18,7 @@ /> - - + + - - + + @@ -125,6 +130,7 @@ @@ -132,10 +138,12 @@ From 5d9c088e72612d725aeb7591f3048a61674006cc Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:50:11 +0200 Subject: [PATCH 03/16] [FIX] lighting_attachment_package: Fix warnings --- lighting_attachment_package/README.rst | 1 + .../models/product_attachment_package.py | 2 ++ lighting_attachment_package/readme/CONTRIBUTORS.rst | 1 + lighting_attachment_package/static/description/index.html | 1 + 4 files changed, 5 insertions(+) diff --git a/lighting_attachment_package/README.rst b/lighting_attachment_package/README.rst index a7bb31037..aefe5de5a 100644 --- a/lighting_attachment_package/README.rst +++ b/lighting_attachment_package/README.rst @@ -57,6 +57,7 @@ Contributors * Kilian Niubo * Eric Antones + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_attachment_package/models/product_attachment_package.py b/lighting_attachment_package/models/product_attachment_package.py index 228cb0546..b8ef27702 100644 --- a/lighting_attachment_package/models/product_attachment_package.py +++ b/lighting_attachment_package/models/product_attachment_package.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) import base64 @@ -30,6 +31,7 @@ def pretty_size(value): class LightingAttachmentPackage(models.Model): _name = "lighting.attachment.package" + _description = "Lighting Attachment Package" name = fields.Char( string="Description", diff --git a/lighting_attachment_package/readme/CONTRIBUTORS.rst b/lighting_attachment_package/readme/CONTRIBUTORS.rst index e468d95a0..fc0289a04 100644 --- a/lighting_attachment_package/readme/CONTRIBUTORS.rst +++ b/lighting_attachment_package/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Kilian Niubo * Eric Antones + * Bijaya Kumal diff --git a/lighting_attachment_package/static/description/index.html b/lighting_attachment_package/static/description/index.html index 6c4520427..fdcde238c 100644 --- a/lighting_attachment_package/static/description/index.html +++ b/lighting_attachment_package/static/description/index.html @@ -409,6 +409,7 @@

    Contributors

  • NuoBiT:
  • From b0d6b0f4ea2a2389353ec3d7d6a5b648279f2bc6 Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:50:21 +0200 Subject: [PATCH 04/16] [FIX] lighting_etim: Fix warnings --- lighting_etim/README.rst | 7 +++++-- lighting_etim/models/etim_class.py | 2 ++ lighting_etim/models/etim_class_feature.py | 2 ++ lighting_etim/models/etim_class_feature_value.py | 2 ++ lighting_etim/models/etim_class_synonim.py | 2 ++ lighting_etim/models/etim_feature.py | 2 ++ lighting_etim/models/etim_group.py | 2 ++ lighting_etim/models/etim_product_feature.py | 10 ++++++---- lighting_etim/models/etim_unit.py | 2 ++ lighting_etim/models/etim_value.py | 2 ++ lighting_etim/readme/CONTRIBUTORS.rst | 7 +++++-- lighting_etim/static/description/index.html | 4 ++++ 12 files changed, 36 insertions(+), 8 deletions(-) diff --git a/lighting_etim/README.rst b/lighting_etim/README.rst index 5285ebc1a..033f4b759 100644 --- a/lighting_etim/README.rst +++ b/lighting_etim/README.rst @@ -50,8 +50,11 @@ Authors Contributors ~~~~~~~~~~~~ -* Eric Antones -* Kilian Niubo +* `NuoBiT `__: + + * Eric Antones + * Kilian Niubo + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_etim/models/etim_class.py b/lighting_etim/models/etim_class.py index 0e8bd65b9..14f0f7dda 100644 --- a/lighting_etim/models/etim_class.py +++ b/lighting_etim/models/etim_class.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, fields, models @@ -6,6 +7,7 @@ class LightingETIMClass(models.Model): _name = "lighting.etim.class" + _description = "ETIM Class" _order = "code" code = fields.Char( diff --git a/lighting_etim/models/etim_class_feature.py b/lighting_etim/models/etim_class_feature.py index ff3deb5fd..7258f000b 100644 --- a/lighting_etim/models/etim_class_feature.py +++ b/lighting_etim/models/etim_class_feature.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -6,6 +7,7 @@ class LightingETIMClassFeature(models.Model): _name = "lighting.etim.class.feature" + _description = "ETIM Class Feature" _order = "sequence" sequence = fields.Integer( diff --git a/lighting_etim/models/etim_class_feature_value.py b/lighting_etim/models/etim_class_feature_value.py index b37af0011..62bdfa786 100644 --- a/lighting_etim/models/etim_class_feature_value.py +++ b/lighting_etim/models/etim_class_feature_value.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -7,6 +8,7 @@ class LightingETIMClassFeatureValue(models.Model): _name = "lighting.etim.class.feature.value" + _description = "ETIM Class Feature Value" _order = "sequence" sequence = fields.Integer( diff --git a/lighting_etim/models/etim_class_synonim.py b/lighting_etim/models/etim_class_synonim.py index fdce655e4..6471c85cb 100644 --- a/lighting_etim/models/etim_class_synonim.py +++ b/lighting_etim/models/etim_class_synonim.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -7,6 +8,7 @@ class LightingETIMClassSynonim(models.Model): _name = "lighting.etim.class.synonim" + _description = "ETIM Class Synonim" name = fields.Char( string="Synonim", diff --git a/lighting_etim/models/etim_feature.py b/lighting_etim/models/etim_feature.py index ba96414f3..c5be3a1ba 100644 --- a/lighting_etim/models/etim_feature.py +++ b/lighting_etim/models/etim_feature.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, fields, models @@ -6,6 +7,7 @@ class LightingETIMFeature(models.Model): _name = "lighting.etim.feature" + _description = "ETIM Feature" _order = "code" code = fields.Char( diff --git a/lighting_etim/models/etim_group.py b/lighting_etim/models/etim_group.py index ab96fa2ed..4a89a56e7 100644 --- a/lighting_etim/models/etim_group.py +++ b/lighting_etim/models/etim_group.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, fields, models @@ -6,6 +7,7 @@ class LightingETIMGroup(models.Model): _name = "lighting.etim.group" + _description = "ETIM Group" _order = "code" code = fields.Char( diff --git a/lighting_etim/models/etim_product_feature.py b/lighting_etim/models/etim_product_feature.py index 8fe4b763e..db52a2ee8 100644 --- a/lighting_etim/models/etim_product_feature.py +++ b/lighting_etim/models/etim_product_feature.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) @@ -26,6 +27,7 @@ class LightingProductETIMFeature(models.Model): _name = "lighting.etim.product.feature" + _description = "ETIM Product Feature" _order = "feature_code" feature_id = fields.Many2one( @@ -79,15 +81,15 @@ def _compute_has_unit(self): rec.has_unit = len(unit_ids) != 0 a_value_id = fields.Many2one( - string="Value", + string="A value", comodel_name="lighting.etim.value", ondelete="restrict", ) l_value = fields.Boolean( - string="Value", + string="L value", ) n_value = fields.Float( - string="Value", + string="N value", ) r1_value = fields.Float( string="Value 1", @@ -152,7 +154,7 @@ def _inverse_value(self): help=VALUE_DETAIL_HELP, ) value_str = fields.Char( - string="Value", + string="Str value", compute="_compute_value_str", readonly=True, ) diff --git a/lighting_etim/models/etim_unit.py b/lighting_etim/models/etim_unit.py index 33316fca2..c06e3af89 100644 --- a/lighting_etim/models/etim_unit.py +++ b/lighting_etim/models/etim_unit.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, fields, models @@ -6,6 +7,7 @@ class LightingETIMUnit(models.Model): _name = "lighting.etim.unit" + _description = "ETIM Unit" _order = "code" code = fields.Char( diff --git a/lighting_etim/models/etim_value.py b/lighting_etim/models/etim_value.py index 0fceea7e0..c6250af9c 100644 --- a/lighting_etim/models/etim_value.py +++ b/lighting_etim/models/etim_value.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, fields, models @@ -6,6 +7,7 @@ class LightingETIMValue(models.Model): _name = "lighting.etim.value" + _description = "ETIM Value" _order = "code" code = fields.Char( diff --git a/lighting_etim/readme/CONTRIBUTORS.rst b/lighting_etim/readme/CONTRIBUTORS.rst index 433c4bbe6..462ff1f19 100644 --- a/lighting_etim/readme/CONTRIBUTORS.rst +++ b/lighting_etim/readme/CONTRIBUTORS.rst @@ -1,2 +1,5 @@ -* Eric Antones -* Kilian Niubo +* `NuoBiT `__: + + * Eric Antones + * Kilian Niubo + * Bijaya Kumal diff --git a/lighting_etim/static/description/index.html b/lighting_etim/static/description/index.html index 68ce7b017..6dc7cee77 100644 --- a/lighting_etim/static/description/index.html +++ b/lighting_etim/static/description/index.html @@ -402,8 +402,12 @@

    Authors

    Contributors

    From 86e025210995bd5f7a26b6ed9d808e5d34ff5466 Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:50:30 +0200 Subject: [PATCH 05/16] [FIX] lighting_export: Fix warnings --- lighting_export/README.rst | 1 + lighting_export/models/lighting_export_template.py | 2 ++ lighting_export/models/lighting_export_template_attachment.py | 2 ++ .../models/lighting_export_template_attachment_url.py | 2 ++ lighting_export/models/lighting_export_template_field.py | 4 +++- lighting_export/readme/CONTRIBUTORS.rst | 1 + lighting_export/static/description/index.html | 1 + 7 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lighting_export/README.rst b/lighting_export/README.rst index d32f0216c..cc61376de 100644 --- a/lighting_export/README.rst +++ b/lighting_export/README.rst @@ -54,6 +54,7 @@ Contributors * Eric Antones * Kilian Niubo + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_export/models/lighting_export_template.py b/lighting_export/models/lighting_export_template.py index ac3c75805..cd69eeefa 100644 --- a/lighting_export/models/lighting_export_template.py +++ b/lighting_export/models/lighting_export_template.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import _, api, fields, models @@ -8,6 +9,7 @@ class LightingExportTemplate(models.Model): _name = "lighting.export.template" + _description = "Lighting Product Export Template" _inherit = ["mail.thread", "mail.activity.mixin", "image.mixin"] _order = "sequence,name" diff --git a/lighting_export/models/lighting_export_template_attachment.py b/lighting_export/models/lighting_export_template_attachment.py index 4107175ec..4fbfeddd8 100644 --- a/lighting_export/models/lighting_export_template_attachment.py +++ b/lighting_export/models/lighting_export_template_attachment.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -7,6 +8,7 @@ class LightingExportTemplateAttachment(models.Model): _name = "lighting.export.template.attachment" + _description = "Lighting Product Export Template Attachment" _order = "sequence,id" sequence = fields.Integer( diff --git a/lighting_export/models/lighting_export_template_attachment_url.py b/lighting_export/models/lighting_export_template_attachment_url.py index b90d1de22..188bcbc84 100644 --- a/lighting_export/models/lighting_export_template_attachment_url.py +++ b/lighting_export/models/lighting_export_template_attachment_url.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -7,6 +8,7 @@ class LightingExportTemplateAttachmentUrl(models.Model): _name = "lighting.export.template.attachment.url" + _description = "Lighting Product Export Template Attachment Url" _order = "sequence,id" sequence = fields.Integer( diff --git a/lighting_export/models/lighting_export_template_field.py b/lighting_export/models/lighting_export_template_field.py index cd03102fb..9bdc5c11b 100644 --- a/lighting_export/models/lighting_export_template_field.py +++ b/lighting_export/models/lighting_export_template_field.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -7,6 +8,7 @@ class LightingExportTemplateField(models.Model): _name = "lighting.export.template.field" + _description = "Lighting Product Export Template Field" _order = "sequence" sequence = fields.Integer( @@ -16,7 +18,7 @@ class LightingExportTemplateField(models.Model): ) sequence_aux = fields.Integer( related="sequence", - string="Sequence", + string="Sequence aux", ) field_id = fields.Many2one( comodel_name="ir.model.fields", diff --git a/lighting_export/readme/CONTRIBUTORS.rst b/lighting_export/readme/CONTRIBUTORS.rst index 663aaa9dc..462ff1f19 100644 --- a/lighting_export/readme/CONTRIBUTORS.rst +++ b/lighting_export/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Eric Antones * Kilian Niubo + * Bijaya Kumal diff --git a/lighting_export/static/description/index.html b/lighting_export/static/description/index.html index a4688253f..7fcb3da27 100644 --- a/lighting_export/static/description/index.html +++ b/lighting_export/static/description/index.html @@ -405,6 +405,7 @@

    Contributors

  • NuoBiT:
  • From 8ec2ce976d4334c3a7a556831c1dd25f0d3628a5 Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:50:47 +0200 Subject: [PATCH 06/16] [FIX] lighting_export_json: Fix warnings --- lighting_export_json/README.rst | 9 ++++++--- lighting_export_json/readme/CONTRIBUTORS.rst | 9 ++++++--- lighting_export_json/report/export_product_json.py | 2 ++ lighting_export_json/static/description/index.html | 4 ++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/lighting_export_json/README.rst b/lighting_export_json/README.rst index 6273e1db1..7eabef83f 100644 --- a/lighting_export_json/README.rst +++ b/lighting_export_json/README.rst @@ -50,9 +50,12 @@ Authors Contributors ~~~~~~~~~~~~ -* Eric Antones -* Frank Cespedes -* Kilian Niubo +* `NuoBiT `__: + + * Eric Antones + * Frank Cespedes + * Kilian Niubo + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_export_json/readme/CONTRIBUTORS.rst b/lighting_export_json/readme/CONTRIBUTORS.rst index 845af5a9d..984d2c7c3 100644 --- a/lighting_export_json/readme/CONTRIBUTORS.rst +++ b/lighting_export_json/readme/CONTRIBUTORS.rst @@ -1,3 +1,6 @@ -* Eric Antones -* Frank Cespedes -* Kilian Niubo +* `NuoBiT `__: + + * Eric Antones + * Frank Cespedes + * Kilian Niubo + * Bijaya Kumal diff --git a/lighting_export_json/report/export_product_json.py b/lighting_export_json/report/export_product_json.py index 028b0c936..95fc2175c 100644 --- a/lighting_export_json/report/export_product_json.py +++ b/lighting_export_json/report/export_product_json.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) @@ -10,6 +11,7 @@ class ExportProductJson(models.AbstractModel): _name = "report.lighting_export_json.export_product_json" + _description = "Lighting Product Export JSON" _inherit = "report.report_json.abstract" def generate_json_report(self, data, objects): diff --git a/lighting_export_json/static/description/index.html b/lighting_export_json/static/description/index.html index af5020d12..633e744ec 100644 --- a/lighting_export_json/static/description/index.html +++ b/lighting_export_json/static/description/index.html @@ -402,9 +402,13 @@

    Authors

    Contributors

    From 4d2124d312c6dc4d0ebffbab169ca5b5a05ed8d9 Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:50:59 +0200 Subject: [PATCH 07/16] [FIX] lighting_project: Fix warnings --- lighting_project/README.rst | 1 + lighting_project/models/project.py | 3 ++- lighting_project/models/project_agent.py | 2 ++ lighting_project/models/project_attachment.py | 2 ++ lighting_project/models/project_type.py | 2 ++ lighting_project/readme/CONTRIBUTORS.rst | 1 + lighting_project/static/description/index.html | 1 + lighting_project/views/project_views.xml | 2 +- 8 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lighting_project/README.rst b/lighting_project/README.rst index 5705b1cf3..399c08125 100644 --- a/lighting_project/README.rst +++ b/lighting_project/README.rst @@ -54,6 +54,7 @@ Contributors * Kilian Niubo * Eric Antones + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_project/models/project.py b/lighting_project/models/project.py index 27651d4d1..8d68e3924 100644 --- a/lighting_project/models/project.py +++ b/lighting_project/models/project.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Kilian Niubo +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) @@ -62,7 +63,7 @@ class LightingProject(models.Model): tracking=True, ) auth_contact_name = fields.Char( - string="Name", + string="Authorized contact name", tracking=True, ) auth_contact_email = fields.Char( diff --git a/lighting_project/models/project_agent.py b/lighting_project/models/project_agent.py index d4dd9d7bd..fa569e2b4 100644 --- a/lighting_project/models/project_agent.py +++ b/lighting_project/models/project_agent.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -6,6 +7,7 @@ class LightingProjectAgent(models.Model): _name = "lighting.project.agent" + _description = "Lighting Project Agent" _order = "name" name = fields.Char( diff --git a/lighting_project/models/project_attachment.py b/lighting_project/models/project_attachment.py index 1df840295..4f96ec13e 100644 --- a/lighting_project/models/project_attachment.py +++ b/lighting_project/models/project_attachment.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, fields, models @@ -6,6 +7,7 @@ class LightingProjectAttachment(models.Model): _name = "lighting.project.attachment" + _description = "Lighting Project Attachment" _order = "name" name = fields.Text( diff --git a/lighting_project/models/project_type.py b/lighting_project/models/project_type.py index 3efc81569..b01c3563f 100644 --- a/lighting_project/models/project_type.py +++ b/lighting_project/models/project_type.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -6,6 +7,7 @@ class LightingProjectType(models.Model): _name = "lighting.project.type" + _description = "Lighting Project Type" _order = "name" name = fields.Char( diff --git a/lighting_project/readme/CONTRIBUTORS.rst b/lighting_project/readme/CONTRIBUTORS.rst index e468d95a0..fc0289a04 100644 --- a/lighting_project/readme/CONTRIBUTORS.rst +++ b/lighting_project/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Kilian Niubo * Eric Antones + * Bijaya Kumal diff --git a/lighting_project/static/description/index.html b/lighting_project/static/description/index.html index 4658820d8..20a38a18b 100644 --- a/lighting_project/static/description/index.html +++ b/lighting_project/static/description/index.html @@ -405,6 +405,7 @@

    Contributors

  • NuoBiT:
  • diff --git a/lighting_project/views/project_views.xml b/lighting_project/views/project_views.xml index 47e2cbb8a..1d8c609b2 100644 --- a/lighting_project/views/project_views.xml +++ b/lighting_project/views/project_views.xml @@ -69,7 +69,7 @@ - + From 892d7e99048fcf951683c97cdebf807c2d4fe89b Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:51:57 +0200 Subject: [PATCH 08/16] [FIX] lighting_reporting: Fix warnings --- lighting_reporting/README.rst | 9 ++++++--- lighting_reporting/readme/CONTRIBUTORS.rst | 9 ++++++--- lighting_reporting/report/product.py | 2 ++ lighting_reporting/static/description/index.html | 11 ++++++++--- lighting_reporting/wizard/datasheet_wizard.py | 2 ++ 5 files changed, 24 insertions(+), 9 deletions(-) diff --git a/lighting_reporting/README.rst b/lighting_reporting/README.rst index f3312f706..ac9b42d8e 100644 --- a/lighting_reporting/README.rst +++ b/lighting_reporting/README.rst @@ -55,9 +55,12 @@ Authors Contributors ~~~~~~~~~~~~ -* Eric Antones -* Kilian Niubo -* Frank Cespedes +* `NuoBiT `__: + + * Eric Antones + * Kilian Niubo + * Frank Cespedes + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_reporting/readme/CONTRIBUTORS.rst b/lighting_reporting/readme/CONTRIBUTORS.rst index 75af4e00b..eb5e483df 100644 --- a/lighting_reporting/readme/CONTRIBUTORS.rst +++ b/lighting_reporting/readme/CONTRIBUTORS.rst @@ -1,3 +1,6 @@ -* Eric Antones -* Kilian Niubo -* Frank Cespedes +* `NuoBiT `__: + + * Eric Antones + * Kilian Niubo + * Frank Cespedes + * Bijaya Kumal diff --git a/lighting_reporting/report/product.py b/lighting_reporting/report/product.py index 43ef576d3..91966e71c 100644 --- a/lighting_reporting/report/product.py +++ b/lighting_reporting/report/product.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, models @@ -7,6 +8,7 @@ # TODO:Review: Rename this model or file class ProductReport(models.AbstractModel): _name = "report.lighting_reporting.report_product" + _description = "Lighting Product Report" @api.model def _get_report_values(self, docids, data=None): diff --git a/lighting_reporting/static/description/index.html b/lighting_reporting/static/description/index.html index 5a75592bb..41a5dba8c 100644 --- a/lighting_reporting/static/description/index.html +++ b/lighting_reporting/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -407,9 +408,13 @@

    Authors

    Contributors

    diff --git a/lighting_reporting/wizard/datasheet_wizard.py b/lighting_reporting/wizard/datasheet_wizard.py index 0edfbd07d..5feda5840 100644 --- a/lighting_reporting/wizard/datasheet_wizard.py +++ b/lighting_reporting/wizard/datasheet_wizard.py @@ -1,4 +1,5 @@ # Copyright NuoBiT Solutions - Eric Antones +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models @@ -6,6 +7,7 @@ class LightingReportingProductDatasheetWizard(models.TransientModel): _name = "lighting.reporting.product.datasheet.wizard" + _description = "Lighting Product Datasheet Wizard" def _default_lang_id(self): lang = self.env.context.get("lang") From 62c4beca653db6cd50b757034908824be8baf8c9 Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:52:10 +0200 Subject: [PATCH 09/16] [FIX] lighting_reporting_classic_product: Fix warnings --- lighting_reporting_classic_product/README.rst | 1 + lighting_reporting_classic_product/readme/CONTRIBUTORS.rst | 1 + lighting_reporting_classic_product/report/report_classic.py | 2 ++ .../static/description/index.html | 1 + 4 files changed, 5 insertions(+) diff --git a/lighting_reporting_classic_product/README.rst b/lighting_reporting_classic_product/README.rst index c762746e8..3d82e375f 100644 --- a/lighting_reporting_classic_product/README.rst +++ b/lighting_reporting_classic_product/README.rst @@ -55,6 +55,7 @@ Contributors * Kilian Niubo * Eric Antones * Frank Cespedes + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_reporting_classic_product/readme/CONTRIBUTORS.rst b/lighting_reporting_classic_product/readme/CONTRIBUTORS.rst index cc8fa4d89..83f865b08 100644 --- a/lighting_reporting_classic_product/readme/CONTRIBUTORS.rst +++ b/lighting_reporting_classic_product/readme/CONTRIBUTORS.rst @@ -3,3 +3,4 @@ * Kilian Niubo * Eric Antones * Frank Cespedes + * Bijaya Kumal diff --git a/lighting_reporting_classic_product/report/report_classic.py b/lighting_reporting_classic_product/report/report_classic.py index f03ef87a0..7121c17b6 100644 --- a/lighting_reporting_classic_product/report/report_classic.py +++ b/lighting_reporting_classic_product/report/report_classic.py @@ -1,5 +1,6 @@ # Copyright NuoBiT Solutions - Eric Antones # Copyright NuoBiT Solutions - Frank Cespedes +# Copyright NuoBiT Solutions 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import api, models @@ -8,6 +9,7 @@ # TODO:Review: Rename this model or file class ProductReport(models.AbstractModel): _name = "report.lighting_reporting_classic_product.report_classic" + _description = "Lighting Product Report" @api.model def _get_report_values(self, docids, data=None): diff --git a/lighting_reporting_classic_product/static/description/index.html b/lighting_reporting_classic_product/static/description/index.html index 08a0df17a..eb31dfd43 100644 --- a/lighting_reporting_classic_product/static/description/index.html +++ b/lighting_reporting_classic_product/static/description/index.html @@ -406,6 +406,7 @@

    Contributors

  • Kilian Niubo <kniubo@nuobit.com>
  • Eric Antones <eantones@nuobit.com>
  • Frank Cespedes <fcespedes@nuobit.com>
  • +
  • Bijaya Kumal <bkumal@nuobit.com>
  • From b0dee974af79f75a3139430fc0f10b230075b9c0 Mon Sep 17 00:00:00 2001 From: bijaya Date: Wed, 21 May 2025 14:52:20 +0200 Subject: [PATCH 10/16] [FIX] lighting_reporting_classic_product_seo: Fix warnings --- lighting_reporting_classic_product_seo/README.rst | 1 + .../readme/CONTRIBUTORS.rst | 1 + .../static/description/index.html | 1 + .../views/report_classic.xml | 6 +++++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lighting_reporting_classic_product_seo/README.rst b/lighting_reporting_classic_product_seo/README.rst index da5393df9..fd00ce66a 100644 --- a/lighting_reporting_classic_product_seo/README.rst +++ b/lighting_reporting_classic_product_seo/README.rst @@ -54,6 +54,7 @@ Contributors * Kilian Niubo * Eric Antones + * Bijaya Kumal Maintainers ~~~~~~~~~~~ diff --git a/lighting_reporting_classic_product_seo/readme/CONTRIBUTORS.rst b/lighting_reporting_classic_product_seo/readme/CONTRIBUTORS.rst index e468d95a0..fc0289a04 100644 --- a/lighting_reporting_classic_product_seo/readme/CONTRIBUTORS.rst +++ b/lighting_reporting_classic_product_seo/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Kilian Niubo * Eric Antones + * Bijaya Kumal diff --git a/lighting_reporting_classic_product_seo/static/description/index.html b/lighting_reporting_classic_product_seo/static/description/index.html index 3a06e9768..f884fecd6 100644 --- a/lighting_reporting_classic_product_seo/static/description/index.html +++ b/lighting_reporting_classic_product_seo/static/description/index.html @@ -405,6 +405,7 @@

    Contributors

  • NuoBiT:
  • diff --git a/lighting_reporting_classic_product_seo/views/report_classic.xml b/lighting_reporting_classic_product_seo/views/report_classic.xml index f3e399d90..23a2f6938 100644 --- a/lighting_reporting_classic_product_seo/views/report_classic.xml +++ b/lighting_reporting_classic_product_seo/views/report_classic.xml @@ -1,6 +1,7 @@