odoo-addon-stock-restrict-lot 15.0.0.0.2.3__py3-none-any.whl → 15.0.0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of odoo-addon-stock-restrict-lot might be problematic. Click here for more details.

@@ -7,15 +7,15 @@ Stock Restrict Lot
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:dc81e364217eb8406891ebc2d2aea05568b87b47f33c3bfc43191450f42e936b
10
+ !! source digest: sha256:db70668c9cb8c7c38a3e92c3ae05c3a7a241a2a31fe86fff519da42d98071009
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14
14
  :target: https://odoo-community.org/page/development-status
15
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
16
+ .. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17
+ :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18
+ :alt: License: LGPL-3
19
19
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
20
20
  :target: https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_restrict_lot
21
21
  :alt: OCA/stock-logistics-workflow
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "Stock Restrict Lot",
3
3
  "summary": "Base module that add back the concept of restrict lot on stock move",
4
- "version": "15.0.0.0.2",
4
+ "version": "15.0.0.1.0",
5
5
  "category": "Warehouse Management",
6
6
  "website": "https://github.com/OCA/stock-logistics-workflow",
7
7
  "author": "Akretion, Odoo Community Association (OCA)",
8
8
  "maintainers": ["florian-dacosta"],
9
- "license": "AGPL-3",
9
+ "license": "LGPL-3",
10
10
  "installable": True,
11
11
  "depends": ["stock"],
12
12
  }
@@ -0,0 +1,22 @@
1
+ # Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
2
+ # License LGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
+ from odoo import models
4
+
5
+
6
+ class ProductProduct(models.Model):
7
+ _inherit = "product.product"
8
+
9
+ # To be able to get the outgoing and incoming qty by the restrict_lot_id
10
+ # the odoo standard method _compute_quantities_dict is hookable
11
+ # therefore the domain is already here changed
12
+ def _get_domain_locations(self):
13
+ res = super()._get_domain_locations()
14
+ lot_id = self.env.context.get("lot_id")
15
+ if not lot_id:
16
+ return res
17
+
18
+ domain_quant_loc, domain_move_in_loc, domain_move_out_loc = res
19
+ lot_domain = [("restrict_lot_id", "=", lot_id)]
20
+ domain_move_in_loc += lot_domain
21
+ domain_move_out_loc += lot_domain
22
+ return domain_quant_loc, domain_move_in_loc, domain_move_out_loc
@@ -1,4 +1,3 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
3
  <head>
@@ -9,10 +8,11 @@
9
8
 
