Skip to content

Commit ddba975

Browse files
committed
[ADD] sale_section_stock_move
1 parent 2e1edbd commit ddba975

File tree

13 files changed

+833
-0
lines changed

13 files changed

+833
-0
lines changed

sale_section_stock_move/README.rst

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
=======================
6+
sale_section_stock_move
7+
=======================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:1a15957a7c317b5ac5c3812ac5ec0227e3470b1cacc0023c2c642ac5178c10a9
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
24+
:target: https://github.com/OCA/sale-workflow/tree/19.0/sale_section_stock_move
25+
:alt: OCA/sale-workflow
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/sale-workflow-19-0/sale-workflow-19-0-sale_section_stock_move
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=19.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
This module propagates sale order section information to stock
36+
operations.
37+
38+
It adds a Sale Section on stock moves from the related sale order line
39+
section, and exposes the section name on stock moves and stock move
40+
lines.
41+
42+
The section information is available in stock move and stock move line
43+
list views, search filters, group by options, and in the Operations tab
44+
of stock pickings.
45+
46+
**Table of contents**
47+
48+
.. contents::
49+
:local:
50+
51+
Bug Tracker
52+
===========
53+
54+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
55+
In case of trouble, please check there if your issue has already been reported.
56+
If you spotted it first, help us to smash it by providing a detailed and welcomed
57+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_section_stock_move%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
59+
Do not contact contributors directly about support or help with technical issues.
60+
61+
Credits
62+
=======
63+
64+
Authors
65+
-------
66+
67+
* Camptocamp
68+
69+
Maintainers
70+
-----------
71+
72+
This module is maintained by the OCA.
73+
74+
.. image:: https://odoo-community.org/logo.png
75+
:alt: Odoo Community Association
76+
:target: https://odoo-community.org
77+
78+
OCA, or the Odoo Community Association, is a nonprofit organization whose
79+
mission is to support the collaborative development of Odoo features and
80+
promote its widespread use.
81+
82+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/19.0/sale_section_stock_move>`_ project on GitHub.
83+
84+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2026 Camptocamp SA
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
5+
{
6+
"name": "sale_section_stock_move",
7+
"summary": "Sale section on stock moves",
8+
"version": "19.0.1.0.0",
9+
"category": "Sale",
10+
"website": "https://github.com/OCA/sale-workflow",
11+
"author": "Camptocamp, Odoo Community Association (OCA)",
12+
"license": "AGPL-3",
13+
"application": False,
14+
"installable": True,
15+
"depends": [
16+
"sale_stock",
17+
"sale_order_line_section",
18+
],
19+
"data": [
20+
"views/stock_picking_views.xml",
21+
],
22+
}

sale_section_stock_move/i18n/fr.po

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * sale_section_stock_move
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 19.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2026-04-08 11:50+0000\n"
10+
"PO-Revision-Date: 2026-04-08 11:50+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: fr\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
18+
19+
#. module: sale_section_stock_move
20+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__display_name
21+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__display_name
22+
msgid "Display Name"
23+
msgstr "Nom Affiche"
24+
25+
#. module: sale_section_stock_move
26+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__id
27+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__id
28+
msgid "ID"
29+
msgstr "ID"
30+
31+
#. module: sale_section_stock_move
32+
#: model:ir.model,name:sale_section_stock_move.model_stock_move_line
33+
msgid "Product Moves (Stock Move Line)"
34+
msgstr "Mouvements Produit (Ligne Mouvement Stock)"
35+
36+
#. module: sale_section_stock_move
37+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.stock_move_line_view_search
38+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.view_move_search
39+
msgid "Sale Order"
40+
msgstr "Commande Client"
41+
42+
#. module: sale_section_stock_move
43+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__sale_section_id
44+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__sale_section_id
45+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.stock_move_line_view_search
46+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.view_move_search
47+
msgid "Sale Section"
48+
msgstr "Section Vente"
49+
50+
#. module: sale_section_stock_move
51+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.stock_move_line_view_search
52+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.view_move_search
53+
msgid "Section"
54+
msgstr "Section"
55+
56+
#. module: sale_section_stock_move
57+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__sale_section_name
58+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__sale_section_name
59+
msgid "Section Name"
60+
msgstr "Nom Section"
61+
62+
#. module: sale_section_stock_move
63+
#: model:ir.model,name:sale_section_stock_move.model_stock_move
64+
msgid "Stock Move"
65+
msgstr "Mouvement Stock"
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * sale_section_stock_move
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 19.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2026-04-08 11:50+0000\n"
10+
"PO-Revision-Date: 2026-04-08 11:50+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: sale_section_stock_move
19+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__display_name
20+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__display_name
21+
msgid "Display Name"
22+
msgstr ""
23+
24+
#. module: sale_section_stock_move
25+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__id
26+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__id
27+
msgid "ID"
28+
msgstr ""
29+
30+
#. module: sale_section_stock_move
31+
#: model:ir.model,name:sale_section_stock_move.model_stock_move_line
32+
msgid "Product Moves (Stock Move Line)"
33+
msgstr ""
34+
35+
#. module: sale_section_stock_move
36+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.stock_move_line_view_search
37+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.view_move_search
38+
msgid "Sale Order"
39+
msgstr ""
40+
41+
#. module: sale_section_stock_move
42+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__sale_section_id
43+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__sale_section_id
44+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.stock_move_line_view_search
45+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.view_move_search
46+
msgid "Sale Section"
47+
msgstr ""
48+
49+
#. module: sale_section_stock_move
50+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.stock_move_line_view_search
51+
#: model_terms:ir.ui.view,arch_db:sale_section_stock_move.view_move_search
52+
msgid "Section"
53+
msgstr ""
54+
55+
#. module: sale_section_stock_move
56+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move__sale_section_name
57+
#: model:ir.model.fields,field_description:sale_section_stock_move.field_stock_move_line__sale_section_name
58+
msgid "Section Name"
59+
msgstr ""
60+
61+
#. module: sale_section_stock_move
62+
#: model:ir.model,name:sale_section_stock_move.model_stock_move
63+
msgid "Stock Move"
64+
msgstr ""
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import stock_move
2+
from . import stock_move_line
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2026 Camptocamp SA
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
from odoo import fields, models
5+
6+
7+
class StockMove(models.Model):
8+
_inherit = "stock.move"
9+
10+
sale_section_id = fields.Many2one(
11+
comodel_name="sale.order.line",
12+
string="Sale Section",
13+
related="sale_line_id.section_id",
14+
store=True,
15+
readonly=True,
16+
index="btree_not_null",
17+
)
18+
sale_section_name = fields.Text(
19+
string="Section Name",
20+
related="sale_section_id.name",
21+
store=True,
22+
readonly=True,
23+
)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2026 Camptocamp SA
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
from odoo import fields, models
5+
6+
7+
class StockMoveLine(models.Model):
8+
_inherit = "stock.move.line"
9+
10+
sale_section_id = fields.Many2one(
11+
comodel_name="sale.order.line",
12+
string="Sale Section",
13+
related="move_id.sale_section_id",
14+
store=True,
15+
readonly=True,
16+
index="btree_not_null",
17+
)
18+
sale_section_name = fields.Text(
19+
string="Section Name",
20+
related="sale_section_id.name",
21+
store=True,
22+
readonly=True,
23+
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Telmo Santos <telmo.santos@camptocamp.com>

0 commit comments

Comments
 (0)