Skip to content

Commit

Permalink
[FIX] repair_type: Remove duplicated destination location for added p…
Browse files Browse the repository at this point in the history
…arts and add product destination location
  • Loading branch information
ppyczko committed Nov 27, 2024
1 parent b40101b commit 4cd121b
Show file tree
Hide file tree
Showing 12 changed files with 153 additions and 305 deletions.
20 changes: 12 additions & 8 deletions repair_type/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ Repair Type

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

This module adds the source location from removing and recycling
components. If we select the both locations on stock picking type when
you select that in a Repair Order, Odoo will automatically set that in
stock moves for that components.
This module adds support for source locations when adding, removing, or
recycling components. If you specify any of these types in a Repair
Order, Odoo will automatically apply the corresponding locations from
the related stock picking type to the stock moves.

Additionally, it adds a default destination location for the repaired
product.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Expand All @@ -46,10 +49,11 @@ stock moves for that components.
Usage
=====

Set stock picking type for repairs and select source locations for
removing and recycling components. Afterwards selecting that stock
picking type on a Repair Order will automatically put that source
location on stock moves of that components.
- Set the stock picking type for repairs and define source locations
for adding, removing and recycling components.
- When you select this stock picking type in a Repair Order, Odoo will
automatically assign the specified source locations to the stock
moves for the respective components.

Bug Tracker
===========
Expand Down
32 changes: 13 additions & 19 deletions repair_type/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,19 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-27 13:31+0000\n"
"PO-Revision-Date: 2024-06-27 13:31+0000\n"
"POT-Creation-Date: 2024-11-27 15:14+0000\n"
"PO-Revision-Date: 2024-11-27 15:14+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: repair_type
#: model:ir.model.fields,field_description:repair_type.field_stock_picking_type__default_add_location_dest_id
msgid "Default Add Destination Location"
msgstr ""

#. module: repair_type
#: model:ir.model.fields,field_description:repair_type.field_stock_picking_type__default_add_location_src_id
msgid "Default Add Source Location"
msgstr ""
msgstr "Ubicación de origen por defecto para añadir"

#. module: repair_type
#: model:ir.model.fields,field_description:repair_type.field_stock_picking_type__default_recycle_location_src_id
Expand All @@ -39,35 +33,35 @@ msgstr "Ubicación de origen por defecto para eliminar"
#. module: repair_type
#: model:ir.model,name:repair_type.model_stock_picking_type
msgid "Picking Type"
msgstr "Tipo de recolección"
msgstr "Tipo de albarán"

#. module: repair_type
#: model:ir.model,name:repair_type.model_repair_order
msgid "Repair Order"
msgstr "Orden de reparación"

#. module: repair_type
#: model:ir.model,name:repair_type.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de stock"

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_add_location_dest_id
msgid ""
"This is the default add destination location when you create a repair order "
"with this operation type."
msgstr ""

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_add_location_src_id
msgid ""
"This is the default add source location when you create a repair order with "
"this operation type."
msgstr ""
"Esta es la ubicación de origen por defecto para añadir cuando cree una orden"
" de reparación con este tipo de operación."

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_recycle_location_src_id
msgid ""
"This is the default recycle source location when you create a repair order "
"with this operation type."
msgstr ""
"Esta es la ubicación de origen por defecto para el reciclaje cuando cree una "
"orden de reparación con este tipo de operación."
"Esta es la ubicación de origen por defecto para el reciclaje cuando cree una"
" orden de reparación con este tipo de operación."

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_remove_location_src_id
Expand Down
89 changes: 13 additions & 76 deletions repair_type/i18n/hr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-08-22 14:07+0000\n"
"Last-Translator: Bole <[email protected]>\n"
"Language-Team: none\n"
"Language: hr\n"
"POT-Creation-Date: 2024-11-27 15:16+0000\n"
"PO-Revision-Date: 2024-11-27 15:16+0000\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: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: repair_type
#: model:ir.model.fields,field_description:repair_type.field_stock_picking_type__default_add_location_dest_id
msgid "Default Add Destination Location"
msgstr ""
"Plural-Forms: \n"

#. module: repair_type
#: model:ir.model.fields,field_description:repair_type.field_stock_picking_type__default_add_location_src_id
Expand All @@ -40,19 +33,17 @@ msgstr ""
#. module: repair_type
#: model:ir.model,name:repair_type.model_stock_picking_type
msgid "Picking Type"
msgstr ""
msgstr "Vrsta dokumenta"

#. module: repair_type
#: model:ir.model,name:repair_type.model_stock_move
msgid "Stock Move"
msgstr ""
#: model:ir.model,name:repair_type.model_repair_order
msgid "Repair Order"
msgstr "Nalog za popravak"

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_add_location_dest_id
msgid ""
"This is the default add destination location when you create a repair order "
"with this operation type."
msgstr ""
#: model:ir.model,name:repair_type.model_stock_move
msgid "Stock Move"
msgstr "Skladišni prijenos"

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_add_location_src_id
Expand All @@ -74,57 +65,3 @@ msgid ""
"This is the default remove source location when you create a repair order "
"with this operation type."
msgstr ""

#~ msgid "Created by"
#~ msgstr "Kreirao"