10
9
  /*
11
10
  :Author: David Goodger (goodger@python.org)
12
- :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
13
12
  :Copyright: This stylesheet has been placed in the public domain.
14
13
 
15
14
  Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
16
16
 
17
17
  See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
18
18
  customize this style sheet.
@@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
275
275
  margin-left: 2em ;
276
276
  margin-right: 2em }
277
277
 
278
- pre.code .ln { color: grey; } /* line numbers */
278
+ pre.code .ln { color: gray; } /* line numbers */
279
279
  pre.code, code { background-color: #eeeeee }
280
280
  pre.code .comment, code .comment { color: #5C6576 }
281
281
  pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@ span.option {
301
301
  span.pre {
302
302
  white-space: pre }
303
303
 
304
- span.problematic {
304
+ span.problematic, pre.problematic {
305
305
  color: red }
306
306
 
307
307
  span.section-subtitle {
@@ -367,9 +367,9 @@ ul.auto-toc {
367
367
  !! This file is generated by oca-gen-addon-readme !!
368
368
  !! changes will be overwritten. !!
369
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:dc81e364217eb8406891ebc2d2aea05568b87b47f33c3bfc43191450f42e936b
370
+ !! source digest: sha256:db70668c9cb8c7c38a3e92c3ae05c3a7a241a2a31fe86fff519da42d98071009
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
- <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_restrict_lot"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_restrict_lot"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
+ <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_restrict_lot"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_restrict_lot"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p>This module add a field to restrict a stock move to a specific lot.
374
374
  It propagates it between chained moves. A move with a restrict lot will only be able to
375
375
  reserve or transfer products with the specified lot.
@@ -412,7 +412,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
412
412
  <div class="section" id="maintainers">
413
413
  <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
414
414
  <p>This module is maintained by the OCA.</p>
415
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
415
+ <a class="reference external image-reference" href="https://odoo-community.org">
416
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
417
+ </a>
416
418
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
417
419
  mission is to support the collaborative development of Odoo features and
418
420
  promote its widespread use.</p>
@@ -1,18 +1,17 @@
1
1
  Metadata-Version: 2.1
2
- Name: odoo-addon-stock-restrict-lot
3
- Version: 15.0.0.0.2.3
2
+ Name: odoo-addon-stock_restrict_lot
3
+ Version: 15.0.0.1.0
4
4
  Summary: Base module that add back the concept of restrict lot on stock move
5
5
  Home-page: https://github.com/OCA/stock-logistics-workflow
6
6
  Author: Akretion, Odoo Community Association (OCA)
7
7
  Author-email: support@odoo-community.org
8
- License: AGPL-3
9
- Platform: UNKNOWN
8
+ License: LGPL-3
10
9
  Classifier: Programming Language :: Python
11
10
  Classifier: Framework :: Odoo
12
11
  Classifier: Framework :: Odoo :: 15.0
13
- Classifier: License :: OSI Approved :: GNU Affero General Public License v3
12
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
14
13
  Requires-Python: >=3.8
15
- Requires-Dist: odoo <15.1dev,>=15.0a
14
+ Requires-Dist: odoo<15.1dev,>=15.0a
16
15
 
17
16
  ==================
18
17
  Stock Restrict Lot
@@ -23,15 +22,15 @@ Stock Restrict Lot
23
22
  !! This file is generated by oca-gen-addon-readme !!
24
23
  !! changes will be overwritten. !!
25
24
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
- !! source digest: sha256:dc81e364217eb8406891ebc2d2aea05568b87b47f33c3bfc43191450f42e936b
25
+ !! source digest: sha256:db70668c9cb8c7c38a3e92c3ae05c3a7a241a2a31fe86fff519da42d98071009
27
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
27
 
29
28
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
30
29
  :target: https://odoo-community.org/page/development-status
31
30
  :alt: Beta
32
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
33
- :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
34
- :alt: License: AGPL-3
31
+ .. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
32
+ :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
33
+ :alt: License: LGPL-3
35
34
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
36
35
  :target: https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_restrict_lot
37
36
  :alt: OCA/stock-logistics-workflow
@@ -102,5 +101,3 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
102
101
  This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_restrict_lot>`_ project on GitHub.
103
102
 
104
103
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
105
-
106
-
@@ -1,18 +1,19 @@
1
- odoo/addons/stock_restrict_lot/README.rst,sha256=YpT8eaw1ZxlYtgWipC6BtExz0GwAVpSW--vDpV-c1Ok,3494
1
+ odoo/addons/stock_restrict_lot/README.rst,sha256=snQeVHpv02Oh8CM2H1bnn91d4u6twI_I5apuRHpEw2Q,3494
2
2
  odoo/addons/stock_restrict_lot/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/stock_restrict_lot/__manifest__.py,sha256=85zX1vlNbDNosqop88n_yLoirVqgFU6pdQbaNpBCfh0,435
3
+ odoo/addons/stock_restrict_lot/__manifest__.py,sha256=oBCQq82r1ScMPd9uWRArCyTfJ-onylZg9Dcz3G254Ik,435
4
4
  odoo/addons/stock_restrict_lot/i18n/it.po,sha256=K_82qDz15Juv-Vrgdd9MTPXRBCtwI1rwDIjEzx0LfMI,1261
5
5
  odoo/addons/stock_restrict_lot/i18n/stock_restrict_lot.pot,sha256=i7KxPHZWsztQRy50zSwB2HJMzfBg2D7iI2TY7RNFcsw,960
6
6
  odoo/addons/stock_restrict_lot/models/__init__.py,sha256=iXFj1YVkxnmLFiysvQOzfRdMbTyK5UxIIy-AsH70iWw,50
7
+ odoo/addons/stock_restrict_lot/models/product_product.py,sha256=sv-ZLxXqmf6UX4MII1lX7s1BsRgyiKOD_wDpo993KmU,888
7
8
  odoo/addons/stock_restrict_lot/models/stock_move.py,sha256=aFSfbKGa2erXxFSWjP8VrqQoXsXPtQ24DDFvKZhQuYw,2934
8
9
  odoo/addons/stock_restrict_lot/models/stock_rule.py,sha256=NXXjB8rooKS0kpG3zvqpDDpLkmh7mvbnHLItDwdCec0,236
9
10
  odoo/addons/stock_restrict_lot/readme/CONTRIBUTORS.rst,sha256=22s3orjbcuOva-ZDd-Tu_QSz7yv0Vf-EvMzDZZaBTeo,90
10
11
  odoo/addons/stock_restrict_lot/readme/DESCRIPTION.rst,sha256=5-U3CJQ5zIpAxrXPVPXTPFmmV216MRflIecv7Ou5i4s,281
11
12
  odoo/addons/stock_restrict_lot/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
12
- odoo/addons/stock_restrict_lot/static/description/index.html,sha256=63dzvEUxk1as6IHEjaptxiB_Y7HbYSjdt2pFAVWTh5k,12889
13
+ odoo/addons/stock_restrict_lot/static/description/index.html,sha256=sTcrZKL8F2UbRS4Q_OqjCwyHifesrk9eV9EM-WSxJ8U,12933
13
14
  odoo/addons/stock_restrict_lot/tests/__init__.py,sha256=5RimjaqBd8kD55SNoLqh-g9sCmmI28hPx7IQMUX6AOQ,32
14
15
  odoo/addons/stock_restrict_lot/tests/test_restrict_lot.py,sha256=13Ll6pgFYwRn3sg2HH4FKfIAIEU1fVdd-MzRUrHPcUE,9168
15
- odoo_addon_stock_restrict_lot-15.0.0.0.2.3.dist-info/METADATA,sha256=Z2lWL5qpv8hycMv9fK20sVQ10HenYYKCCwgg1v3ncC4,4086
16
- odoo_addon_stock_restrict_lot-15.0.0.0.2.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
17
- odoo_addon_stock_restrict_lot-15.0.0.0.2.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
18
- odoo_addon_stock_restrict_lot-15.0.0.0.2.3.dist-info/RECORD,,
16
+ odoo_addon_stock_restrict_lot-15.0.0.1.0.dist-info/METADATA,sha256=GNbNxO0YJOmb7SWCPwHdlwUdMwOJFIRidW3m6D-I_u8,4072
17
+ odoo_addon_stock_restrict_lot-15.0.0.1.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
18
+ odoo_addon_stock_restrict_lot-15.0.0.1.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
19
+ odoo_addon_stock_restrict_lot-15.0.0.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.45.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5