diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 435df3efa..b787eebdf 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -11,6 +11,19 @@ considered a bad practice. USe always parenthesis to wrap multi-line strings. * The name of the python file should be the same as the name of the model it using underscores. For example, if the model is `res.partner`, the file should be named `res_partner.py`. * Only one model per file. -* The xml view files should be named using the following pattern: +* The XML view files should be named using the following pattern: `_views.xml`. For example, if the model is `res.partner`, the file should be named `res_partner_views.xml`. +* In Python code, there should be exactly 2 line between the copyright/license header +and imports and also 2 lines between the imports and the start of the code. +* There should not be a copyright/license header in `__init__.py` files. +* Every python file should have a copyright/license header with this format: + ``` + # Copyright 2025 Company name - Name1 Lastname1 + # Copyright Company name - Name2 Lastname2 + # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + ``` + the year can be optional. +* The summary/description on `__manifest__.py` should be consistent with the `readme/DESCRIPTION.md` +* There should be always a readme folder on the root of each module. +* Everything except the `.po` files should be in English. diff --git a/stock_picking_partner_ref/README.rst b/stock_picking_partner_ref/README.rst new file mode 100644 index 000000000..3b1137135 --- /dev/null +++ b/stock_picking_partner_ref/README.rst @@ -0,0 +1,71 @@ +=============================== +Stock picking partner reference +=============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:85f2b5e63bc65e5367e1588dda85133139723c6dad4815da52f5f5e5be38ce8e + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-NuoBiT%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/NuoBiT/odoo-addons/tree/18.0/stock_picking_partner_ref + :alt: NuoBiT/odoo-addons + +|badge1| |badge2| |badge3| + +This module adds a partner reference on picking + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* NuoBiT Solutions SL + +Contributors +------------ + +- `NuoBiT `__: + + - Eric Antones + - Deniz Gallo + +Maintainers +----------- + +.. |maintainer-eantones| image:: https://github.com/eantones.png?size=40px + :target: https://github.com/eantones + :alt: eantones + +Current maintainer: + +|maintainer-eantones| + +This module is part of the `NuoBiT/odoo-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/stock_picking_partner_ref/__init__.py b/stock_picking_partner_ref/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_picking_partner_ref/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_picking_partner_ref/__manifest__.py b/stock_picking_partner_ref/__manifest__.py new file mode 100644 index 000000000..7c22d2efa --- /dev/null +++ b/stock_picking_partner_ref/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright NuoBiT - Eric Antones +# Copyright 2025 NuoBiT - Deniz Gallo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +{ + "name": "Stock picking partner reference", + "summary": "Adds a partner reference on picking", + "author": "NuoBiT Solutions SL", + "maintainers": ["eantones"], + "category": "Warehouse", + "version": "18.0.1.0.0", + "license": "AGPL-3", + "website": "https://github.com/NuoBiT/odoo-addons", + "depends": [ + "stock", + ], + "data": [ + "views/stock_picking_views.xml", + ], +} diff --git a/stock_picking_partner_ref/models/__init__.py b/stock_picking_partner_ref/models/__init__.py new file mode 100644 index 000000000..ae4c27227 --- /dev/null +++ b/stock_picking_partner_ref/models/__init__.py @@ -0,0 +1 @@ +from . import stock_picking diff --git a/stock_picking_partner_ref/models/stock_picking.py b/stock_picking_partner_ref/models/stock_picking.py new file mode 100644 index 000000000..66e8d49f5 --- /dev/null +++ b/stock_picking_partner_ref/models/stock_picking.py @@ -0,0 +1,11 @@ +# Copyright 2021 NuoBiT - Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + + +from odoo import fields, models + + +class Location(models.Model): + _inherit = "stock.picking" + + partner_ref = fields.Char(string="Partner Reference") diff --git a/stock_picking_partner_ref/pyproject.toml b/stock_picking_partner_ref/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/stock_picking_partner_ref/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_picking_partner_ref/readme/CONTRIBUTORS.md b/stock_picking_partner_ref/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..4dd7b2708 --- /dev/null +++ b/stock_picking_partner_ref/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [NuoBiT](https://www.nuobit.com): + - Eric Antones \<\> + - Deniz Gallo \<\> \ No newline at end of file diff --git a/stock_picking_partner_ref/readme/DESCRIPTION.md b/stock_picking_partner_ref/readme/DESCRIPTION.md new file mode 100644 index 000000000..a441f2b3a --- /dev/null +++ b/stock_picking_partner_ref/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module adds a partner reference on picking diff --git a/stock_picking_partner_ref/static/description/icon.png b/stock_picking_partner_ref/static/description/icon.png new file mode 100644 index 000000000..1cd641e79 Binary files /dev/null and b/stock_picking_partner_ref/static/description/icon.png differ diff --git a/stock_picking_partner_ref/static/description/index.html b/stock_picking_partner_ref/static/description/index.html new file mode 100644 index 000000000..4b5517d52 --- /dev/null +++ b/stock_picking_partner_ref/static/description/index.html @@ -0,0 +1,422 @@ + + + + + +Stock picking partner reference + + + +
+

Stock picking partner reference

+ + +

Beta License: AGPL-3 NuoBiT/odoo-addons

+

This module adds a partner reference on picking

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • NuoBiT Solutions SL
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

Current maintainer:

+

eantones

+

This module is part of the NuoBiT/odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/stock_picking_partner_ref/views/stock_picking_views.xml b/stock_picking_partner_ref/views/stock_picking_views.xml new file mode 100644 index 000000000..295a741e5 --- /dev/null +++ b/stock_picking_partner_ref/views/stock_picking_views.xml @@ -0,0 +1,51 @@ + + + + + stock.picking.form.inherit.partner.ref + stock.picking + + + + + + + + + + stock.picking.tree.inherit.partner.ref + stock.picking + + + + + + + + + + stock.picking.search.inherit.partner.ref + stock.picking + + + + Picking List + ['|','|',('name','ilike', self),('origin','ilike',self),('partner_ref','ilike',self)] + + + + + + + + + +