#~ msgid "Created on"
#~ msgstr "Kreirano"

#~ msgid "Dest. Location"
#~ msgstr "Odredišna lokacija"

#~ msgid "Destination Location Add Component"
#~ msgstr "Dodaj komponentu na odredišnu lokaciju"

#~ msgid "Destination Location Remove Component"
#~ msgstr "Ukloni komponentu sa odredišne lokacije"

#~ msgid "Display Name"
#~ msgstr "Naziv"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Zadnje modificirano"

#~ msgid "Last Updated by"
#~ msgstr "Zadnje ažurirano"

#~ msgid "Location"
#~ msgstr "Lokacija"

#~ msgid "Repair Line (parts)"
#~ msgstr "Stavka popravka (dijelovi)"

#~ msgid "Repair Order"
#~ msgstr "Nalog za popravak"

#~ msgid "Repair Type"
#~ msgstr "Vrsta popravka"

#~ msgid "Repair Type Name"
#~ msgstr "Naziv vrste popravka"

#~ msgid "Repair Types"
#~ msgstr "Vrste popravaka"

#~ msgid "Repair types"
#~ msgstr "Vrste popravaka"

#~ msgid "Source Location"
#~ msgstr "Izvorišna lokacija"

#~ msgid "Destination Location"
#~ msgstr "Odredišna lokacija"
109 changes: 12 additions & 97 deletions repair_type/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-22 10:06+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"POT-Creation-Date: 2024-11-27 15:17+0000\n"
"PO-Revision-Date: 2024-11-27 15:17+0000\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: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: repair_type
#: model:ir.model.fields,field_description:repair_type.field_stock_picking_type__default_add_location_dest_id
msgid "Default Add Destination Location"
msgstr "Aggiungi ubicazione destinazione in modo predefinito"
"Plural-Forms: \n"

#. module: repair_type
#: model:ir.model.fields,field_description:repair_type.field_stock_picking_type__default_add_location_src_id
Expand All @@ -39,22 +33,18 @@ msgstr "Rimuovi ubicazione origine in modo predefinito"
#. module: repair_type
#: model:ir.model,name:repair_type.model_stock_picking_type
msgid "Picking Type"
msgstr "Tipo prelievo"
msgstr "Tipologia prelievo"

#. module: repair_type
#: model:ir.model,name:repair_type.model_repair_order
msgid "Repair Order"
msgstr "Ordine di riparazione"

#. module: repair_type
#: model:ir.model,name:repair_type.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_add_location_dest_id
msgid ""
"This is the default add destination location when you create a repair order "
"with this operation type."
msgstr ""
"Questa è la destinazione predefinita aggiunta quando si crea un ordine di "
"riparazione con questo tipo di operazione."

#. module: repair_type
#: model:ir.model.fields,help:repair_type.field_stock_picking_type__default_add_location_src_id
msgid ""
Expand All @@ -81,78 +71,3 @@ msgid ""
msgstr ""
"Questa è l'ubicazione rimozione predefinita aggiunta quando si crea un "
"ordine di riparazione con questo tipo operazione."

#~ msgid "Created by"
#~ msgstr "Creato da"

#~ msgid "Created on"
#~ msgstr "Creato il"

#~ msgid "Dest. Location"
#~ msgstr "Ubicazione dest."

#~ msgid "Destination Location Add Component"
#~ msgstr "Aggiungi componente ubicazione destinazione"

#~ msgid "Destination Location Remove Component"
#~ msgstr "Rimuovi componente ubicazione destinazione"

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"

#~ msgid "Last Updated by"
#~ msgstr "Ultimo aggiornamento di"

#~ msgid "Last Updated on"
#~ msgstr "Ultimo aggiornamento il"

#~ msgid "Location"
#~ msgstr "Ubicazione"

#~ msgid "Repair Line (parts)"
#~ msgstr "Riga riparazione (componenti)"

#~ msgid "Repair Order"
#~ msgstr "Ordine di riparazione"

#~ msgid "Repair Type"
#~ msgstr "Tipo riparazione"

#~ msgid "Repair Type Name"
#~ msgstr "Nome tipo riparazione"

#~ msgid "Repair Types"
#~ msgstr "Tipi riparazione"

#~ msgid "Repair types"
#~ msgstr "Tipi riparazione"

#~ msgid "Source Location"
#~ msgstr "Ubicazione di origine"

#~ msgid "Source Location Add Component"
#~ msgstr "Aggiungi componente ubicazione origine"

#~ msgid "Source Location Remove Component"
#~ msgstr "Rimuovi componente ubicazione origine"

#~ msgid ""
#~ "This is the location where the part of the product to add is located."
#~ msgstr ""
#~ "Questa è l'ubicazione dove si trova il componenti del prodotto da "
#~ "aggiungere."

#~ msgid ""
#~ "This is the location where the part of the product to remove is located."
#~ msgstr ""
#~ "Questa è l'ubicazione dove si trava il componente del prodotto da "
#~ "rimuovere."

#~ msgid "This is the location where the product to repair is located."
#~ msgstr "Questa è l'ubicazione dove si trova il prodotto da riparare."
Loading

0 comments on commit 4cd121b

Please sign in to comment.