Skip to content
Merged
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
118 changes: 118 additions & 0 deletions product_attribute_company_favorite/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
==================================
Product Attribute Company Favorite
==================================

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

.. |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-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/17.0/product_attribute_company_favorite
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_attribute_company_favorite
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Set favorite product attributes and attribute values per company. Only
the favorite attributes and values will be displayed in the dropdown
menu in a product template form.

**Table of contents**

.. contents::
:local:

Configuration
=============

There is two setting to allow to set new attribute and new attribute
values as favorites at creation for all companies, instead of the user's
current company only.

Go to Settings>Inventory>Products and check - "Set new attribute as
favorite for all companies" - "Set new attribute value as favorite for
all companies"

Usage
=====

At installation, all attributes will be set to favorites for all
companies.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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/OCA/product-attribute/issues/new?body=module:%20product_attribute_company_favorite%0Aversion:%2017.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
-------

* Coop IT Easy SC

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

- `Coop IT Easy SC <https://coopiteasy.be>`__:

- Victor Champonnois
- Carmen Bianca Bakker

- Akretion

- David Beal

- Grap

- Sylvain LE GAL

- `APSL-Nagarro <https://apsl.tech>`__:

- Antoni Marroig <amarroig@apsl.net>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-victor-champonnois| image:: https://github.com/victor-champonnois.png?size=40px
:target: https://github.com/victor-champonnois
:alt: victor-champonnois

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-victor-champonnois|

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_attribute_company_favorite>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions product_attribute_company_favorite/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later
from . import models
from .post_init_hook import initialize_attribute_is_favorite_field
25 changes: 25 additions & 0 deletions product_attribute_company_favorite/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Product Attribute Company Favorite",
"summary": """
Possibility to set favorite product attributes per company""",
"version": "17.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
"maintainers": ["victor-champonnois"],
"license": "AGPL-3",
"application": False,
"depends": [
"product",
"stock",
],
"data": [
"views/product_attribute_views.xml",
"views/res_config_settings_views.xml",
],
"post_init_hook": "initialize_attribute_is_favorite_field",
}
126 changes: 126 additions & 0 deletions product_attribute_company_favorite/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_attribute_company_favorite
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-29 08:31+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_attribute_company_favorite
#: model:ir.model,name:product_attribute_company_favorite.model_product_attribute_value
msgid "Attribute Value"
msgstr "Valor del Atributo"

#. module: product_attribute_company_favorite
#: model:ir.model,name:product_attribute_company_favorite.model_res_config_settings
msgid "Config Settings"
msgstr "Configuración de Ajustes"

#. module: product_attribute_company_favorite
#: model:ir.model.fields,field_description:product_attribute_company_favorite.field_product_attribute__is_favorite
#: model:ir.model.fields,field_description:product_attribute_company_favorite.field_product_attribute_favorite_mixin__is_favorite
#: model:ir.model.fields,field_description:product_attribute_company_favorite.field_product_attribute_value__is_favorite
#: model:ir.model.fields,field_description:product_attribute_company_favorite.field_product_template_attribute_line__is_favorite
msgid "Favorite"
msgstr "Favorito"

#. module: product_attribute_company_favorite
#: model_terms:ir.ui.view,arch_db:product_attribute_company_favorite.product_attribute_view_search
msgid "Favorites"
msgstr "Favoritos"

#. module: product_attribute_company_favorite
#: model:ir.model.fields,help:product_attribute_company_favorite.field_product_attribute__is_favorite
#: model:ir.model.fields,help:product_attribute_company_favorite.field_product_attribute_favorite_mixin__is_favorite
#: model:ir.model.fields,help:product_attribute_company_favorite.field_product_attribute_value__is_favorite
#: model:ir.model.fields,help:product_attribute_company_favorite.field_product_template_attribute_line__is_favorite
msgid "If checked, this record can be linked to a product template."
msgstr ""
"Si está marcada, este registro puede vincularse a una plantilla de producto."

#. module: product_attribute_company_favorite
#: model:ir.model,name:product_attribute_company_favorite.model_product_attribute_favorite_mixin
msgid ""
"Methods used both in product.attribute and\n"
" product.attribute.value to implement is_favorite functionalities\n"
" "
msgstr ""
"Métodos utilizados tanto en product.attribute como\n"
" product.attribute.value para implementar funcionalidades is_favorite\n"
" "

#. module: product_attribute_company_favorite
#: model:ir.model,name:product_attribute_company_favorite.model_product_attribute
msgid "Product Attribute"
msgstr "Atributo de producto"

#. module: product_attribute_company_favorite
#: model:ir.model,name:product_attribute_company_favorite.model_product_template_attribute_line
msgid "Product Template Attribute Line"
msgstr "Plantilla de Línea de Atributo de Producto"

#. module: product_attribute_company_favorite
#: model:ir.model.fields,field_description:product_attribute_company_favorite.field_res_config_settings__new_attribute_favorite_for_all_companies
msgid "Set new attribute as favorite for all companies"
msgstr "Establecer nuevo atributo como favorito para todas las compañías"

#. module: product_attribute_company_favorite
#: model:ir.model.fields,field_description:product_attribute_company_favorite.field_res_config_settings__new_attribute_value_favorite_for_all_companies
msgid "Set new attributes value as favorite for all companies"
msgstr ""
"Establecer el valor de los nuevos atributos como favorito para todas las "
"compañías"

#. module: product_attribute_company_favorite
#: model:ir.model.fields,help:product_attribute_company_favorite.field_res_config_settings__new_attribute_favorite_for_all_companies
msgid ""
"When a new attribute is created,\n"
" set it as favorite for all companies.\n"
" Otherwise it is only set as favorite for the user's current company"
msgstr ""
"Cuando se crea un nuevo atributo,\n"
" se establece como favorito para todas las compañías.\n"
" De lo contrario, sólo se establecerá como favorito para la compañía "
"actual del usuario"

#. module: product_attribute_company_favorite
#: model_terms:ir.ui.view,arch_db:product_attribute_company_favorite.res_config_settings_view_form
msgid ""
"When a new attribute is created, set it as favorite for all companies. "
"Otherwise, it is only set as favorite for the user's current company"
msgstr ""
"Cuando se crea un nuevo atributo, se establece como favorito para todas las "
"compañías. De lo contrario, sólo se establecerá como favorito para la "
"compañía actual del usuario"

#. module: product_attribute_company_favorite
#: model:ir.model.fields,help:product_attribute_company_favorite.field_res_config_settings__new_attribute_value_favorite_for_all_companies
msgid ""
"When a new attribute value is created,\n"
" set it as favorite for all companies.\n"
" Otherwise it is only set as favorite for the user's current company"
msgstr ""
"Cuando se crea un nuevo valor de atributo,\n"
" se establece como favorito para todas las compañías.\n"
" De lo contrario, sólo se establecerá como favorito para la compañía "
"actual del usuario"

#. module: product_attribute_company_favorite
#: model_terms:ir.ui.view,arch_db:product_attribute_company_favorite.res_config_settings_view_form
msgid ""
"When a new attribute value is created, set it as favorite for all companies. "
"Otherwise, it is only set as favorite for the user's current company"
msgstr ""
"Cuando se crea un nuevo valor de atributo, se establece como favorito para "
"todas las compañías. De lo contrario, sólo se establecerá como favorito para "
"la compañía actual del usuario"
Loading