Skip to content

Commit 8e5d42c

Browse files
[ADD] foodhub_picking_operations
1 parent 175dcd8 commit 8e5d42c

File tree

11 files changed

+541
-0
lines changed

11 files changed

+541
-0
lines changed

foodhub_picking_operations/README.rst

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
==========================
2+
Foodhub Picking Operations
3+
==========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:7d681b62ded7841560c15427c9d8b30b35a514b6c31f2c2b36c47419e1e1120c
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-coopiteasy%2Fcie--custom-lightgray.png?logo=github
20+
:target: https://github.com/coopiteasy/cie-custom/tree/16.0/foodhub_picking_operations
21+
:alt: coopiteasy/cie-custom
22+
23+
|badge1| |badge2| |badge3|
24+
25+
Sort picking operations by internal category and internal reference.
26+
27+
Context : Increase the efficiency of picking by sorting products by location and priority. We cannot use "locations" because some products are of type Consumable and should stay this way : these are products that are received and sent on the same date, we don't want to manage stock on these products.
28+
So instead we sort by internal categories and by reference.
29+
30+
**Table of contents**
31+
32+
.. contents::
33+
:local:
34+
35+
Bug Tracker
36+
===========
37+
38+
Bugs are tracked on `GitHub Issues <https://github.com/coopiteasy/cie-custom/issues>`_.
39+
In case of trouble, please check there if your issue has already been reported.
40+
If you spotted it first, help us to smash it by providing a detailed and welcomed
41+
`feedback <https://github.com/coopiteasy/cie-custom/issues/new?body=module:%20foodhub_picking_operations%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
42+
43+
Do not contact contributors directly about support or help with technical issues.
44+
45+
Credits
46+
=======
47+
48+
Authors
49+
~~~~~~~
50+
51+
* Coop IT Easy SC
52+
53+
Maintainers
54+
~~~~~~~~~~~
55+
56+
This module is part of the `coopiteasy/cie-custom <https://github.com/coopiteasy/cie-custom/tree/16.0/foodhub_picking_operations>`_ project on GitHub.
57+
58+
You are welcome to contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Foodhub Picking Operations",
3+
"version": "16.0.1.0.0",
4+
"summary": """
5+
Foodhub customizations : sort picking operations by category and reference""",
6+
"author": "Coop IT Easy SC",
7+
"website": "https://coopiteasy.be",
8+
"license": "AGPL-3",
9+
"category": "Stock",
10+
"depends": [
11+
"stock",
12+
],
13+
"data": ["reports/report_picking_operations.xml"],
14+
}
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2020 Coop IT Easy SCRL fs
2+
# Robin Keunen <[email protected]>
3+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
4+
5+
from odoo import fields, models
6+
7+
8+
class StockMove(models.Model):
9+
_inherit = "stock.move"
10+
_order = "product_category,product_default_code"
11+
12+
product_category = fields.Many2one(related="product_id.categ_id", store=True)
13+
product_default_code = fields.Char(related="product_id.default_code", store=True)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2020 Coop IT Easy SCRL fs
2+
# Robin Keunen <[email protected]>
3+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
4+
5+
from odoo import fields, models
6+
7+
8+
class StockMove(models.Model):
9+
_inherit = "stock.move.line"
10+
_order = "product_category_name,product_default_code"
11+
12+
product_default_code = fields.Char(related="product_id.default_code", store=True)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Sort picking operations by internal category and internal reference.
2+
3+
Context : Increase the efficiency of picking by sorting products by location and priority. We cannot use "locations" because some products are of type Consumable and should stay this way : these are products that are received and sent on the same date, we don't want to manage stock on these products.
4+
So instead we sort by internal categories and by reference.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<template id="report_picking" inherit_id="stock.report_picking">
4+
<xpath expr="//th[@name='th_product']" position="before">
5+
<th>
6+
<strong>Category</strong>
7+
</th>
8+
</xpath>
9+
10+
<xpath
11+
expr="//span[@t-field='ml.product_id.display_name']/.."
12+
position="before"
13+
>
14+
<td>
15+
<span t-field="ml.product_category_name" />
16+
</td>
17+
</xpath>
18+
19+
</template>
20+
</odoo>

0 commit comments

Comments
 (0)