mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_quant_expiration_date_tree: Migration to 16.0
This commit is contained in:
@@ -17,13 +17,13 @@ Stock Quant Expiration Date Tree
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree
|
||||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree
|
||||
:alt: OCA/stock-logistics-warehouse
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_expiration_date_tree
|
||||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_quant_expiration_date_tree
|
||||
: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/stock-logistics-warehouse&target_branch=13.0
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@@ -41,7 +41,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/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/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2016.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.
|
||||
|
||||
@@ -79,6 +79,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-Manuel Calero|
|
||||
|
||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree>`_ project on GitHub.
|
||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"name": "Stock Quant Expiration Date Tree",
|
||||
"summary": """
|
||||
Allows to display expirations dates on stock quant tree view""",
|
||||
"version": "13.0.1.0.0",
|
||||
"version": "16.0.1.0.0",
|
||||
"license": "AGPL-3",
|
||||
"author": "Xtendoo, Odoo Community Association (OCA)",
|
||||
"maintainers": ["Manuel Calero"],
|
||||
|
||||
@@ -4,13 +4,12 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-03-25 12:53+0000\n"
|
||||
"PO-Revision-Date: 2021-03-25 12:53+0000\n"
|
||||
"POT-Creation-Date: 2024-07-17 12:31+0000\n"
|
||||
"PO-Revision-Date: 2024-07-17 12:31+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
@@ -32,13 +31,13 @@ msgid ""
|
||||
"Date to determine the expired lots and serial numbers using the filter "
|
||||
"\"Expiration Alerts\"."
|
||||
msgstr ""
|
||||
"Fecha para determinar los lotes caducados y los números de serie mediante el "
|
||||
"filtro\"Alertas de caducidad\"."
|
||||
"Fecha para determinar los lotes caducados y los números de serie mediante el"
|
||||
" filtro\"Alertas de caducidad\"."
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date
|
||||
msgid "End of Life Date"
|
||||
msgstr "Fecha de Caducidad"
|
||||
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
|
||||
msgid "Expiration Date"
|
||||
msgstr "Fecha de caducidad"
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model,name:stock_quant_expiration_date_tree.model_stock_quant
|
||||
@@ -46,28 +45,11 @@ msgid "Quants"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date
|
||||
msgid "Removal Date"
|
||||
msgstr "Fecha de eliminación"
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
|
||||
msgid ""
|
||||
"This is the date on which the goods with this Serial Number may become "
|
||||
"dangerous and must not be consumed."
|
||||
msgstr ""
|
||||
"Ésta es la fecha en la que los bienes con este nº de serie se convierten en "
|
||||
"peligrosos, y no deben ser consumidos."
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date
|
||||
msgid ""
|
||||
"This is the date on which the goods with this Serial Number should be "
|
||||
"removed from the stock. This date will be used in FEFO removal strategy."
|
||||
msgstr ""
|
||||
"Es la fecha en la que las mercancías con este número de serie deben "
|
||||
"retirarse del stock. Esta fecha se utilizará en la estrategia de eliminación "
|
||||
"de la FIFO."
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date
|
||||
@@ -76,4 +58,4 @@ msgid ""
|
||||
"deteriorating, without being dangerous yet."
|
||||
msgstr ""
|
||||
"Ésta es la fecha en la que los bienes con este nº de serie empiezan a "
|
||||
"deteriorarse, pero sin ser peligroso aún."
|
||||
"deteriorarse, pero sin ser peligroso aún."
|
||||
@@ -4,8 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-07-17 12:33+0000\n"
|
||||
"PO-Revision-Date: 2024-07-17 12:33+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -31,8 +33,8 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date
|
||||
msgid "End of Life Date"
|
||||
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
|
||||
msgid "Expiration Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
@@ -41,27 +43,15 @@ msgid "Quants"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date
|
||||
msgid "Removal Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
|
||||
msgid ""
|
||||
"This is the date on which the goods with this Serial Number may become "
|
||||
"dangerous and must not be consumed."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date
|
||||
msgid ""
|
||||
"This is the date on which the goods with this Serial Number should be "
|
||||
"removed from the stock. This date will be used in FEFO removal strategy."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_quant_expiration_date_tree
|
||||
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date
|
||||
msgid ""
|
||||
"This is the date on which the goods with this Serial Number start "
|
||||
"deteriorating, without being dangerous yet."
|
||||
msgstr ""
|
||||
msgstr ""
|
||||
@@ -7,19 +7,12 @@ from odoo import fields, models
|
||||
class StockQuant(models.Model):
|
||||
_inherit = "stock.quant"
|
||||
|
||||
life_date = fields.Datetime(
|
||||
string="End of Life Date",
|
||||
related="lot_id.life_date",
|
||||
expiration_date = fields.Datetime(
|
||||
related="lot_id.expiration_date",
|
||||
)
|
||||
use_date = fields.Datetime(
|
||||
string="Best before Date",
|
||||
related="lot_id.use_date",
|
||||
)
|
||||
removal_date = fields.Datetime(
|
||||
string="Removal Date",
|
||||
related="lot_id.removal_date",
|
||||
)
|
||||
alert_date = fields.Datetime(
|
||||
string="Alert Date",
|
||||
related="lot_id.alert_date",
|
||||
)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
@@ -369,7 +368,7 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:79ed76834756e5524f01ec75609bf8d1b2f301a65fac6985238f6fc929c541c8
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_expiration_date_tree"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=13.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_quant_expiration_date_tree"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows to display expirations dates on stock quant tree view.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
@@ -388,7 +387,7 @@ ul.auto-toc {
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -414,7 +413,7 @@ mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/ManuelCalero"><img alt="Manuel Calero" src="https://github.com/ManuelCalero.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
<field name="inherit_id" ref="stock.view_stock_quant_tree_editable" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='product_uom_id']" position="after">
|
||||
<field name="life_date" optional="hide" />
|
||||
<field name="expiration_date" optional="hide" />
|
||||
<field name="use_date" optional="hide" />
|
||||
<field name="removal_date" optional="hide" />
|
||||
<field name="alert_date" optional="hide" />
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user