Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1,44 @@
# DDMRP Product Replace
Odoo addon: ddmrp_product_replace
## Installation
```bash
pip install odoo-bringout-oca-ddmrp-ddmrp_product_replace
```
## Dependencies
This addon depends on:
- ddmrp
## Manifest Information
- **Name**: DDMRP Product Replace
- **Version**: 16.0.1.1.0
- **Category**: Warehouse Management
- **License**: LGPL-3
- **Installable**: True
## Source
Based on [OCA/ddmrp](https://github.com/OCA/ddmrp) branch 16.0, addon `ddmrp_product_replace`.
## License
This package maintains the original LGPL-3 license from the upstream Odoo project.
## Documentation
- Overview: doc/OVERVIEW.md
- Architecture: doc/ARCHITECTURE.md
- Models: doc/MODELS.md
- Controllers: doc/CONTROLLERS.md
- Wizards: doc/WIZARDS.md
- Install: doc/INSTALL.md
- Usage: doc/USAGE.md
- Configuration: doc/CONFIGURATION.md
- Dependencies: doc/DEPENDENCIES.md
- Troubleshooting: doc/TROUBLESHOOTING.md
- FAQ: doc/FAQ.md

View file

@ -0,0 +1,115 @@
=====================
DDMRP Product Replace
=====================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:59c39d70f62bc4343b4a448e14736f3a68e2e50bf878c98f9425597f8b8367f9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fddmrp-lightgray.png?logo=github
:target: https://github.com/OCA/ddmrp/tree/16.0/ddmrp_product_replace
:alt: OCA/ddmrp
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_product_replace
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/ddmrp&target_branch=16.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
Provides a tool for product replacement.
**Table of contents**
.. contents::
:local:
Usage
=====
Go to *Inventory > Configuration > DDMRP > Product Replacement Tool*.
Then you can fill the wizard options to complete the replacement. There are two
modes of operation: *Create a new buffer for the replacing product* and
*Replace product in existing buffers*.
Known issues / Roadmap
======================
* Option to create new buffer and make old ones inactive.
* Consider Demand estimates in the replacement.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/ddmrp/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/ddmrp/issues/new?body=module:%20ddmrp_product_replace%0Aversion:%2016.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
~~~~~~~
* ForgeFlow
Contributors
~~~~~~~~~~~~
* Lois Rilo <lois.rilo@forgeflow.com>
* Jordi Ballester <jordi.ballester@forgeflow.com>
* Akim Juillerat <akim.juillerat@camptocamp.com>
* `Trobz <https://trobz.com>`_:
* Khoi Vo <khoivha@trobz.com>
Other credits
~~~~~~~~~~~~~
The initial development of this module has been financially supported by:
* Aleph Objects, Inc.
The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp
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.
.. |maintainer-JordiBForgeFlow| image:: https://github.com/JordiBForgeFlow.png?size=40px
:target: https://github.com/JordiBForgeFlow
:alt: JordiBForgeFlow
.. |maintainer-LoisRForgeFlow| image:: https://github.com/LoisRForgeFlow.png?size=40px
:target: https://github.com/LoisRForgeFlow
:alt: LoisRForgeFlow
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-JordiBForgeFlow| |maintainer-LoisRForgeFlow|
This module is part of the `OCA/ddmrp <https://github.com/OCA/ddmrp/tree/16.0/ddmrp_product_replace>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View file

@ -0,0 +1,2 @@
from . import models
from . import wizards

View file

@ -0,0 +1,22 @@
# Copyright 2017-21 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "DDMRP Product Replace",
"summary": "Provides a assisting tool for product replacement.",
"version": "16.0.1.1.0",
"development_status": "Beta",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"maintainers": ["JordiBForgeFlow", "LoisRForgeFlow"],
"website": "https://github.com/OCA/ddmrp",
"category": "Warehouse Management",
"depends": ["ddmrp"],
"data": [
"security/ir.model.access.csv",
"wizards/ddmrp_product_replace_view.xml",
"wizards/make_procurement_buffer_view.xml",
"views/stock_buffer_view.xml",
],
"license": "LGPL-3",
"installable": True,
}

View file

@ -0,0 +1,378 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ddmrp_product_replace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid ""
"<i class=\"fa fa-info-circle\" style=\"margin-right:5px\"/>\n"
" When there are more than one product replaced, only the buffer(s) of the primary product in\n"
" this list will be used to create the buffer(s) and/or product(s) for replacement."
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid ""
"<i class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_make_procurement_buffer_wizard
msgid ""
"<span class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" "
"style=\"margin-right:5px\"/>"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__buffer_ids
msgid "Affected Buffers"
msgstr "Pogođeni baferi"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffered product must be considered as demand."
msgstr "Proizvod sa baferom mora biti razmatran kao potražnja."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffers Replaced"
msgstr "Zamijenjeni baferi"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Cancel"
msgstr "Otkaži"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old Product Demand"
msgstr "Razmotri potražnju starog proizvoda"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old product moves as demand for new product"
msgstr "Razmotri pokrete starog proizvoda kao potražnju za novi proizvod"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid "Considered As Demand"
msgstr "Smatra se kao potražnja"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_packaging
msgid "Copy Packaging"
msgstr "Kopiraj pakovanja"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_putaway
msgid "Copy Put Away Strategy"
msgstr "Kopiraj strategiju odlaganja"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_route
msgid "Copy Routes"
msgstr "Kopiraj rute"
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__new
msgid "Create New Product"
msgstr "Kreiraj novi proizvod"
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__new_buffer
msgid "Create a new buffer for the replacing product."
msgstr "Kreiraj novi bafer za zamjenjujući proizvod."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_uid
msgid "Created by"
msgstr "Kreirao"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_date
msgid "Created on"
msgstr "Kreirano"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_ddmrp_product_replace
msgid "DDMRP Product Replace"
msgstr "DDMRP zamjena proizvoda"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__display_name
msgid "Display Name"
msgstr "Prikazani naziv"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__has_replaced_buffers
msgid "Has Replaced Buffers"
msgstr "Ima zamijenjene bafere"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__id
msgid "ID"
msgstr "ID"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid ""
"If you tick this option, the buffer will consider the incoming and on-hand "
"of all products it replaces and this will impact its NFP."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid "Include Incoming & On-Hands of replaced products"
msgstr "Uključi dolazne i stanje zamijenjenih proizvoda"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__is_already_replaced
msgid "Is Already Replaced"
msgstr "Već je zamijenjen"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace____last_update
msgid "Last Modified on"
msgstr "Zadnje mijenjano"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_date
msgid "Last Updated on"
msgstr "Zadnje ažurirano"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_make_procurement_buffer
msgid "Make Procurements from Stock Buffers"
msgstr "Napravi nabavke iz skladišnih bafera"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__mode
msgid "Mode"
msgstr "Mod"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__multi_product
msgid "Multi Product"
msgstr "Više proizvoda"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_default_code
msgid "New Product Internal Ref."
msgstr "Interna ref. novog proizvoda"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_name
msgid "New Product Name"
msgstr "Naziv novog proizvoda"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "New Stock Buffers"
msgstr "Novi skladišni baferi"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "No affected buffers found."
msgstr "Nisu pronađeni pogođeni baferi."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__primary_old_product_id
msgid "Primary Replaced Product"
msgstr "Osnovni zamijenjeni proizvod"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Product Replacement"
msgstr "Zamjena proizvoda"
#. module: ddmrp_product_replace
#: model:ir.actions.act_window,name:ddmrp_product_replace.action_ddmrp_product_replace_wizard
#: model:ir.ui.menu,name:ddmrp_product_replace.menu_ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Product Replacement Tool"
msgstr "Alat za zamjenu proizvoda"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Product that is going to replace the other one."
msgstr "Proizvod koji će zamijeniti drugi."
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Product to be replaced."
msgstr "Proizvod koji treba biti zamijenjen."
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__use_existing
msgid "Replace product in existing buffers"
msgstr "Zamijeni proizvod u postojećim baferima"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__replaced_by_alert_text
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_alert_text
msgid "Replaced By Alert Text"
msgstr "Tekst upozorenja zamjene"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Replaced Products"
msgstr "Zamijenjeni proizvodi"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid "Replaced by"
msgstr "Zamijenjen sa"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_count
msgid "Replacement For Count"
msgstr "Broj zamjena za"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__is_replacement_product
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_search
msgid "Replacement Product"
msgstr "Proizvod za zamjenu"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Replacement for"
msgstr "Zamjena za"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_ids
msgid "Replaces"
msgstr "Zamjenjuje"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Replacing Product"
msgstr "Zamjenjujući proizvod"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replaced Products"
msgstr "Odaberi zamijenjene proizvode"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replacing Product"
msgstr "Odaberi zamjenjujući proizvod"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid ""
"Some of the affected buffers have a different product than the replaced "
"ones."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Some of the buffers have already been replaced."
msgstr "Neki od bafera su već zamijenjeni."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/make_procurement_buffer.py:0
#, python-format
msgid "Some products are being replaced:"
msgstr "Neki proizvodi se zamjenjuju:"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_buffer
msgid "Stock Buffer"
msgstr "Skladišni bafer"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_move
msgid "Stock Move"
msgstr "Skladišno kretanje"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Substitute Product"
msgstr "Zamjenski proizvod"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid ""
"The product in this buffer is replaced by the product of selected buffer. When you replace another buffer:\n"
" - Past Demand of the replacement buffer will include the past demand of this product\n"
" - Several buffers can be replaced in chained and coexist at the same time: A replaces B that replaces C, then A aggregates both B and C where B only aggregates C"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__is_replacement_product
msgid "The product of this buffer is replacing another product"
msgstr "Proizvod ovog bafera zamjenjuje drugi proizvod"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid ""
"This field is used for a correct product replacement within a DDMRP buffer."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "This product is replaced by %s."
msgstr "Ovaj proizvod je zamijenjen sa %s."
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__existing
msgid "Use Existing Product"
msgstr "Koristi postojeći proizvod"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__use_existing
msgid "Use Existing/New Product"
msgstr "Koristi postojeći/novi proizvod"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Validate"
msgstr "Ovjeri"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "You cannot create recursive \"Replaced by\" chains."
msgstr "Ne možete kreirati rekurzivne \"Zamijenjen sa\" lance."
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "or"
msgstr "ili"

View file

@ -0,0 +1,378 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ddmrp_product_replace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid ""
"<i class=\"fa fa-info-circle\" style=\"margin-right:5px\"/>\n"
" When there are more than one product replaced, only the buffer(s) of the primary product in\n"
" this list will be used to create the buffer(s) and/or product(s) for replacement."
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid ""
"<i class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_make_procurement_buffer_wizard
msgid ""
"<span class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" "
"style=\"margin-right:5px\"/>"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__buffer_ids
msgid "Affected Buffers"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffered product must be considered as demand."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffers Replaced"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Cancel"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old Product Demand"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old product moves as demand for new product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid "Considered As Demand"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_packaging
msgid "Copy Packaging"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_putaway
msgid "Copy Put Away Strategy"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_route
msgid "Copy Routes"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__new
msgid "Create New Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__new_buffer
msgid "Create a new buffer for the replacing product."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_uid
msgid "Created by"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_date
msgid "Created on"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_ddmrp_product_replace
msgid "DDMRP Product Replace"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__display_name
msgid "Display Name"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__has_replaced_buffers
msgid "Has Replaced Buffers"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__id
msgid "ID"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid ""
"If you tick this option, the buffer will consider the incoming and on-hand "
"of all products it replaces and this will impact its NFP."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid "Include Incoming & On-Hands of replaced products"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__is_already_replaced
msgid "Is Already Replaced"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace____last_update
msgid "Last Modified on"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_uid
msgid "Last Updated by"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_date
msgid "Last Updated on"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_make_procurement_buffer
msgid "Make Procurements from Stock Buffers"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__mode
msgid "Mode"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__multi_product
msgid "Multi Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_default_code
msgid "New Product Internal Ref."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_name
msgid "New Product Name"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "New Stock Buffers"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "No affected buffers found."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__primary_old_product_id
msgid "Primary Replaced Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Product Replacement"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.actions.act_window,name:ddmrp_product_replace.action_ddmrp_product_replace_wizard
#: model:ir.ui.menu,name:ddmrp_product_replace.menu_ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Product Replacement Tool"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Product that is going to replace the other one."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Product to be replaced."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__use_existing
msgid "Replace product in existing buffers"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__replaced_by_alert_text
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_alert_text
msgid "Replaced By Alert Text"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Replaced Products"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid "Replaced by"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_count
msgid "Replacement For Count"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__is_replacement_product
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_search
msgid "Replacement Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Replacement for"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_ids
msgid "Replaces"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Replacing Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replaced Products"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replacing Product"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid ""
"Some of the affected buffers have a different product than the replaced "
"ones."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Some of the buffers have already been replaced."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/make_procurement_buffer.py:0
#, python-format
msgid "Some products are being replaced:"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_buffer
msgid "Stock Buffer"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_move
msgid "Stock Move"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Substitute Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid ""
"The product in this buffer is replaced by the product of selected buffer. When you replace another buffer:\n"
" - Past Demand of the replacement buffer will include the past demand of this product\n"
" - Several buffers can be replaced in chained and coexist at the same time: A replaces B that replaces C, then A aggregates both B and C where B only aggregates C"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__is_replacement_product
msgid "The product of this buffer is replacing another product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid ""
"This field is used for a correct product replacement within a DDMRP buffer."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "This product is replaced by %s."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__existing
msgid "Use Existing Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__use_existing
msgid "Use Existing/New Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Validate"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "You cannot create recursive \"Replaced by\" chains."
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "or"
msgstr ""

View file

@ -0,0 +1,408 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ddmrp_product_replace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-17 21:35+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid ""
"<i class=\"fa fa-info-circle\" style=\"margin-right:5px\"/>\n"
" When there are more than one product replaced, "
"only the buffer(s) of the primary product in\n"
" this list will be used to create the buffer(s) "
"and/or product(s) for replacement."
msgstr ""
"<i class=\"fa fa-info-circle\" style=\"margin-right:5px\"/>\n"
" Cuando hay más de un producto reemplazado, sólo "
"el búfer(es) del producto primario en\n"
" esta lista se utilizará para crear el búfer (s) "
"y / o producto (s) para el reemplazo."
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid ""
"<i class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
"<i class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_make_procurement_buffer_wizard
msgid ""
"<span class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
"<span class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__buffer_ids
msgid "Affected Buffers"
msgstr "Búferes afectados"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffered product must be considered as demand."
msgstr "El producto tamponado debe considerarse como demanda."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffers Replaced"
msgstr "Búferes sustituidos"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Cancel"
msgstr "Cancelar"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old Product Demand"
msgstr "Considerar la Demanda de Productos Antiguos"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old product moves as demand for new product"
msgstr "Considerar que el producto antiguo se desplaza como demanda del nuevo"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid "Considered As Demand"
msgstr "Considerada como Demanda"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_packaging
msgid "Copy Packaging"
msgstr "Embalaje de Copias"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_putaway
msgid "Copy Put Away Strategy"
msgstr "Estrategia de retirada de copias"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_route
msgid "Copy Routes"
msgstr "Copiar Rutas"
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__new
msgid "Create New Product"
msgstr "Crear un Nuevo Producto"
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__new_buffer
msgid "Create a new buffer for the replacing product."
msgstr "Crear una nueva memoria intermedia para el producto de sustitución."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_uid
msgid "Created by"
msgstr "Creado por"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_date
msgid "Created on"
msgstr "Creado el"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_ddmrp_product_replace
msgid "DDMRP Product Replace"
msgstr "Sustitución del Producto DDMRP"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__has_replaced_buffers
msgid "Has Replaced Buffers"
msgstr "Ha Sustituido a Los Búferes"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__id
msgid "ID"
msgstr "ID (identificación)"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid ""
"If you tick this option, the buffer will consider the incoming and on-hand "
"of all products it replaces and this will impact its NFP."
msgstr ""
"Si marca esta opción, el buffer tendrá en cuenta las entradas y salidas de "
"todos los productos que sustituya y esto repercutirá en su PFN."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid "Include Incoming & On-Hands of replaced products"
msgstr "Incluir productos entrantes y disponibles de productos reemplazados"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__is_already_replaced
msgid "Is Already Replaced"
msgstr "Ya ha sido Sustituido"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace____last_update
msgid "Last Modified on"
msgstr "Última Actualización el"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_uid
msgid "Last Updated by"
msgstr "Última Actualzacíón por"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_date
msgid "Last Updated on"
msgstr "Última Actualización el"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_make_procurement_buffer
msgid "Make Procurements from Stock Buffers"
msgstr "Crear Abastecimientos desde Búfer de Inventario"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__mode
msgid "Mode"
msgstr "Modo"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__multi_product
msgid "Multi Product"
msgstr "Multi Producto"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_default_code
msgid "New Product Internal Ref."
msgstr "Nuevo Producto Ref. Interna."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_name
msgid "New Product Name"
msgstr "Nuevo Nombre de Producto"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "New Stock Buffers"
msgstr "Nuevos Topes de Existencias"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "No affected buffers found."
msgstr "No se ha encontrado ningún búfer afectado."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__primary_old_product_id
msgid "Primary Replaced Product"
msgstr "Producto Primario Sustituido"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Product Replacement"
msgstr "Sustitución de Productos"
#. module: ddmrp_product_replace
#: model:ir.actions.act_window,name:ddmrp_product_replace.action_ddmrp_product_replace_wizard
#: model:ir.ui.menu,name:ddmrp_product_replace.menu_ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Product Replacement Tool"
msgstr "Herramienta de Sustitución de Productos"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Product that is going to replace the other one."
msgstr "Producto que va a sustituir al otro."
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Product to be replaced."
msgstr "Producto que debe sustituirse."
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__use_existing
msgid "Replace product in existing buffers"
msgstr "Sustituir el producto en los topes existentes"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__replaced_by_alert_text
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_alert_text
msgid "Replaced By Alert Text"
msgstr "Sustituido por Texto de Alerta"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Replaced Products"
msgstr "Productos Sustituidos"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid "Replaced by"
msgstr "Sustituido por"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_count
msgid "Replacement For Count"
msgstr "Sustitución para el Conteo"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__is_replacement_product
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_search
msgid "Replacement Product"
msgstr "Producto de Sustitución"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Replacement for"
msgstr "Sustitución para"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_ids
msgid "Replaces"
msgstr "Sustituye"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Replacing Product"
msgstr "Sustitución del Producto"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replaced Products"
msgstr "Seleccionar Productos Sustituidos"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replacing Product"
msgstr "Seleccione el Producto Sustitutivo"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid ""
"Some of the affected buffers have a different product than the replaced ones."
msgstr ""
"Algunos de los búferes afectados tienen un producto diferente al de los "
"sustituidos."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Some of the buffers have already been replaced."
msgstr "Algunos de los topes ya han sido sustituidos."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/make_procurement_buffer.py:0
#, python-format
msgid "Some products are being replaced:"
msgstr "Algunos productos están siendo sustituidos:"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_buffer
msgid "Stock Buffer"
msgstr "Búfer de Inventario"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de Existencias"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Substitute Product"
msgstr "Productos Sustitutivos"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid ""
"The product in this buffer is replaced by the product of selected buffer. "
"When you replace another buffer:\n"
" - Past Demand of the replacement buffer will include the past demand of "
"this product\n"
" - Several buffers can be replaced in chained and coexist at the same time: "
"A replaces B that replaces C, then A aggregates both B and C where B only "
"aggregates C"
msgstr ""
"El producto de este búfer se sustituye por el producto del búfer "
"seleccionado. Cuando se reemplaza otro búfer:\n"
" - La demanda pasada del búfer de sustitución incluirá la demanda pasada de "
"este producto\n"
" - Varios búferes pueden ser reemplazados en cadena y coexistir al mismo "
"tiempo: A sustituye a B que sustituye a C, entonces A agrega tanto B como C "
"donde B sólo agrega C"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__is_replacement_product
msgid "The product of this buffer is replacing another product"
msgstr "El producto de este búfer sustituye a otro producto"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid ""
"This field is used for a correct product replacement within a DDMRP buffer."
msgstr ""
"Este campo se utiliza para una correcta sustitución del producto dentro de "
"un búfer DDMRP."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "This product is replaced by %s."
msgstr "Este producto se sustituye por %s."
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__existing
msgid "Use Existing Product"
msgstr "Utilizar el Producto Existente"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__use_existing
msgid "Use Existing/New Product"
msgstr "Utilizar Producto Existente/Nuevo"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Validate"
msgstr "Validado"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "You cannot create recursive \"Replaced by\" chains."
msgstr "No se pueden crear cadenas \"Sustituido por\" recursivas."
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "or"
msgstr "o"

View file

@ -0,0 +1,409 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ddmrp_product_replace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-03 13:38+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid ""
"<i class=\"fa fa-info-circle\" style=\"margin-right:5px\"/>\n"
" When there are more than one product replaced, "
"only the buffer(s) of the primary product in\n"
" this list will be used to create the buffer(s) "
"and/or product(s) for replacement."
msgstr ""
"<i class=\"fa fa-info-circle\" style=\"margin-right:5px\"/>\n"
" Quando c'è più di un prodotto sostituito, solo "
"il buffer del prodotto primario in\n"
" questa lista verrà utilizzato per creare il "
"buffer e/o il prodotto per la sostituzione."
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid ""
"<i class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
"<i class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_make_procurement_buffer_wizard
msgid ""
"<span class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
"<span class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__buffer_ids
msgid "Affected Buffers"
msgstr "Buffer coinvolti"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffered product must be considered as demand."
msgstr "I prodotti nei buffer devono essere considerati come fabbisogno."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffers Replaced"
msgstr "Buffer sostituiti"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Cancel"
msgstr "Annulla"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old Product Demand"
msgstr "Considerare vecchio fabbisogno prodotto"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old product moves as demand for new product"
msgstr ""
"Considerare i vecchi movimenti prodotto come fabbisogno per nuovi prodotti"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid "Considered As Demand"
msgstr "Considerato come fabbisogno"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_packaging
msgid "Copy Packaging"
msgstr "Copia imballaggio"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_putaway
msgid "Copy Put Away Strategy"
msgstr "Copia strategia inoltro"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_route
msgid "Copy Routes"
msgstr "Copia rotte"
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__new
msgid "Create New Product"
msgstr "Crea nuovo prodotto"
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__new_buffer
msgid "Create a new buffer for the replacing product."
msgstr "Creare un nuovo buffer per il prodotto da sostituire."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_uid
msgid "Created by"
msgstr "Creato da"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_date
msgid "Created on"
msgstr "Creato il"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_ddmrp_product_replace
msgid "DDMRP Product Replace"
msgstr "Sostituzione prodotto DDMRP"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__display_name
msgid "Display Name"
msgstr "Nome visualizzato"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__has_replaced_buffers
msgid "Has Replaced Buffers"
msgstr "Ha buffer sostituiti"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__id
msgid "ID"
msgstr "ID"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid ""
"If you tick this option, the buffer will consider the incoming and on-hand "
"of all products it replaces and this will impact its NFP."
msgstr ""
"Se si seleziona questa opzione, il buffer considererà gli ingressi e le "
"disponibilità di tutti i prodotti che sostituisce e questo impatterà il suo "
"NFP."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid "Include Incoming & On-Hands of replaced products"
msgstr "Includere ingressi e disponibilità dei prodotti sostituiti"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__is_already_replaced
msgid "Is Already Replaced"
msgstr "Già sostituito"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_make_procurement_buffer
msgid "Make Procurements from Stock Buffers"
msgstr "Esegue approvvigionamenti dai buffer di materiale"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__mode
msgid "Mode"
msgstr "Modo"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__multi_product
msgid "Multi Product"
msgstr "Multi prodotto"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_default_code
msgid "New Product Internal Ref."
msgstr "Rif. interno nuovo prodotto"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_name
msgid "New Product Name"
msgstr "Nome nuovo prodotto"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "New Stock Buffers"
msgstr "Nuovi buffer di materiale"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "No affected buffers found."
msgstr "Nessun buffer coinvolto."
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__primary_old_product_id
msgid "Primary Replaced Product"
msgstr "Prodotto sostituito primario"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Product Replacement"
msgstr "Sostituzione prodotto"
#. module: ddmrp_product_replace
#: model:ir.actions.act_window,name:ddmrp_product_replace.action_ddmrp_product_replace_wizard
#: model:ir.ui.menu,name:ddmrp_product_replace.menu_ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Product Replacement Tool"
msgstr "Strumento sostituzione prodotto"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Product that is going to replace the other one."
msgstr "Prodotto che sta sostituendo l'altro."
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Product to be replaced."
msgstr "Prodotto da sostituire."
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__use_existing
msgid "Replace product in existing buffers"
msgstr "Sostituisce prodotto nei buffer esistenti"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__replaced_by_alert_text
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_alert_text
msgid "Replaced By Alert Text"
msgstr "Sostituito da testo allerta"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Replaced Products"
msgstr "Prodotti sostituiti"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid "Replaced by"
msgstr "Sostituito da"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_count
msgid "Replacement For Count"
msgstr "Sostituzione per conteggio"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__is_replacement_product
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_search
msgid "Replacement Product"
msgstr "Prodotto sostitutivo"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Replacement for"
msgstr "Sostituzione per"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_ids
msgid "Replaces"
msgstr "Sostituisce"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Replacing Product"
msgstr "Sostituzione prodotto"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replaced Products"
msgstr "Selezionare prodotti sostituiti"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replacing Product"
msgstr "Selezionare prodotto sostituto"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid ""
"Some of the affected buffers have a different product than the replaced ones."
msgstr ""
"Alcuni dei buffer coinvolti hanno un prodotto diverso da quello sostituito."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Some of the buffers have already been replaced."
msgstr "Alcuni dei prodotti sono già stati sostituiti."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/make_procurement_buffer.py:0
#, python-format
msgid "Some products are being replaced:"
msgstr "Alcuni prodotti verranno sostituiti:"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_buffer
msgid "Stock Buffer"
msgstr "Buffer di materiale"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Substitute Product"
msgstr "Prodotto sostitutivo"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid ""
"The product in this buffer is replaced by the product of selected buffer. "
"When you replace another buffer:\n"
" - Past Demand of the replacement buffer will include the past demand of "
"this product\n"
" - Several buffers can be replaced in chained and coexist at the same time: "
"A replaces B that replaces C, then A aggregates both B and C where B only "
"aggregates C"
msgstr ""
"il prodotto in questo buffer è sostituito dal prodotto del buffer "
"selezionato. Quando si sostituisce un altro buffer:\n"
" - il fabbisogno passato del buffer sostituito includerà il fabbisogno "
"passato di questo prodotto\n"
" - diversi buffer possono essere sostituiti in sequenza e coesistere allo "
"stesso tempo: A sostituisce B che sostituisce C, quindi A aggrega sia B che "
"C dove B aggrega solo C"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__is_replacement_product
msgid "The product of this buffer is replacing another product"
msgstr "Il prodotto di questo buffer sta sostituendo un altro prodotto"
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid ""
"This field is used for a correct product replacement within a DDMRP buffer."
msgstr ""
"Questo campo è utilizzato per una sostituzione corretta all'interno di un "
"buffer DDMRP."
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "This product is replaced by %s."
msgstr "Questo prodotto è sostituito da %s."
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__existing
msgid "Use Existing Product"
msgstr "Usa prodotto esistente"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__use_existing
msgid "Use Existing/New Product"
msgstr "Utilizza prodotto esistente/nuovo"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Validate"
msgstr "Valida"
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "You cannot create recursive \"Replaced by\" chains."
msgstr "Non si possono creare catene \"sostituito da\" ricorsive."
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "or"
msgstr "o"

View file

@ -0,0 +1,387 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ddmrp_product_replace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-05-29 15:36+0000\n"
"Last-Translator: Rodrigo Macedo <sottomaiormacedotec@users.noreply."
"translation.odoo-community.org>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid ""
"<i class=\"fa fa-info-circle\" style=\"margin-right:5px\"/>\n"
" When there are more than one product replaced, "
"only the buffer(s) of the primary product in\n"
" this list will be used to create the buffer(s) "
"and/or product(s) for replacement."
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid ""
"<i class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_make_procurement_buffer_wizard
msgid ""
"<span class=\"fa fa-info-circle\" title=\"fa fa-info-circle\" style=\"margin-"
"right:5px\"/>"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__buffer_ids
msgid "Affected Buffers"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffered product must be considered as demand."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "Buffers Replaced"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Cancel"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old Product Demand"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__consider_past_demand
msgid "Consider Old product moves as demand for new product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid "Considered As Demand"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_packaging
msgid "Copy Packaging"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_putaway
msgid "Copy Put Away Strategy"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__copy_route
msgid "Copy Routes"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__new
msgid "Create New Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__new_buffer
msgid "Create a new buffer for the replacing product."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_uid
msgid "Created by"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__create_date
msgid "Created on"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_ddmrp_product_replace
msgid "DDMRP Product Replace"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__display_name
msgid "Display Name"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__has_replaced_buffers
msgid "Has Replaced Buffers"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__id
msgid "ID"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid ""
"If you tick this option, the buffer will consider the incoming and on-hand "
"of all products it replaces and this will impact its NFP."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__use_replacement_for_buffer_status
msgid "Include Incoming & On-Hands of replaced products"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__is_already_replaced
msgid "Is Already Replaced"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace____last_update
msgid "Last Modified on"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_uid
msgid "Last Updated by"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__write_date
msgid "Last Updated on"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_make_procurement_buffer
msgid "Make Procurements from Stock Buffers"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__mode
msgid "Mode"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__multi_product
msgid "Multi Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_default_code
msgid "New Product Internal Ref."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_name
msgid "New Product Name"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "New Stock Buffers"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "No affected buffers found."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__primary_old_product_id
msgid "Primary Replaced Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Product Replacement"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.actions.act_window,name:ddmrp_product_replace.action_ddmrp_product_replace_wizard
#: model:ir.ui.menu,name:ddmrp_product_replace.menu_ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Product Replacement Tool"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Product that is going to replace the other one."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Product to be replaced."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__mode__use_existing
msgid "Replace product in existing buffers"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_make_procurement_buffer__replaced_by_alert_text
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_alert_text
msgid "Replaced By Alert Text"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__old_product_ids
msgid "Replaced Products"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid "Replaced by"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_count
msgid "Replacement For Count"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__is_replacement_product
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_search
msgid "Replacement Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.stock_buffer_view_form
msgid "Replacement for"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_stock_buffer__replacement_for_ids
msgid "Replaces"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Replacing Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replaced Products"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Select Replacing Product"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid ""
"Some of the affected buffers have a different product than the replaced ones."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/ddmrp_product_replace.py:0
#, python-format
msgid "Some of the buffers have already been replaced."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/wizards/make_procurement_buffer.py:0
#, python-format
msgid "Some products are being replaced:"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_buffer
msgid "Stock Buffer"
msgstr "Buffer de estoque"
#. module: ddmrp_product_replace
#: model:ir.model,name:ddmrp_product_replace.model_stock_move
msgid "Stock Move"
msgstr "Movimento de estoque"
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__new_product_id
msgid "Substitute Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__replaced_by_id
msgid ""
"The product in this buffer is replaced by the product of selected buffer. "
"When you replace another buffer:\n"
" - Past Demand of the replacement buffer will include the past demand of "
"this product\n"
" - Several buffers can be replaced in chained and coexist at the same time: "
"A replaces B that replaces C, then A aggregates both B and C where B only "
"aggregates C"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__is_replacement_product
msgid "The product of this buffer is replacing another product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,help:ddmrp_product_replace.field_stock_buffer__demand_product_ids
msgid ""
"This field is used for a correct product replacement within a DDMRP buffer."
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "This product is replaced by %s."
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields.selection,name:ddmrp_product_replace.selection__ddmrp_product_replace__use_existing__existing
msgid "Use Existing Product"
msgstr ""
#. module: ddmrp_product_replace
#: model:ir.model.fields,field_description:ddmrp_product_replace.field_ddmrp_product_replace__use_existing
msgid "Use Existing/New Product"
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "Validate"
msgstr ""
#. module: ddmrp_product_replace
#. odoo-python
#: code:addons/ddmrp_product_replace/models/stock_buffer.py:0
#, python-format
msgid "You cannot create recursive \"Replaced by\" chains."
msgstr ""
#. module: ddmrp_product_replace
#: model_terms:ir.ui.view,arch_db:ddmrp_product_replace.view_ddmrp_adjustment_sheet_wizard_form
msgid "or"
msgstr ""

View file

@ -0,0 +1,2 @@
from . import stock_buffer
from . import stock_move

View file

@ -0,0 +1,186 @@
# Copyright 2019-21 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class StockBuffer(models.Model):
_inherit = "stock.buffer"
replaced_by_id = fields.Many2one(
comodel_name="stock.buffer",
string="Replaced by",
help="The product in this buffer is replaced by the product of selected "
"buffer. When you replace another buffer:\n - Past Demand of the "
"replacement buffer will include the past demand of this product\n"
" - Several buffers can be replaced in chained and coexist at the "
"same time: A replaces B that replaces C, then A aggregates both B"
" and C where B only aggregates C",
tracking=True,
)
replaced_by_alert_text = fields.Char(
compute="_compute_replaced_by_alert_text",
)
replacement_for_ids = fields.One2many(
string="Replaces",
comodel_name="stock.buffer",
inverse_name="replaced_by_id",
)
replacement_for_count = fields.Integer(
compute="_compute_replacement_for_count",
)
is_replacement_product = fields.Boolean(
string="Replacement Product",
compute="_compute_is_replacement_product",
store=True,
help="The product of this buffer is replacing another product",
)
demand_product_ids = fields.Many2many(
comodel_name="product.product",
string="Considered As Demand",
help="This field is used for a correct product replacement within a "
"DDMRP buffer.",
copy=False,
)
use_replacement_for_buffer_status = fields.Boolean(
string="Include Incoming & On-Hands of replaced products",
compute="_compute_use_replacement_for_buffer_status",
store=True,
readonly=False,
copy=False,
help="If you tick this option, the buffer will consider the incoming "
"and on-hand of all products it replaces and this will impact its "
"NFP.",
)
@api.constrains("replaced_by_id")
def _check_replaced_by_id(self):
if not self._check_recursion(parent="replaced_by_id"):
raise ValidationError(
_('You cannot create recursive "Replaced by" chains.')
)
@api.constrains("demand_product_ids")
def _check_demand_product_ids(self):
for rec in self:
if rec.demand_product_ids and rec.product_id not in rec.demand_product_ids:
raise ValidationError(
_("Buffered product must be considered as demand.")
)
def _compute_replaced_by_alert_text(self):
for rec in self:
if rec.replaced_by_id:
rec.replaced_by_alert_text = (
_("This product is replaced by %s.")
% rec.replaced_by_id.product_id.display_name
)
else:
rec.replaced_by_alert_text = ""
def _compute_replacement_for_count(self):
for rec in self:
rec.replacement_for_count = len(rec.replacement_for_ids)
@api.depends("replaced_by_id", "replacement_for_ids", "replacement_for_ids.active")
def _compute_is_replacement_product(self):
for rec in self:
rec.is_replacement_product = (
rec.replacement_for_ids and not rec.replaced_by_id
)
@api.depends("item_type")
def _compute_use_replacement_for_buffer_status(self):
for rec in self:
rec.use_replacement_for_buffer_status = rec.item_type in [
"manufactured",
"purchased",
]
@api.depends("item_type")
def _compute_procure_recommended_qty(self):
replaced = self.filtered(
lambda r: r.replaced_by_id and r.item_type in ["manufactured", "purchased"]
)
res = super(StockBuffer, self - replaced)._compute_procure_recommended_qty()
for rec in replaced:
rec.procure_recommended_qty = 0.0
return res
def _past_moves_domain(self, date_from, date_to, locations):
if not self.demand_product_ids:
return super()._past_moves_domain(date_from, date_to, locations)
domain = super()._past_moves_domain(date_from, date_to, locations)
index_replace = False
for n, clause in enumerate(domain):
if isinstance(clause, tuple) and clause[0] == "product_id":
index_replace = n
if isinstance(index_replace, int):
domain[index_replace] = ("product_id", "in", self.demand_product_ids.ids)
return domain
@api.model
def _recursive_replacement_for_ids(self, buffers):
"""Returns the list of buffers being replaced recursively."""
res = self.env["stock.buffer"]
for rec in buffers:
if rec.replacement_for_ids:
res += self._recursive_replacement_for_ids(rec.replacement_for_ids)
res += rec
return res
def _calc_product_available_qty(self):
res = super()._calc_product_available_qty()
for rec in self:
if not (rec.use_replacement_for_buffer_status and rec.replacement_for_ids):
continue
for buffer in rec.replacement_for_ids:
# Update 'incoming_total_qty'
replacements_incoming_qty = buffer.product_uom._compute_quantity(
buffer.incoming_total_qty,
rec.product_uom,
round=False,
)
rec.incoming_total_qty += replacements_incoming_qty
# Update 'product_location_qty_available_not_res'
replacements_qty_not_res = buffer.product_uom._compute_quantity(
buffer.product_location_qty_available_not_res,
rec.product_uom,
round=False,
)
rec.product_location_qty_available_not_res += replacements_qty_not_res
return res
def _search_stock_moves_incoming_domain(self, outside_dlt=False):
domain = super()._search_stock_moves_incoming_domain(outside_dlt=outside_dlt)
if not (self.use_replacement_for_buffer_status and self.replacement_for_ids):
return domain
index_replace = False
for n, clause in enumerate(domain):
if isinstance(clause, tuple) and clause[0] == "product_id":
index_replace = n
if isinstance(index_replace, int):
domain[index_replace] = (
"product_id",
"in",
(self + self._recursive_replacement_for_ids(self.replacement_for_ids))
.mapped("product_id")
.ids,
)
return domain
def _search_stock_moves_qualified_demand_domain(self):
domain = super()._search_stock_moves_qualified_demand_domain()
if not self.demand_product_ids:
return domain
domain = [x for x in domain if x[0] != "product_id"] + [
("product_id", "in", self.demand_product_ids.ids)
]
return domain
def action_view_buffers_replaced(self):
result = self.env["ir.actions.actions"]._for_xml_id("ddmrp.action_stock_buffer")
result["name"] = _("Buffers Replaced")
result["domain"] = [("id", "in", self.replacement_for_ids.ids)]
return result

View file

@ -0,0 +1,22 @@
# Copyright 2021 ForgeFlow S.L. (http://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import models
class StockMove(models.Model):
_inherit = "stock.move"
def _find_buffers_to_update_nfp(self):
out_buffers, in_buffers = super()._find_buffers_to_update_nfp()
new_out_buffers = out_buffers
while new_out_buffers:
new_out_buffers = new_out_buffers.mapped("replaced_by_id")
out_buffers |= new_out_buffers
new_in_buffers = in_buffers
while new_in_buffers:
new_in_buffers = new_in_buffers.mapped("replaced_by_id")
in_buffers |= new_in_buffers
return out_buffers, in_buffers

View file

@ -0,0 +1,5 @@
* Lois Rilo <lois.rilo@forgeflow.com>
* Jordi Ballester <jordi.ballester@forgeflow.com>
* Akim Juillerat <akim.juillerat@camptocamp.com>
* `Trobz <https://trobz.com>`_:
* Khoi Vo <khoivha@trobz.com>

View file

@ -0,0 +1,5 @@
The initial development of this module has been financially supported by:
* Aleph Objects, Inc.
The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp

View file

@ -0,0 +1 @@
Provides a tool for product replacement.

View file

@ -0,0 +1,2 @@
* Option to create new buffer and make old ones inactive.
* Consider Demand estimates in the replacement.

View file

@ -0,0 +1,5 @@
Go to *Inventory > Configuration > DDMRP > Product Replacement Tool*.
Then you can fill the wizard options to complete the replacement. There are two
modes of operation: *Create a new buffer for the replacing product* and
*Replace product in existing buffers*.

View file

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_ddmrp_product_replace,access_ddmrp_product_replace,model_ddmrp_product_replace,ddmrp.group_stock_buffer_maintainer,1,1,1,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_ddmrp_product_replace access_ddmrp_product_replace model_ddmrp_product_replace ddmrp.group_stock_buffer_maintainer 1 1 1 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -0,0 +1,457 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>DDMRP Product Replace</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="ddmrp-product-replace">
<h1 class="title">DDMRP Product Replace</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:59c39d70f62bc4343b4a448e14736f3a68e2e50bf878c98f9425597f8b8367f9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/ddmrp/tree/16.0/ddmrp_product_replace"><img alt="OCA/ddmrp" src="https://img.shields.io/badge/github-OCA%2Fddmrp-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_product_replace"><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/ddmrp&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Provides a tool for product replacement.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-2">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#other-credits" id="toc-entry-7">Other credits</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>Go to <em>Inventory &gt; Configuration &gt; DDMRP &gt; Product Replacement Tool</em>.</p>
<p>Then you can fill the wizard options to complete the replacement. There are two
modes of operation: <em>Create a new buffer for the replacing product</em> and
<em>Replace product in existing buffers</em>.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Option to create new buffer and make old ones inactive.</li>
<li>Consider Demand estimates in the replacement.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/ddmrp/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/ddmrp/issues/new?body=module:%20ddmrp_product_replace%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<ul class="simple">
<li>ForgeFlow</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Lois Rilo &lt;<a class="reference external" href="mailto:lois.rilo&#64;forgeflow.com">lois.rilo&#64;forgeflow.com</a>&gt;</li>
<li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;forgeflow.com">jordi.ballester&#64;forgeflow.com</a>&gt;</li>
<li>Akim Juillerat &lt;<a class="reference external" href="mailto:akim.juillerat&#64;camptocamp.com">akim.juillerat&#64;camptocamp.com</a>&gt;</li>
<li><dl class="first docutils">
<dt><a class="reference external" href="https://trobz.com">Trobz</a>:</dt>
<dd><ul class="first last">
<li>Khoi Vo &lt;<a class="reference external" href="mailto:khoivha&#64;trobz.com">khoivha&#64;trobz.com</a>&gt;</li>
</ul>
</dd>
</dl>
</li>
</ul>
</div>
<div class="section" id="other-credits">
<h2><a class="toc-backref" href="#toc-entry-7">Other credits</a></h2>
<p>The initial development of this module has been financially supported by:</p>
<ul class="simple">
<li>Aleph Objects, Inc.</li>
</ul>
<p>The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp</p>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/JordiBForgeFlow"><img alt="JordiBForgeFlow" src="https://github.com/JordiBForgeFlow.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/LoisRForgeFlow"><img alt="LoisRForgeFlow" src="https://github.com/LoisRForgeFlow.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/ddmrp/tree/16.0/ddmrp_product_replace">OCA/ddmrp</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1 @@
from . import test_product_replace

View file

@ -0,0 +1,146 @@
# Copyright 2018 Camptocamp SA
# Copyright 2018-21 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from datetime import datetime, timedelta
from odoo.addons.ddmrp.tests.common import TestDdmrpCommon
class TestDDMRPProductReplace(TestDdmrpCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.buffer = cls.env.ref("ddmrp.stock_buffer_rm01")
cls.old_product = cls.env.ref("ddmrp.product_product_rm01")
cls.put_away_rule_obj = cls.env["stock.putaway.rule"]
cls.old_product.write(
{
"route_ids": [
(6, 0, [cls.env.ref("mrp.route_warehouse0_manufacture").id])
],
}
)
cls.old_product_putaway = cls.put_away_rule_obj.create(
{
"product_id": cls.old_product.id,
"location_in_id": cls.env.ref("stock.stock_location_stock").id,
"location_out_id": cls.env.ref("stock.stock_location_components").id,
}
)
# Change adu method:
method = cls.env.ref("ddmrp.adu_calculation_method_past_120")
cls.buffer.adu_calculation_method = method
def test_01_product_replace_use_existing(self):
date_move = datetime.today() - timedelta(days=30)
picking = self.create_picking_out(self.old_product, date_move, 60)
self._do_picking(picking, date_move)
self.buffer._calc_adu()
adu_previous = 60 / 120
self.assertEqual(self.buffer.adu, adu_previous)
self.assertEqual(self.buffer.product_id, self.old_product)
self.assertEqual(len(self.buffer.demand_product_ids), 0)
wiz = self.env["ddmrp.product.replace"].create(
{
"mode": "use_existing",
"old_product_ids": [(6, 0, self.buffer.product_id.ids)],
"use_existing": "new",
"new_product_name": "RM-01 Replacement",
"new_product_default_code": "ABCDE012345",
"copy_route": True,
"copy_putaway": True,
}
)
self.assertEqual(wiz.buffer_ids, self.buffer)
new_product_id = wiz.button_validate().get("res_id")
new_product = self.env["product.product"].browse(new_product_id)
self.assertEqual(new_product.name, "RM-01 Replacement")
self.assertEqual(new_product.default_code, "ABCDE012345")
self.assertEqual(new_product.route_ids, self.old_product.route_ids)
new_product_putaway = self.put_away_rule_obj.search(
[("product_id", "=", new_product.id)]
)
new_putaway_tuple = (
new_product_putaway.location_in_id.id,
new_product_putaway.location_out_id.id,
)
for putaway in self.old_product_putaway:
putaway_tuple = (putaway.location_in_id.id, putaway.location_out_id.id)
self.assertEqual(putaway_tuple, new_putaway_tuple)
self.assertEqual(self.buffer.product_id, new_product)
self.assertIn(self.old_product, self.buffer.demand_product_ids)
self.buffer._calc_adu()
self.assertEqual(self.buffer.adu, adu_previous)
def test_02_product_replace_new_buffer(self):
# Complete one delivery
date_move = datetime.today() - timedelta(days=30)
picking = self.create_picking_out(self.old_product, date_move, 60)
self._do_picking(picking, date_move)
# and confirm an incoming
self.create_picking_in(self.old_product, datetime.today(), 30)
self.buffer.cron_actions()
self.assertEqual(self.buffer.product_id, self.old_product)
self.assertEqual(len(self.buffer.demand_product_ids), 0)
old_onhand = self.buffer.product_location_qty_available_not_res
self.assertEqual(old_onhand, -60.0)
old_incoming_dlt_qty = self.buffer.incoming_dlt_qty
self.assertEqual(old_incoming_dlt_qty, 30.0)
old_incoming_qty = self.buffer.incoming_total_qty
self.assertEqual(old_incoming_qty, 30.0)
wiz = self.env["ddmrp.product.replace"].create(
{
"mode": "new_buffer",
"old_product_ids": [(6, 0, self.buffer.product_id.ids)],
"use_existing": "new",
"new_product_name": "RM-01 Replacement 2",
"new_product_default_code": "ABC000222",
"copy_route": True,
"copy_putaway": False,
}
)
self.assertEqual(wiz.buffer_ids, self.buffer)
self.assertFalse(wiz.is_already_replaced)
res = wiz.button_validate()
new_buffer_ids = res.get("domain")[0][2]
model = res.get("res_model")
self.assertEqual(model, "stock.buffer")
new_buffer = self.bufferModel.browse(new_buffer_ids)
self.assertEqual(len(new_buffer), 1)
self.assertNotEqual(self.buffer.id, new_buffer.id)
# Check new product
new_product = new_buffer.product_id
self.assertEqual(new_product.name, "RM-01 Replacement 2")
self.assertEqual(new_product.default_code, "ABC000222")
self.assertEqual(new_product.route_ids, self.old_product.route_ids)
self.assertNotEqual(self.buffer.product_id, new_product)
# Check replacing fields in buffers:
self.assertEqual(self.buffer.replaced_by_id, new_buffer)
self.assertTrue(new_buffer.is_replacement_product)
self.assertTrue(new_buffer.use_replacement_for_buffer_status)
# Check buffer values:
self.buffer.cron_actions()
self.assertEqual(old_onhand, new_buffer.product_location_qty_available_not_res)
self.assertEqual(old_incoming_dlt_qty, new_buffer.incoming_dlt_qty)
self.assertEqual(old_incoming_qty, new_buffer.incoming_total_qty)
new_buffer.invalidate_recordset()
new_buffer.use_replacement_for_buffer_status = False
new_buffer.cron_actions()
self.assertNotEqual(
old_onhand, new_buffer.product_location_qty_available_not_res
)
self.assertNotEqual(old_incoming_dlt_qty, new_buffer.incoming_dlt_qty)
self.assertNotEqual(old_incoming_qty, new_buffer.incoming_total_qty)
# Demand:
self.assertIn(self.old_product, new_buffer.demand_product_ids)
self.assertEqual(new_buffer.qualified_demand, 0)
self.create_picking_out(self.old_product, datetime.today(), 11)
self.buffer.cron_actions()
self.assertEqual(self.buffer.qualified_demand, 11)
new_buffer.cron_actions()
self.assertEqual(new_buffer.qualified_demand, 11)

View file

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019-21 ForgeFlow S.L. (https://www.forgeflow.com)
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo>
<record id="stock_buffer_view_form" model="ir.ui.view">
<field name="name">stock.buffer.form - ddmrp_product_replace</field>
<field name="model">stock.buffer</field>
<field name="inherit_id" ref="ddmrp.stock_buffer_view_form" />
<field name="arch" type="xml">
<sheet position="before">
<div
class="alert alert-danger"
role="alert"
attrs="{'invisible': [('replaced_by_id', '=', False)]}"
style="margin-bottom:0px;"
>
<p>
<i
class="fa fa-info-circle"
title="fa fa-info-circle"
style="margin-right:5px"
/>
<field name="replaced_by_alert_text" />
</p>
</div>
</sheet>
<div name="button_box" position="inside">
<button
type="object"
name="action_view_buffers_replaced"
class="oe_stat_button"
icon="fa-signal"
attrs="{'invisible': [('replacement_for_count', '=', 0)]}"
>
<field
name="replacement_for_count"
widget="statinfo"
string="Replacement for"
/>
</button>
</div>
<field name="product_vendor_code" position="after">
<field name="replaced_by_id" />
</field>
<notebook position="inside">
<page
name="product_replacement"
string="Product Replacement"
attrs="{'invisible': [('demand_product_ids','=',[]), ('replacement_for_count', '=', 0)]}"
groups="stock.group_stock_manager"
>
<group>
<field name="demand_product_ids" widget="many2many_tags" />
<field name="is_replacement_product" />
<field name="use_replacement_for_buffer_status" />
</group>
</page>
</notebook>
</field>
</record>
<record id="stock_buffer_view_tree" model="ir.ui.view">
<field name="name">stock.buffer.tree - ddmrp_product_replace</field>
<field name="model">stock.buffer</field>
<field name="inherit_id" ref="ddmrp.stock_buffer_view_tree" />
<field name="arch" type="xml">
<field name="top_of_green" position="after">
<field name="replaced_by_id" optional="hide" />
<field name="is_replacement_product" optional="hide" />
</field>
</field>
</record>
<record id="stock_buffer_search" model="ir.ui.view">
<field name="name">stock.buffer.search - ddmrp_product_replace</field>
<field name="model">stock.buffer</field>
<field name="inherit_id" ref="ddmrp.stock_buffer_search" />
<field name="arch" type="xml">
<filter name="has_distributed_source_location_qty" position="after">
<separator />
<filter
name="is_replacement_product_filter"
string="Replacement Product"
domain="[('is_replacement_product', '=', True)]"
/>
</filter>
</field>
</record>
</odoo>

View file

@ -0,0 +1,2 @@
from . import ddmrp_product_replace
from . import make_procurement_buffer

View file

@ -0,0 +1,224 @@
# Copyright 2017-21 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class DdmrpProductReplace(models.TransientModel):
_name = "ddmrp.product.replace"
_description = "DDMRP Product Replace"
old_product_ids = fields.Many2many(
comodel_name="product.product",
string="Replaced Products",
help="Product to be replaced.",
required=True,
ondelete="cascade",
)
multi_product = fields.Boolean(compute="_compute_multi_product")
primary_old_product_id = fields.Many2one(
string="Primary Replaced Product",
comodel_name="product.product",
compute="_compute_primary_old_product_id",
store=True,
readonly=False,
domain="[('id', 'in', old_product_ids)]",
)
buffer_ids = fields.Many2many(
comodel_name="stock.buffer",
string="Affected Buffers",
readonly=False,
compute="_compute_buffer_ids",
store=True,
)
is_already_replaced = fields.Boolean(
compute="_compute_is_already_replaced",
)
new_product_id = fields.Many2one(
comodel_name="product.product",
string="Substitute Product",
help="Product that is going to replace the other one.",
)
mode = fields.Selection(
selection=[
("new_buffer", "Create a new buffer for the replacing product."),
("use_existing", "Replace product in existing buffers"),
],
default="new_buffer",
required=True,
)
use_existing = fields.Selection(
string="Use Existing/New Product",
required=True,
selection=[("existing", "Use Existing Product"), ("new", "Create New Product")],
)
new_product_name = fields.Char()
new_product_default_code = fields.Char(string="New Product Internal Ref.")
copy_route = fields.Boolean(string="Copy Routes")
copy_putaway = fields.Boolean(string="Copy Put Away Strategy")
copy_packaging = fields.Boolean()
consider_past_demand = fields.Boolean(
string="Consider Old Product Demand",
help="Consider Old product moves as demand for new product",
default=True,
)
@api.depends("old_product_ids")
def _compute_multi_product(self):
for rec in self:
rec.multi_product = len(rec.old_product_ids) > 1
@api.depends("old_product_ids")
def _compute_primary_old_product_id(self):
for rec in self:
product = fields.first(rec.old_product_ids)
if isinstance(product.id, models.NewId):
# NewId instances are not handled correctly in v13, this is a
# small workaround. In future versions it might not be needed.
product_id = product.id.origin
product = self.env["product.product"].browse(product_id)
rec.primary_old_product_id = product
@api.depends("old_product_ids")
def _compute_buffer_ids(self):
for rec in self:
rec.buffer_ids = self.env["stock.buffer"].search(
[("product_id", "in", rec.old_product_ids.ids)]
)
@api.depends("buffer_ids")
def _compute_is_already_replaced(self):
for rec in self:
rec.is_already_replaced = any(b.replaced_by_id for b in rec.buffer_ids)
@api.constrains("buffer_ids")
def _check_buffer_ids(self):
for rec in self:
if rec.old_product_ids and any(
b.product_id not in rec.old_product_ids for b in rec.buffer_ids
):
raise ValidationError(
_(
"Some of the affected buffers have a different product than "
"the replaced ones."
)
)
def _do_replacement_use_existing(self):
vals = {
"product_id": self.new_product_id.id,
}
if self.consider_past_demand:
vals["demand_product_ids"] = [
(6, 0, (self.old_product_ids + self.new_product_id).ids)
]
self.buffer_ids.write(vals)
return {
"name": _("Replacing Product"),
"res_id": self.new_product_id.id,
"view_type": "form",
"view_mode": "form",
"res_model": "product.product",
"type": "ir.actions.act_window",
}
def _do_replacement_new_buffer(self):
primary_old = self.primary_old_product_id
new_buffers = self.env["stock.buffer"]
for replaced in self.buffer_ids.filtered(lambda b: b.product_id == primary_old):
default = dict(
product_id=self.new_product_id.id,
auto_procure=False,
demand_product_ids=False,
)
replacing = replaced.copy(default=default)
replaced.write({"replaced_by_id": replacing.id})
new_buffers |= replacing
for replaced in self.buffer_ids.filtered(lambda b: b.product_id != primary_old):
# Do not create buffers for non-primary products.
# Instead assign one of the already created.
replacing = fields.first(
new_buffers.filtered(lambda b: b.location_id == replaced.location_id)
)
if not replacing:
replacing = new_buffers[0]
replaced.write({"replaced_by_id": replacing.id})
if self.consider_past_demand:
for buffer in new_buffers:
recursive_buffers = buffer._recursive_replacement_for_ids(
buffer.replacement_for_ids
)
buffer.write(
{
"demand_product_ids": [
(
6,
0,
(
recursive_buffers.mapped("product_id")
+ buffer.product_id
).ids,
)
],
}
)
new_buffers.cron_actions()
return {
"name": _("New Stock Buffers"),
"domain": [("id", "in", new_buffers.ids)],
"view_mode": "tree,form",
"res_model": "stock.buffer",
"type": "ir.actions.act_window",
}
def button_validate(self):
self.ensure_one()
if self.is_already_replaced:
raise ValidationError(_("Some of the buffers have already been replaced."))
if not self.buffer_ids:
raise ValidationError(_("No affected buffers found."))
# Only the first product is used as a template to create new products/buffers.
primary_old = self.primary_old_product_id
if self.use_existing == "new":
default = dict(
name=self.new_product_name,
default_code=self.new_product_default_code,
)
if not self.copy_route:
default["route_ids"] = None
self.new_product_id = primary_old.copy(default=default)
elif self.use_existing == "existing":
if self.copy_route:
self.new_product_id.write(
{"route_ids": [(6, 0, primary_old.route_ids.ids)]}
)
# Check if copy putaway strategies is True
if self.copy_putaway:
# Check if there exist putaway strategies for the from product
putaway_ids = self.env["stock.putaway.rule"].search(
[("product_id", "=", primary_old.id)]
)
if putaway_ids:
# Copy putaway strategies
default_putaway = dict(
product_id=self.new_product_id.id,
)
for pa in putaway_ids:
pa.copy(default=default_putaway)
if self.copy_packaging:
packs = self.env["product.packaging"].search(
[("product_id", "=", primary_old.id)]
)
if packs:
default_packs = dict(
product_id=self.new_product_id.id,
)
for pack in packs:
pack.copy(default=default_packs)
if self.mode == "use_existing":
res = self._do_replacement_use_existing()
elif self.mode == "new_buffer":
res = self._do_replacement_new_buffer()
return res

View file

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-21 ForgeFlow S.L. (https://www.forgeflow.com)
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). -->
<odoo>
<record id="view_ddmrp_adjustment_sheet_wizard_form" model="ir.ui.view">
<field name="name">ddmrp.product.replace.form</field>
<field name="model">ddmrp.product.replace</field>
<field name="arch" type="xml">
<form string="Product Replacement Tool">
<group>
<field name="mode" />
</group>
<group name="old_product" string="Select Replaced Products">
<field
name="old_product_ids"
widget="many2many_tags"
options="{'no_create': True}"
/>
<field name="multi_product" invisible="1" />
<div
attrs="{'invisible': [('multi_product', '=', False)]}"
colspan="2"
>
<p> <i class="fa fa-info-circle" style="margin-right:5px" />
When there are more than one product replaced, only the buffer(s) of the primary product in
this list will be used to create the buffer(s) and/or product(s) for replacement.
</p>
</div>
<field
name="primary_old_product_id"
attrs="{'invisible': [('multi_product', '=', False)]}"
/>
<field name="buffer_ids">
<tree decoration-danger="replaced_by_id">
<field name="name" />
<field name="warehouse_id" />
<field name="location_id" />
<field
name="company_id"
groups="base.group_multi_company"
/>
<field name="replaced_by_id" optional="hide" />
</tree>
</field>
<field name="is_already_replaced" invisible="1" />
</group>
<group name="new_product" string="Select Replacing Product">
<field name="use_existing" />
<field
name="new_product_id"
attrs="{'invisible': [('use_existing', '!=', 'existing')]}"
/>
<field
name="new_product_default_code"
attrs="{'invisible': [('use_existing', '!=', 'new')]}"
/>
<field
name="new_product_name"
attrs="{'invisible': [('use_existing', '!=', 'new')]}"
/>
<field name="copy_route" />
<field name="copy_putaway" />
<field name="copy_packaging" />
<field name="consider_past_demand" />
</group>
<footer>
<button
name="button_validate"
string="Validate"
type="object"
class="oe_highlight"
/> or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_ddmrp_product_replace_wizard">
<field name="name">Product Replacement Tool</field>
<field name="res_model">ddmrp.product.replace</field>
<field name="binding_model_id" ref="model_ddmrp_product_replace" />
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem
id="menu_ddmrp_product_replace"
parent="ddmrp.menu_ddmrp_config"
action="action_ddmrp_product_replace_wizard"
groups="stock.group_stock_manager"
/>
</odoo>

View file

@ -0,0 +1,35 @@
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
class MakeProcurementBuffer(models.TransientModel):
_inherit = "make.procurement.buffer"
has_replaced_buffers = fields.Boolean(
compute="_compute_replaced_by_alert_text",
)
replaced_by_alert_text = fields.Text(
compute="_compute_replaced_by_alert_text",
)
@api.depends("item_ids")
def _compute_replaced_by_alert_text(self):
for rec in self:
if any(r.buffer_id.replaced_by_id for r in rec.item_ids):
rec.has_replaced_buffers = True
alert_text = _("Some products are being replaced:")
for item in rec.item_ids:
if item.buffer_id.replaced_by_id:
replacement = item.buffer_id.replaced_by_id
alert_text += "\n - {} ({}) replaced by {} ({})".format(
item.buffer_id.display_name,
item.buffer_id.product_id.display_name,
replacement.display_name,
replacement.product_id.display_name,
)
rec.replaced_by_alert_text = alert_text
else:
rec.has_replaced_buffers = False
rec.replaced_by_alert_text = ""

View file

@ -0,0 +1,30 @@
<?xml version="1.0" ?>
<odoo>
<record id="view_make_procurement_buffer_wizard" model="ir.ui.view">
<field name="name">Request Procurement</field>
<field name="model">make.procurement.buffer</field>
<field name="inherit_id" ref="ddmrp.view_make_procurement_buffer_wizard" />
<field name="arch" type="xml">
<xpath expr="//p[hasclass('oe_gray')][last()]" position="after">
<div
class="alert alert-danger"
role="alert"
attrs="{'invisible': [('has_replaced_buffers', '=', False)]}"
style="margin-bottom:0px;"
>
<p>
<span
class="fa fa-info-circle"
title="fa fa-info-circle"
style="margin-right:5px"
/>
<field name="replaced_by_alert_text" style="display:inline;" />
</p>
</div>
</xpath>
<field name="partner_id" position="after">
<field name="has_replaced_buffers" invisible="1" />
</field>
</field>
</record>
</odoo>

View file

@ -0,0 +1,32 @@
# Architecture
```mermaid
flowchart TD
U[Users] -->|HTTP| V[Views and QWeb Templates]
V --> C[Controllers]
V --> W[Wizards Transient Models]
C --> M[Models and ORM]
W --> M
M --> R[Reports]
DX[Data XML] --> M
S[Security ACLs and Groups] -. enforces .-> M
subgraph Ddmrp_product_replace Module - ddmrp_product_replace
direction LR
M:::layer
W:::layer
C:::layer
V:::layer
R:::layer
S:::layer
DX:::layer
end
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
```
Notes
- Views include tree/form/kanban templates and report templates.
- Controllers provide website/portal routes when present.
- Wizards are UI flows implemented with `models.TransientModel`.
- Data XML loads data/demo records; Security defines groups and access.

View file

@ -0,0 +1,3 @@
# Configuration
Refer to Odoo settings for ddmrp_product_replace. Configure related models, access rights, and options as needed.

View file

@ -0,0 +1,3 @@
# Controllers
This module does not define custom HTTP controllers.

View file

@ -0,0 +1,5 @@
# Dependencies
This addon depends on:
- [ddmrp](../../odoo-bringout-oca-ddmrp-ddmrp)

View file

@ -0,0 +1,4 @@
# FAQ
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
- Q: How to enable? A: Start server with --addon ddmrp_product_replace or install in UI.

View file

@ -0,0 +1,7 @@
# Install
```bash
pip install odoo-bringout-oca-ddmrp-ddmrp_product_replace"
# or
uv pip install odoo-bringout-oca-ddmrp-ddmrp_product_replace"
```

View file

@ -0,0 +1,13 @@
# Models
Detected core models and extensions in ddmrp_product_replace.
```mermaid
classDiagram
class stock_buffer
class stock_move
```
Notes
- Classes show model technical names; fields omitted for brevity.
- Items listed under _inherit are extensions of existing models.

View file

@ -0,0 +1,6 @@
# Overview
Packaged Odoo addon: ddmrp_product_replace. Provides features documented in upstream Odoo 16 under this addon.
- Source: OCA/OCB 16.0, addon ddmrp_product_replace
- License: LGPL-3

View file

@ -0,0 +1,3 @@
# Reports
This module does not define custom reports.

View file

@ -0,0 +1,34 @@
# Security
Access control and security definitions in ddmrp_product_replace.
## Access Control Lists (ACLs)
Model access permissions defined in:
- **[ir.model.access.csv](../ddmrp_product_replace/security/ir.model.access.csv)**
- 1 model access rules
## Record Rules
Row-level security rules defined in:
```mermaid
graph TB
subgraph "Security Layers"
A[Users] --> B[Groups]
B --> C[Access Control Lists]
C --> D[Models]
B --> E[Record Rules]
E --> F[Individual Records]
end
```
Security files overview:
- **[ir.model.access.csv](../ddmrp_product_replace/security/ir.model.access.csv)**
- Model access permissions (CRUD rights)
Notes
- Access Control Lists define which groups can access which models
- Record Rules provide row-level security (filter records by user/group)
- Security groups organize users and define permission sets
- All security is enforced at the ORM level by Odoo

View file

@ -0,0 +1,5 @@
# Troubleshooting
- Ensure Python and Odoo environment matches repo guidance.
- Check database connectivity and logs if startup fails.
- Validate that dependent addons listed in DEPENDENCIES.md are installed.

View file

@ -0,0 +1,7 @@
# Usage
Start Odoo including this addon (from repo root):
```bash
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon ddmrp_product_replace
```

View file

@ -0,0 +1,3 @@
# Wizards
This module does not include UI wizards.

View file

@ -0,0 +1,42 @@
[project]
name = "odoo-bringout-oca-ddmrp-ddmrp_product_replace"
version = "16.0.0"
description = "DDMRP Product Replace - Provides a assisting tool for product replacement."
authors = [
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
]
dependencies = [
"odoo-bringout-oca-ddmrp-ddmrp>=16.0.0",
"requests>=2.25.1"
]
readme = "README.md"
requires-python = ">= 3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
]
[project.urls]
homepage = "https://github.com/bringout/0"
repository = "https://github.com/bringout/0"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["ddmrp_product_replace"]
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=8.4.1",
]