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

[ADD] stock_depot #131

Merged
merged 1 commit into from
Oct 8, 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
1 change: 1 addition & 0 deletions setup/stock_depot/odoo/addons/stock_depot
6 changes: 6 additions & 0 deletions setup/stock_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,
)
65 changes: 65 additions & 0 deletions stock_depot/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
===========
Stock 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-camptocamp%2Fstock--logistics--transport-lightgray.png?logo=github
:target: https://github.com/camptocamp/stock-logistics-transport/tree/16.0/stock_depot
:alt: camptocamp/stock-logistics-transport

|badge1| |badge2| |badge3|

Manage partners stock depots.
jbaudoux marked this conversation as resolved.
Show resolved Hide resolved

Allow to define the transporter depot for that partner. When distributing parcels to customers,
a transporter may bring the parcels to a local depot for then organizing a local distribution around the depot.
This base module only provides the depot model on the partner.

This module is the base module to define `Stock Depot` model. It should be extended to manage stock flows

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/camptocamp/stock-logistics-transport/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/camptocamp/stock-logistics-transport/issues/new?body=module:%20stock_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
* BCIM

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

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

Maintainers
~~~~~~~~~~~

This module is part of the `camptocamp/stock-logistics-transport <https://github.com/camptocamp/stock-logistics-transport/tree/16.0/stock_depot>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions stock_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_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 Depot",
"summary": """This module allows users to manage partners stock depots.""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-transport",
"depends": ["stock"],
"data": [
"security/ir.model.access.csv",
"views/stock_depot.xml",
],
}
1 change: 1 addition & 0 deletions stock_depot/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_depot
12 changes: 12 additions & 0 deletions stock_depot/models/stock_depot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class StockDepot(models.Model):
_name = "stock.depot"
_description = "Partner depot"

name = fields.Char(required=True)
partner_id = fields.Many2one("res.partner", required=True)
2 changes: 2 additions & 0 deletions stock_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]>
7 changes: 7 additions & 0 deletions stock_depot/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Manage partners stock depots.
jbaudoux marked this conversation as resolved.
Show resolved Hide resolved

Allow to define the transporter depot for that partner. When distributing parcels to customers,
a transporter may bring the parcels to a local depot for then organizing a local distribution around the depot.
This base module only provides the depot model on the partner.

This module is the base module to define `Stock Depot` model. It should be extended to manage stock flows
3 changes: 3 additions & 0 deletions stock_depot/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_stock_depot_manager,stock.depot.manager,model_stock_depot,stock.group_stock_manager,1,1,1,1
access_stock_depot_user,stock.depot.user,model_stock_depot,base.group_user,1,0,0,0
Loading
Loading