Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] lighting_export_bmecat #65

Open
wants to merge 3 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lighting/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@
"data/lighting_data.xml",
"data/lighting_product_ral_data.xml",
],
"external_dependencies": {
"python": ["openupgradelib"],
},
"application": True,
}
4 changes: 3 additions & 1 deletion lighting/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ msgstr "Cerrar"
#: model_terms:ir.ui.view,arch_db:lighting.product_family_search_view
#: model_terms:ir.ui.view,arch_db:lighting.product_finish_form_view
#: model_terms:ir.ui.view,arch_db:lighting.product_ral_form_view
#: model:ir.model.fields,field_description:lighting.field_lighting_catalog__code
msgid "Code"
msgstr "Código"

Expand Down Expand Up @@ -5327,8 +5328,9 @@ msgstr ""

#. module: lighting
#: model:ir.model.fields,field_description:lighting.field_lighting_product__uom_id
#: model:ir.model.fields,field_description:lighting.field_lighting_dimension_type__uom_id
msgid "Unit of Measure"
msgstr ""
msgstr "Unidad de medida"

#. module: lighting
#: model:ir.model.fields,field_description:lighting.field_lighting_product__uom_name
Expand Down
4 changes: 3 additions & 1 deletion lighting/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ msgstr "Fermer"
#: model_terms:ir.ui.view,arch_db:lighting.product_family_search_view
#: model_terms:ir.ui.view,arch_db:lighting.product_finish_form_view
#: model_terms:ir.ui.view,arch_db:lighting.product_ral_form_view
#: model:ir.model.fields,field_description:lighting.field_lighting_catalog__code
msgid "Code"
msgstr "Code"

Expand Down Expand Up @@ -5326,8 +5327,9 @@ msgstr ""

#. module: lighting
#: model:ir.model.fields,field_description:lighting.field_lighting_product__uom_id
#: model:ir.model.fields,field_description:lighting.field_lighting_dimension_type__uom_id
msgid "Unit of Measure"
msgstr ""
msgstr "Unité de measure"

#. module: lighting
#: model:ir.model.fields,field_description:lighting.field_lighting_product__uom_name
Expand Down
7 changes: 7 additions & 0 deletions lighting/i18n/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ msgstr "Perto"
#: model:ir.ui.view,arch_db:lighting.product_finish_form_view
#: model:ir.model.fields,field_description:lighting.field_lighting_product_special_spectrum_code
#: model:ir.model.fields,field_description:lighting.field_lighting_product_family_code
#: model:ir.model.fields,field_description:lighting.field_lighting_catalog__code
msgid "Code"
msgstr "Código"

Expand Down Expand Up @@ -2776,6 +2777,12 @@ msgstr "Tipos"
msgid "Categories"
msgstr "Categorias"

#. module: lighting
#: model:ir.model.fields,field_description:lighting.field_lighting_dimension_type__uom_id
#: model:ir.model.fields,field_description:lighting.field_lighting_product__uom_id
msgid "Unit of Measure"
msgstr "Unidade de medida"

#. module: lighting
#: model:ir.model.fields,field_description:lighting.field_lighting_product_category_id
#: model:ir.ui.view,arch_db:lighting.lighting_product_view
Expand Down
1 change: 1 addition & 0 deletions lighting/models/product_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class LightingCatalog(models.Model):
string="Catalog",
required=True,
)
code = fields.Char(required=True, tracking=True)
description_show_ip = fields.Boolean(
string="Description show IP",
help="If checked, IP and IP2 will be shown on a generated product description "
Expand Down
4 changes: 4 additions & 0 deletions lighting/models/product_dimension_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class LightingDimensionType(models.Model):
uom = fields.Char(
help="Unit of measure",
)
uom_id = fields.Many2one(
comodel_name="uom.uom",
string="Unit of Measure",
)
description = fields.Char(
string="Internal description",
)
Expand Down
7 changes: 4 additions & 3 deletions lighting/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down
4 changes: 4 additions & 0 deletions lighting/views/product_catalog_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<field name="model">lighting.catalog</field>
<field name="arch" type="xml">
<form string="Catalog Form">
<header />
<sheet>
<div class="oe_button_box" name="button_box">
<button
Expand All @@ -43,6 +44,7 @@
</div>
<group>
<group>
<field name="code" />
<field name="html_color" />
</group>
</group>
Expand Down Expand Up @@ -70,6 +72,7 @@
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="code" />
<field name="description_show_ip" />
<field name="product_count" />
<button
Expand All @@ -91,6 +94,7 @@
<field name="id" />
<field name="image_128" />
<field name="name" />
<field name="code" />
<field name="product_count" />
<templates>
<t t-name="kanban-box">
Expand Down
1 change: 1 addition & 0 deletions lighting/views/product_dimension_type_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<group>
<field name="code" />
<field name="uom" />
<field name="uom_id" />
<field name="description" widget="text" />
</group>
</sheet>
Expand Down
62 changes: 62 additions & 0 deletions lighting_export_bmecat/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
======================
Lighting Export BMEcat
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3c4da51cf6c645b6074d760f70a7b95c24bf6a15a9ae55d8162730670e9a1987
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-NuoBiT%2Flighting--vertical-lightgray.png?logo=github
:target: https://github.com/NuoBiT/lighting-vertical/tree/16.0/lighting_export_bmecat
:alt: NuoBiT/lighting-vertical

|badge1| |badge2| |badge3|

This module adds the function generate_generic_name for display names models

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/NuoBiT/lighting-vertical/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/NuoBiT/lighting-vertical/issues/new?body=module:%20lighting_export_bmecat%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* NuoBiT Solutions SL

Contributors
~~~~~~~~~~~~

* `NuoBiT <https://www.nuobit.com>`__:

* Frank Cespedes <fcespedes@nuobit.com>

Maintainers
~~~~~~~~~~~

This module is part of the `NuoBiT/lighting-vertical <https://github.com/NuoBiT/lighting-vertical/tree/16.0/lighting_export_bmecat>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions lighting_export_bmecat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
25 changes: 25 additions & 0 deletions lighting_export_bmecat/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright NuoBiT Solutions - Frank Cespedes <fcespedes@nuobit.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "Lighting Export BMEcat",
"version": "16.0.1.0.0",
"author": "NuoBiT Solutions SL",
"license": "AGPL-3",
"category": "Lighting",
"website": "https://github.com/NuoBiT/lighting-vertical",
"depends": ["lighting", "report_xml", "queue_job", "mail"],
"data": [
"security/ir.model.access.csv",
"security/lighting_bmecat_rule.xml",
"data/mime_codes_data.xml",
"data/packing_units_data.xml",
"views/queue_job_views.xml",
"views/lighting_export_bmecat_views.xml",
"views/lighting_bmecat_config_views.xml",
"views/product_catalog_views.xml",
"views/report_bmecat.xml",
],
"external_dependencies": {
"python": ["pycountry"],
},
}
Loading