Skip to content

Commit

Permalink
[ADD] stock_release_channel_depot
Browse files Browse the repository at this point in the history
  • Loading branch information
santostelmo committed Jul 4, 2024
1 parent e2b8204 commit a7b1f6d
Show file tree
Hide file tree
Showing 15 changed files with 643 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_release_channel_depot/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
74 changes: 74 additions & 0 deletions stock_release_channel_depot/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
===========================
Stock Release Channel Depot
===========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fwms-lightgray.png?logo=github
:target: https://github.com/OCA/wms/tree/16.0/stock_release_channel_depot
:alt: OCA/wms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-stock_release_channel_depot
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/wms&target_branch=16.0
:alt: Try me on Runboat

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

Add partner depot to stock release channel

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/wms/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/wms/issues/new?body=module:%20stock_release_channel_depot%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.

Credits
=======

Authors
~~~~~~~

* Camptocamp

Contributors
~~~~~~~~~~~~

* Telmo Santos <[email protected]>
* Jacques-Etienne Baudoux <[email protected]>

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.

This module is part of the `OCA/wms <https://github.com/OCA/wms/tree/16.0/stock_release_channel_depot>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_release_channel_depot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions stock_release_channel_depot/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Stock Release Channel Depot",
"summary": """This module allows users to add partner depot to stock release channel.""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/wms",
"depends": ["stock_depot", "stock_release_channel"],
"data": [
"views/stock_release_channel_views.xml",
"views/stock_picking.xml",
],
}
22 changes: 22 additions & 0 deletions stock_release_channel_depot/l18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_release_channel_depot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-04 06:13+0000\n"
"PO-Revision-Date: 2024-07-04 06:13+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: stock_release_channel_depot
#: model:ir.model.fields,field_description:stock_release_channel_depot.field_stock_picking__depot_id
#: model:ir.model.fields,field_description:stock_release_channel_depot.field_stock_release_channel__depot_id
msgid "Depot"
msgstr "Dépôt"
32 changes: 32 additions & 0 deletions stock_release_channel_depot/l18n/stock_release_channel_depot.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_release_channel_depot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-04 06:13+0000\n"
"PO-Revision-Date: 2024-07-04 06:13+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: stock_release_channel_depot
#: model:ir.model.fields,field_description:stock_release_channel_depot.field_stock_picking__depot_id
#: model:ir.model.fields,field_description:stock_release_channel_depot.field_stock_release_channel__depot_id
msgid "Depot"
msgstr ""

#. module: stock_release_channel_depot
#: model:ir.model,name:stock_release_channel_depot.model_stock_picking
msgid "Stock Picking"
msgstr ""

#. module: stock_release_channel_depot
#: model:ir.model,name:stock_release_channel_depot.model_stock_release_channel
msgid "Stock Release Channels"
msgstr ""
2 changes: 2 additions & 0 deletions stock_release_channel_depot/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import release_channel
from . import stock_picking
10 changes: 10 additions & 0 deletions stock_release_channel_depot/models/release_channel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class StockReleaseChannel(models.Model):
_inherit = "stock.release.channel"

depot_id = fields.Many2one("stock.depot")
10 changes: 10 additions & 0 deletions stock_release_channel_depot/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class StockPicking(models.Model):
_inherit = "stock.picking"

depot_id = fields.Many2one(related="release_channel_id.depot_id", store=True)
2 changes: 2 additions & 0 deletions stock_release_channel_depot/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Telmo Santos <[email protected]>
* Jacques-Etienne Baudoux <[email protected]>
1 change: 1 addition & 0 deletions stock_release_channel_depot/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add partner depot to stock release channel
Loading

0 comments on commit a7b1f6d

Please sign in to comment.