Skip to content

Commit

Permalink
Merge pull request #1075 from OCA/15.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/stock-logistics-workflow (15.0)
  • Loading branch information
bt-admin authored Jan 14, 2024
2 parents e5353c1 + 6814110 commit 191e138
Show file tree
Hide file tree
Showing 18 changed files with 618 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ addon | version | maintainers | summary
[stock_move_change_source_location](stock_move_change_source_location/) | 15.0.1.0.0 | | This module allows you to change the source location of a stock move from the picking
[stock_move_consu_location_from_putaway](stock_move_consu_location_from_putaway/) | 15.0.1.0.0 | [![grindtildeath](https://github.com/grindtildeath.png?size=30px)](https://github.com/grindtildeath) | Use putaway location as source of move lines for consumables
[stock_move_line_auto_fill](stock_move_line_auto_fill/) | 15.0.1.0.1 | | Stock Move Line auto fill
[stock_move_name_from_sale_line](stock_move_name_from_sale_line/) | 15.0.1.0.0 | | Set stock move name from sale line name
[stock_move_quick_lot](stock_move_quick_lot/) | 15.0.1.0.0 | | Set lot name and end date directly on picking operations
[stock_no_negative](stock_no_negative/) | 15.0.1.0.0 | | Disallow negative stock levels by default
[stock_owner_restriction](stock_owner_restriction/) | 15.0.1.1.2 | | Do not reserve quantity with assigned owner
Expand Down
2 changes: 1 addition & 1 deletion setup/_metapackage/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.0.20231227.0
15.0.20240113.0
1 change: 1 addition & 0 deletions setup/_metapackage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'odoo-addon-stock_move_change_source_location>=15.0dev,<15.1dev',
'odoo-addon-stock_move_consu_location_from_putaway>=15.0dev,<15.1dev',
'odoo-addon-stock_move_line_auto_fill>=15.0dev,<15.1dev',
'odoo-addon-stock_move_name_from_sale_line>=15.0dev,<15.1dev',
'odoo-addon-stock_move_quick_lot>=15.0dev,<15.1dev',
'odoo-addon-stock_no_negative>=15.0dev,<15.1dev',
'odoo-addon-stock_owner_restriction>=15.0dev,<15.1dev',
Expand Down
6 changes: 6 additions & 0 deletions setup/stock_move_name_from_sale_line/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
80 changes: 80 additions & 0 deletions stock_move_name_from_sale_line/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
==============================
Stock Move Name From Sale Line
==============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5da324f33673ea305d97fb7f46dab0601cef86595b641101e423efcdd5b7530c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_move_name_from_sale_line
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_move_name_from_sale_line
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/stock-logistics-workflow&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module set stock move name from sale order line when is confirmed.
By default Odoo set the product name (display_name).

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/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 <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_move_name_from_sale_line%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

* Sergio Teruel
* Carlos Dauden

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_move_name_from_sale_line>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_move_name_from_sale_line/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions stock_move_name_from_sale_line/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Stock Move Name From Sale Line",
"summary": """Set stock move name from sale line name""",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Tecnativa, Odoo Community Association (OCA)",
"depends": [
"sale_stock",
],
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_move_name_from_sale_line
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_move_name_from_sale_line
#: model:ir.model,name:stock_move_name_from_sale_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: stock_move_name_from_sale_line
#: model:ir.model,name:stock_move_name_from_sale_line.model_stock_rule
msgid "Stock Rule"
msgstr ""
2 changes: 2 additions & 0 deletions stock_move_name_from_sale_line/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import sale_order
from . import stock_rule
13 changes: 13 additions & 0 deletions stock_move_name_from_sale_line/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class SaleOrderLine(models.Model):
_inherit = "sale.order.line"

def _prepare_procurement_values(self, group_id=False):
values = super()._prepare_procurement_values(group_id=group_id)
values["name"] = self.name
return values
13 changes: 13 additions & 0 deletions stock_move_name_from_sale_line/models/stock_rule.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class StockRule(models.Model):
_inherit = "stock.rule"

def _get_custom_move_fields(self):
move_fields = super()._get_custom_move_fields()
move_fields += ["name"]
return move_fields
4 changes: 4 additions & 0 deletions stock_move_name_from_sale_line/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`_:

* Sergio Teruel
* Carlos Dauden
2 changes: 2 additions & 0 deletions stock_move_name_from_sale_line/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module set stock move name from sale order line when is confirmed.
By default Odoo set the product name (display_name).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 191e138

Please sign in to comment.