-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by legalsylvain
- Loading branch information
Showing
29 changed files
with
747 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
============== | ||
Product Labels | ||
============== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:a5e57355a72af0e4c4d3556ab6aaa1d5fa7958166c174249c5f3c4ecf82109b7 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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-grap%2Fgrap--odoo--business-lightgray.png?logo=github | ||
:target: https://github.com/grap/grap-odoo-business/tree/12.0/product_label | ||
:alt: grap/grap-odoo-business | ||
|
||
|badge1| |badge2| |badge3| | ||
|
||
This module extends the functionality of Product module to support labels | ||
on products. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
* Go to "Setting > Technical > Parameters > Labels" | ||
|
||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-business/12.0/product_label/static/description/product_label_kanban.png | ||
|
||
* Edit or create a Label | ||
|
||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-business/12.0/product_label/static/description/product_label_form.png | ||
|
||
If "Display on Reports" is checked, label will be displayed on reports | ||
by other glue modules, available in the same repository: ``product_label_account``, ``product_label_sale``, ... | ||
|
||
Usage | ||
===== | ||
|
||
* Go to your product form | ||
|
||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-business/12.0/product_label/static/description/product_template_form.png | ||
|
||
* Set one or many labels and save. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-business/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/grap/grap-odoo-business/issues/new?body=module:%20product_label%0Aversion:%2012.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 | ||
~~~~~~~ | ||
|
||
* GRAP | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Julien WESTE | ||
* Sylvain LE GAL (https://www.twitter.com/legalsylvain) | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px | ||
:target: https://github.com/legalsylvain | ||
:alt: legalsylvain | ||
.. |maintainer-quentinDupont| image:: https://github.com/quentinDupont.png?size=40px | ||
:target: https://github.com/quentinDupont | ||
:alt: quentinDupont | ||
|
||
Current maintainers: | ||
|
||
|maintainer-legalsylvain| |maintainer-quentinDupont| | ||
|
||
This module is part of the `grap/grap-odoo-business <https://github.com/grap/grap-odoo-business/tree/12.0/product_label>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (C) 2012 - Today: GRAP (http://www.grap.coop) | ||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
# @author Julien WESTE | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Product Labels", | ||
"version": "16.0.1.0.0", | ||
"category": "Product", | ||
"author": "GRAP", | ||
"maintainers": ["legalsylvain", "quentinDupont"], | ||
"developpment_status": "Production/Stable", | ||
"website": "https://github.com/grap/grap-odoo-business", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
# OCA | ||
"product_usability", | ||
], | ||
"data": [ | ||
"security/res_groups.xml", | ||
"security/ir_rule.xml", | ||
"security/ir.model.access.csv", | ||
"views/view_product_product.xml", | ||
"views/view_product_template.xml", | ||
"views/view_product_label.xml", | ||
], | ||
"demo": [ | ||
"demo/res_groups.xml", | ||
"demo/product_label.xml", | ||
"demo/product_product.xml", | ||
], | ||
"images": [ | ||
"./static/description/product_label_kanban.png" | ||
"./static/description/product_label_form.png" | ||
"./static/description/product_template_form.png" | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2012 - Today: GRAP (http://www.grap.coop) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
@author Julien WESTE | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="label_agriculture_biologique" model="product.label"> | ||
<field name="name">Organic Food</field> | ||
<field name="code">AB</field> | ||
<field name="website">http://agriculture.gouv.fr/lagriculture-biologique-ab</field> | ||
<field name="display_on_report" eval="True" /> | ||
<field name="image" type="base64" file="product_label/static/img/label_agriculture_biologique-image.png"/> | ||
</record> | ||
|
||
<record id="label_max_havelaar" model="product.label"> | ||
<field name="name">Max Havelaar</field> | ||
<field name="code">MH</field> | ||
<field name="image" type="base64" file="product_label/static/img/label_max_havelaar-image.png"/> | ||
</record> | ||
|
||
<record id="label_gluten_free" model="product.label"> | ||
<field name="name">Gluten Free</field> | ||
<field name="code">GF</field> | ||
<field name="display_on_report" eval="True" /> | ||
<field name="image" type="base64" file="product_label/static/img/label_gluten_free-image.png"/> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2012 - Today: GRAP (http://www.grap.coop) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
@author Julien WESTE | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="infusion_girl_power" model="product.product"> | ||
<field name="name">Infusion La Girl Power (vrac)</field> | ||
<field name="uom_id" ref="uom.product_uom_kgm" /> | ||
<field name="uom_po_id" ref="uom.product_uom_kgm" /> | ||
<field name="list_price">120.30</field> | ||
<field name="label_ids" eval="[ | ||
(4, ref('label_agriculture_biologique')), | ||
]"/> | ||
</record> | ||
|
||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2012 - Today: GRAP (http://www.grap.coop) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
@author Julien WESTE | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="group_label_manager" model="res.groups"> | ||
<field name="users" eval="[(4, ref('base.user_admin'))]"/> | ||
</record> | ||
|
||
<record id="base.group_multi_company" model="res.groups"> | ||
<field name="users" eval="[(4, ref('base.user_admin'))]"/> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * product_label | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-07-26 11:59+0000\n" | ||
"PO-Revision-Date: 2024-07-26 11:59+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_label | ||
#: model_terms:ir.ui.view,arch_db:product_label.view_product_label_kanban | ||
msgid "" | ||
"<i class=\"fa fa-fw fa-list\" role=\"img\" aria-label=\"Products\" " | ||
"title=\"Products\"/>" | ||
msgstr "" | ||
"<i class=\"fa fa-fw fa-list\" role=\"img\" aria-label=\"Produits\" " | ||
"title=\"Produits\"/>" | ||
|
||
#. module: product_label | ||
#: model_terms:ir.ui.view,arch_db:product_label.view_product_label_form | ||
msgid "<span class=\"o_stat_text\">Products</span>" | ||
msgstr "<span class=\"o_stat_text\">Produits</span>" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__active | ||
msgid "Active" | ||
msgstr "Actif" | ||
|
||
#. module: product_label | ||
#: model_terms:ir.ui.view,arch_db:product_label.view_product_label_form | ||
msgid "Archived" | ||
msgstr "Archivé" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,help:product_label.field_product_label__display_on_report | ||
msgid "" | ||
"By checking this field, the label will be printed on all the official " | ||
"documents." | ||
msgstr "" | ||
"Si cette case est cochée, le label sera affichée sur tous les documents " | ||
"officiels." | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__code | ||
msgid "Code" | ||
msgstr "" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__company_id | ||
msgid "Company" | ||
msgstr "Société" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__create_uid | ||
msgid "Created by" | ||
msgstr "Créé par" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__create_date | ||
msgid "Created on" | ||
msgstr "Créé le" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__display_name | ||
msgid "Display Name" | ||
msgstr "Nom affiché" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__display_on_report | ||
msgid "Display on Reports" | ||
msgstr "Afficher sur les rapports" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__image | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__image_medium | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__image_small | ||
msgid "Image" | ||
msgstr "Image de taille moyenne" | ||
|
||
#. module: product_label | ||
#: model:product.template,name:product_label.infusion_girl_power_product_template | ||
msgid "Infusion La Girl Power (vrac)" | ||
msgstr "" | ||
|
||
#. module: product_label | ||
#: model_terms:ir.ui.view,arch_db:product_label.view_product_label_form | ||
msgid "Label Name" | ||
msgstr "Nom du label" | ||
|
||
#. module: product_label | ||
#: model:ir.actions.act_window,name:product_label.action_product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_product__label_ids | ||
#: model:ir.model.fields,field_description:product_label.field_product_template__label_ids | ||
#: model:ir.ui.menu,name:product_label.menu_product_label | ||
msgid "Labels" | ||
msgstr "" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label____last_update | ||
msgid "Last Modified on" | ||
msgstr "Dernière modification le" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__write_uid | ||
msgid "Last Updated by" | ||
msgstr "Dernière mise à jour par" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__write_date | ||
msgid "Last Updated on" | ||
msgstr "Dernière mise à jour le" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__name | ||
msgid "Name" | ||
msgstr "Nom" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__note | ||
msgid "Note" | ||
msgstr "" | ||
|
||
#. module: product_label | ||
#: model:ir.model,name:product_label.model_product_template | ||
msgid "Product" | ||
msgstr "Produit" | ||
|
||
#. module: product_label | ||
#: model:ir.model,name:product_label.model_product_label | ||
msgid "Product Labels" | ||
msgstr "Labels de produits" | ||
|
||
#. module: product_label | ||
#: model:res.groups,name:product_label.group_label_manager | ||
msgid "Product Labels Creation" | ||
msgstr "Création de labels de produits" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__product_qty | ||
msgid "Product Quantity" | ||
msgstr "Quantité de produits" | ||
|
||
#. module: product_label | ||
#: model:ir.model,name:product_label.model_product_product | ||
msgid "Product Variant" | ||
msgstr "Variante de produit" | ||
|
||
#. module: product_label | ||
#: model:ir.actions.act_window,name:product_label.action_product_label_2_product_product | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__product_ids | ||
#: model_terms:ir.ui.view,arch_db:product_label.view_product_label_kanban | ||
msgid "Products" | ||
msgstr "Produits" | ||
|
||
#. module: product_label | ||
#: model:ir.model.fields,field_description:product_label.field_product_label__website | ||
msgid "Website" | ||
msgstr "Site Web" | ||
|
||
#. module: product_label | ||
#: model_terms:ir.ui.view,arch_db:product_label.view_product_label_form | ||
msgid "e.g. Organic label" | ||
msgstr "ex : Agriculture biologique" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import product_product | ||
from . import product_template | ||
from . import product_label |
Oops, something went wrong.