Skip to content

Commit

Permalink
[16.0][ADD] product_brand_active: In product brand new fields: "Activ…
Browse files Browse the repository at this point in the history
…e", "Start Date" and "End Date".
  • Loading branch information
alfredoavanzosc committed Oct 30, 2024
1 parent 273e184 commit 0870e47
Show file tree
Hide file tree
Showing 13 changed files with 504 additions and 0 deletions.
28 changes: 28 additions & 0 deletions product_brand_active/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

====================
Product brand active
====================

* In product brand new fields: "Active", "Start Date" and "End Date".

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

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/odoo-addons/issues>`_. In case of trouble,
please check there if your issue has already been reported. If you spotted
it first, help us smash it by providing detailed and welcomed feedback.

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

Credits
=======

Contributors
------------

* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
* Ana Juaristi <anajuaristi@avanzosc.es>
9 changes: 9 additions & 0 deletions product_brand_active/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from . import models
from odoo import api, SUPERUSER_ID


def _post_install_active_product_brand(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
brands = env["product.brand"].search([])
if brands:
brands.write({"active": True})
18 changes: 18 additions & 0 deletions product_brand_active/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2024 Alfredo de la Fuente - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Product Brand Active",
"version": "16.0.1.0.0",
"category": "Sales/Sales",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "https://github.com/avanzosc/odoo-addons",
"depends": [
"product_brand",
],
"data": [
"views/product_brand_views.xml",
],
"installable": True,
"post_init_hook": "_post_install_active_product_brand",
}
71 changes: 71 additions & 0 deletions product_brand_active/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_brand_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-30 08:17+0000\n"
"PO-Revision-Date: 2024-10-30 08:17+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__a
#, python-format
msgid "Change Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__d
#, python-format
msgid "Change End Date"
msgstr ""

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__end_date
msgid "End Date"
msgstr ""

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Group By"
msgstr ""

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Not Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__n
#, python-format
msgid "Nothing"
msgstr ""

#. module: product_brand_active
#: model:ir.model,name:product_brand_active.model_product_brand
msgid "Product Brand"
msgstr "Marca de producte"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__start_date
msgid "Start Date"
msgstr ""
71 changes: 71 additions & 0 deletions product_brand_active/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_brand_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-30 08:17+0000\n"
"PO-Revision-Date: 2024-10-30 08:17+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__a
#, python-format
msgid "Change Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__d
#, python-format
msgid "Change End Date"
msgstr ""

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__end_date
msgid "End Date"
msgstr ""

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Group By"
msgstr ""

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Not Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__n
#, python-format
msgid "Nothing"
msgstr ""

#. module: product_brand_active
#: model:ir.model,name:product_brand_active.model_product_brand
msgid "Product Brand"
msgstr ""

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__start_date
msgid "Start Date"
msgstr ""
71 changes: 71 additions & 0 deletions product_brand_active/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_brand_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-30 08:18+0000\n"
"PO-Revision-Date: 2024-10-30 08:18+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Active"
msgstr "Activa"

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__a
#, python-format
msgid "Change Active"
msgstr "Cambio activa"

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__d
#, python-format
msgid "Change End Date"
msgstr "Cambio fecha fin"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__end_date
msgid "End Date"
msgstr "Fecha fin"

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Group By"
msgstr "Agrupar por"

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Not Active"
msgstr "No Activa"

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__n
#, python-format
msgid "Nothing"
msgstr "Nada"

#. module: product_brand_active
#: model:ir.model,name:product_brand_active.model_product_brand
msgid "Product Brand"
msgstr "Marca de producto"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__start_date
msgid "Start Date"
msgstr "Fecha inicio"
71 changes: 71 additions & 0 deletions product_brand_active/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_brand_active
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-30 08:18+0000\n"
"PO-Revision-Date: 2024-10-30 08:18+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__a
#, python-format
msgid "Change Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__d
#, python-format
msgid "Change End Date"
msgstr ""

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__end_date
msgid "End Date"
msgstr ""

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Group By"
msgstr ""

#. module: product_brand_active
#: model_terms:ir.ui.view,arch_db:product_brand_active.product_brand_search_form_view
msgid "Not Active"
msgstr ""

#. module: product_brand_active
#. odoo-python
#: code:addons/product_brand_active/models/product_brand.py:0
#: model:ir.model.fields.selection,name:product_brand_active.selection__product_brand__active_end_date_change__n
#, python-format
msgid "Nothing"
msgstr ""

#. module: product_brand_active
#: model:ir.model,name:product_brand_active.model_product_brand
msgid "Product Brand"
msgstr "Marque d'article"

#. module: product_brand_active
#: model:ir.model.fields,field_description:product_brand_active.field_product_brand__start_date
msgid "Start Date"
msgstr ""
Loading

0 comments on commit 0870e47

Please sign in to comment.