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
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e4d16bd
[10.0] add new module to manage seasonal products
Cedric-Pigeon b58588a
[ADD] add setup for product_life_period
Cedric-Pigeon f33f71e
[CHG] improve product view
Cedric-Pigeon 7747727
[10.0][IMP] product_life_period: Some improvements
rousseldenis File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,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. |
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 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
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,22 @@ | ||
# -*- 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": "http://www.acsone.eu", | ||
"depends": [ | ||
"product_state", | ||
"sale" | ||
], | ||
"data": [ | ||
"views/product_life_period_views.xml", | ||
"security/ir.model.access.csv", | ||
], | ||
"license": "AGPL-3", | ||
"installable": True, | ||
"application": False, | ||
} |
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,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 "" |
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,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 "" |
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 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import product_life_period |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this key