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

[16.0][ADD] stock_release_channel_show_volume/weight #844

Merged
merged 8 commits into from
Mar 19, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions setup/stock_release_channel_show_volume/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,
)
6 changes: 6 additions & 0 deletions setup/stock_release_channel_show_weight/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,
)
8 changes: 6 additions & 2 deletions stock_release_channel/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Contributors
* Sébastien Alix <[email protected]>
* Jacques-Etienne Baudoux <[email protected]>
* Laurent Mignon <[email protected]>
* Michael Tietz (MT Software) <[email protected]>

Design
~~~~~~
Expand Down Expand Up @@ -145,10 +146,13 @@ promote its widespread use.
.. |maintainer-sebalix| image:: https://github.com/sebalix.png?size=40px
:target: https://github.com/sebalix
:alt: sebalix
.. |maintainer-mt-software-de| image:: https://github.com/mt-software-de.png?size=40px
:target: https://github.com/mt-software-de
:alt: mt-software-de

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sebalix|
|maintainer-sebalix| |maintainer-mt-software-de|

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

Expand Down
6 changes: 4 additions & 2 deletions stock_release_channel/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2020 Camptocamp
# Copyright 2023 Michael Tietz (MT Software) <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
Expand All @@ -7,8 +8,8 @@
"version": "16.0.2.9.0",
"development_status": "Beta",
"license": "AGPL-3",
"author": "Camptocamp, ACSONE SA/NV,Odoo Community Association (OCA)",
"maintainers": ["sebalix"],
"author": "Camptocamp, BCIM, ACSONE SA/NV, Odoo Community Association (OCA)",
"maintainers": ["sebalix", "jbaudoux", "mt-software-de"],
"website": "https://github.com/OCA/wms",
"depends": [
"web",
Expand All @@ -19,6 +20,7 @@
"views/res_partner.xml",
"views/stock_release_channel_views.xml",
"views/stock_picking_views.xml",
"views/res_config_settings.xml",
"data/queue_job_data.xml",
"data/ir_cron_data.xml",
"security/stock_release_channel.xml",
Expand Down
2 changes: 2 additions & 0 deletions stock_release_channel/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from . import stock_move
from . import stock_picking
from . import stock_release_channel
from . import res_company
from . import res_config_settings
from . import res_partner
15 changes: 15 additions & 0 deletions stock_release_channel/models/res_company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2024 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

from odoo import fields, models


class ResCompany(models.Model):
_inherit = "res.company"

release_channel_show_last_picking_done = fields.Boolean(
string="Channels dashboard - Show last delivery done",
help="In release channels dashboard, add link to last done picking "
"and show transfer date",
default=True,
)
13 changes: 13 additions & 0 deletions stock_release_channel/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

release_channel_show_last_picking_done = fields.Boolean(
related="company_id.release_channel_show_last_picking_done",
readonly=False,
)
Loading
Loading