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

[10.0] add new module to manage seasonal products #262

Merged
merged 4 commits into from Mar 23, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
77 changes: 77 additions & 0 deletions product_life_period/README.rst
@@ -0,0 +1,77 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===================
Product life period
===================

This module add the possibility to define a life period on product.
At the end of period, the product is automatically set in state "End of life".

Installation
============

To install this module, you need to:

* Click on install button

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

To configure this module, you need to:

* Define a life period
* Assign a life period to a product

Usage
=====

To use this module, you need to:

* Go to Sale/Configuration/Product Life Period and define a life period
* Then go to a product and assign this life period on the product

Its state will evoluate thanks to a cron depending on the dates affected and the stock level.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/135/10.0

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 smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/product-attribute/issues/new?body=module:%20product_life_period%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

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

* Laetitia Gangloff <laetitia.gangloff@acsone.eu>
* Cedric Pigeon <cedric.pigeon@acsone.eu>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
3 changes: 3 additions & 0 deletions product_life_period/__init__.py
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

from . import models
23 changes: 23 additions & 0 deletions product_life_period/__manifest__.py
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# © 2015 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Product life period",
"version": "10.0.1.0.0",
'author': "Acsone SA/NV, Odoo Community Association (OCA)",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
"depends": [
"product_state",
"sale"
],
"data": [
"views/product_life_period_views.xml",
"views/product_template.xml",
"security/ir.model.access.csv",
],
"license": "AGPL-3",
"installable": True,
"application": False,
}
128 changes: 128 additions & 0 deletions product_life_period/i18n/fr.po
@@ -0,0 +1,128 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_life_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-05 16:01+0000\n"
"PO-Revision-Date: 2017-05-05 16:01+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_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_active
msgid "Active"
msgstr "Actif"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_create_uid
msgid "Created by"
msgstr "Créé par"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_create_date
msgid "Created on"
msgstr "Créé le"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_end_date
msgid "End date"
msgstr "Date de fin"

#. module: product_life_period
#: model:ir.ui.view,arch_db:product_life_period.product_template_search_view_inherit_product_life_period
msgid "End of Life Period"
msgstr "Fin de la période de vie"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_id
msgid "ID"
msgstr ""

#. module: product_life_period
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_search
msgid "Inactive"
msgstr "Inactif"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period___last_update
msgid "Last Modified on"
msgstr "Dernière Modification le"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_write_date
msgid "Last Updated on"
msgstr "Dernière mise à jour le"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_product_product_life_period_id
#: model:ir.model.fields,field_description:product_life_period.field_product_template_product_life_period_id
#: model:ir.ui.view,arch_db:product_life_period.product_template_search_view_inherit_product_life_period
msgid "Life Period"
msgstr "Période de vie"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_name
msgid "Name"
msgstr "Nom"

#. module: product_life_period
#: model:ir.actions.act_window,name:product_life_period.action_open_life_period_products
#: model:ir.actions.act_window,name:product_life_period.product_life_period_action
#: model:ir.ui.menu,name:product_life_period.product_life_period_menu
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_form
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_search
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_tree
msgid "Product Life Period"
msgstr "Période de vie de l'article"

#. module: product_life_period
#: model:ir.model,name:product_life_period.model_product_template
msgid "Product Template"
msgstr "Modèle d'article"

#. module: product_life_period
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_form
msgid "Products"
msgstr "Articles"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_products_count
msgid "Products count"
msgstr "Nombre de produits"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_product_ids
msgid "Seasonal Products"
msgstr "Produits saisonniers"

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_start_date
msgid "Start date"
msgstr "Date de début"

#. module: product_life_period
#: constraint:product.life.period:0
msgid "Start date must be before End date"
msgstr "La date de début doit être avant la date de fin"

#. module: product_life_period
#: model:ir.model,name:product_life_period.model_product_life_period
msgid "product.life.period"
msgstr ""
128 changes: 128 additions & 0 deletions product_life_period/i18n/product_life_period.pot
@@ -0,0 +1,128 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_life_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-05 16:01+0000\n"
"PO-Revision-Date: 2017-05-05 16:01+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_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_active
msgid "Active"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_create_uid
msgid "Created by"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_create_date
msgid "Created on"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_display_name
msgid "Display Name"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_end_date
msgid "End date"
msgstr ""

#. module: product_life_period
#: model:ir.ui.view,arch_db:product_life_period.product_template_search_view_inherit_product_life_period
msgid "End of Life Period"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_id
msgid "ID"
msgstr ""

#. module: product_life_period
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_search
msgid "Inactive"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period___last_update
msgid "Last Modified on"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_write_uid
msgid "Last Updated by"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_write_date
msgid "Last Updated on"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_product_product_life_period_id
#: model:ir.model.fields,field_description:product_life_period.field_product_template_product_life_period_id
#: model:ir.ui.view,arch_db:product_life_period.product_template_search_view_inherit_product_life_period
msgid "Life Period"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_name
msgid "Name"
msgstr ""

#. module: product_life_period
#: model:ir.actions.act_window,name:product_life_period.action_open_life_period_products
#: model:ir.actions.act_window,name:product_life_period.product_life_period_action
#: model:ir.ui.menu,name:product_life_period.product_life_period_menu
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_form
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_search
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_tree
msgid "Product Life Period"
msgstr ""

#. module: product_life_period
#: model:ir.model,name:product_life_period.model_product_template
msgid "Product Template"
msgstr ""

#. module: product_life_period
#: model:ir.ui.view,arch_db:product_life_period.product_life_period_view_form
msgid "Products"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_products_count
msgid "Products count"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_product_ids
msgid "Seasonal Products"
msgstr ""

#. module: product_life_period
#: model:ir.model.fields,field_description:product_life_period.field_product_life_period_start_date
msgid "Start date"
msgstr ""

#. module: product_life_period
#: constraint:product.life.period:0
msgid "Start date must be before End date"
msgstr ""

#. module: product_life_period
#: model:ir.model,name:product_life_period.model_product_life_period
msgid "product.life.period"
msgstr ""
2 changes: 2 additions & 0 deletions product_life_period/models/__init__.py
@@ -0,0 +1,2 @@
from . import product_life_period
from . import product_template