Skip to content

Commit 8c05a5d

Browse files
author
shopinvader-git-bot
committed
Merge PR #1610 into 16.0
Signed-off-by sebastienbeau
2 parents b39caed + 73bc22a commit 8c05a5d

25 files changed

Lines changed: 1269 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../shopinvader_api_warehouse
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
=========================
2+
Shopinvader API Warehouse
3+
=========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:f7841c7616fedf11e69e6ee16e00ec39608fac4748c9f565179e9d638326df0c
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github
20+
:target: https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_api_warehouse
21+
:alt: shopinvader/odoo-shopinvader
22+
23+
|badge1| |badge2| |badge3|
24+
25+
This Odoo module extends the Shopinvader API to add warehouse management
26+
for carts (and more generally in sales). It also saves the default
27+
warehouse per customer and exposes warehouses informations.
28+
29+
Warehouses are meant to be physical stores in this context.
30+
31+
**Table of contents**
32+
33+
.. contents::
34+
:local:
35+
36+
Bug Tracker
37+
===========
38+
39+
Bugs are tracked on `GitHub Issues <https://github.com/shopinvader/odoo-shopinvader/issues>`_.
40+
In case of trouble, please check there if your issue has already been reported.
41+
If you spotted it first, help us to smash it by providing a detailed and welcomed
42+
`feedback <https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_api_warehouse%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
43+
44+
Do not contact contributors directly about support or help with technical issues.
45+
46+
Credits
47+
=======
48+
49+
Authors
50+
-------
51+
52+
* Akretion
53+
54+
Contributors
55+
------------
56+
57+
- Florian Mounier florian.mounier@akretion.com
58+
59+
Maintainers
60+
-----------
61+
62+
.. |maintainer-paradoxxxzero| image:: https://github.com/paradoxxxzero.png?size=40px
63+
:target: https://github.com/paradoxxxzero
64+
:alt: paradoxxxzero
65+
66+
Current maintainer:
67+
68+
|maintainer-paradoxxxzero|
69+
70+
This module is part of the `shopinvader/odoo-shopinvader <https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_api_warehouse>`_ project on GitHub.
71+
72+
You are welcome to contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from . import models
2+
from . import schemas
3+
from . import routers
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2025 Akretion (http://www.akretion.com).
2+
# @author Florian Mounier <florian.mounier@akretion.com>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "Shopinvader API Warehouse",
7+
"version": "16.0.1.0.0",
8+
"author": "Akretion, Odoo Community Association (OCA)",
9+
"summary": "Adds sales warehouse information to Shopinvader API",
10+
"category": "Uncategorized",
11+
"website": "https://github.com/shopinvader/odoo-shopinvader",
12+
"depends": [
13+
"stock",
14+
"shopinvader_api_customer",
15+
"shopinvader_api_cart",
16+
],
17+
"data": [
18+
"security/res_groups.xml",
19+
"security/ir_model_access.xml",
20+
],
21+
"maintainers": ["paradoxxxzero"],
22+
"demo": [],
23+
"installable": True,
24+
"license": "AGPL-3",
25+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import res_partner
2+
from . import sale_order
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2025 Akretion (http://www.akretion.com).
2+
# @author Florian Mounier <florian.mounier@akretion.com>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
from odoo import fields, models
5+
6+
7+
class ResPartner(models.Model):
8+
_inherit = "res.partner"
9+
10+
shopinvader_default_warehouse_id = fields.Many2one(
11+
"stock.warehouse",
12+
help="Default warehouse used for sales orders created for this "
13+
"customer in Shopinvader.",
14+
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2025 Akretion (http://www.akretion.com).
2+
# @author Florian Mounier <florian.mounier@akretion.com>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
6+
from odoo import models
7+
8+
9+
class SaleOrder(models.Model):
10+
_inherit = "sale.order"
11+
12+
def _confirm_cart(self):
13+
rv = super()._confirm_cart()
14+
self.partner_id.shopinvader_default_warehouse_id = self.warehouse_id
15+
return rv
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Florian Mounier <florian.mounier@akretion.com>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This Odoo module extends the Shopinvader API to add warehouse management for carts
2+
(and more generally in sales).
3+
It also saves the default warehouse per customer and exposes warehouses informations.
4+
5+
Warehouses are meant to be physical stores in this context.

0 commit comments

Comments
 (0)