Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] hr_personal_equipment_stock: Migration to 16.0 #1394

Merged
merged 15 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions hr_personal_equipment_stock/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
===========================
Hr Personal Equipment Stock
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e9bc6ce5958557b4e98dd58142582801580d20a5ffcb89549d5cad0fbe26c14d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/16.0/hr_personal_equipment_stock
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_personal_equipment_stock
: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/hr&target_branch=16.0
:alt: Try me on Runboat

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

This module integrates stock with hr_personal_equipment_request module.
When the equipment request is accepted, a stock request is generated and a "stock.move" is created for each request line.
If the "stock.move" is marked as done, the corresponding allocations are marked as valid if the quantity_delivered is equal to the requested quantity.
In case a service is added to the equipment request, it will skip the procurement method. Instead, it has to be validated from the corresponding allocation.
In case a backorder is generated and cancelled afterwards, if qty_delivered is not null, the allocation is marked as valid. If not, it is marked as cancelled.

**Table of contents**

.. contents::
:local:

Installation
============

This module is auto installed if the modules "hr_personal_equipment_request" and "stock" are installed.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/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/hr/issues/new?body=module:%20hr_personal_equipment_stock%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
~~~~~~~

* Creu Blanca

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

* Alba Riera <[email protected]>

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

This module is maintained by the OCA.

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

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

This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/16.0/hr_personal_equipment_stock>`_ project on GitHub.

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

{
"name": "Hr Personal Equipment Stock",
"summary": """
This addon allows to integrate hr_personal_equipment_request with stock""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr",
"depends": ["hr_personal_equipment_request", "stock"],
"data": [
"views/stock_location.xml",
"views/stock_move.xml",
"views/procurement_group.xml",
"views/hr_personal_equipment.xml",
"views/hr_personal_equipment_request.xml",
"views/stock_picking.xml",
],
"auto_install": True,
}
152 changes: 152 additions & 0 deletions hr_personal_equipment_stock/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_personal_equipment_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-18 21:33+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\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: hr_personal_equipment_stock
#: model:ir.model,name:hr_personal_equipment_stock.model_hr_personal_equipment
msgid "Adds personal equipment information and allocation"
msgstr "Agrega información y destribución de equipo personal"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment__qty_delivered
msgid "Delivered Quantity"
msgstr "Cantidad Entregada"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment__display_name
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment_request__display_name
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_procurement_group__display_name
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_location__display_name
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_move__display_name
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_picking__display_name
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_rule__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_move__personal_equipment_id
msgid "Employee Personal Equipment"
msgstr "Equipamiento Personal de Empleado"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_procurement_group__equipment_request_id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_picking__equipment_request_id
msgid "Equipment Request"
msgstr "Solicitud de equipamiento"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment__id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment_request__id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_procurement_group__id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_location__id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_move__id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_picking__id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_rule__id
msgid "ID"
msgstr "ID"

#. module: hr_personal_equipment_stock
#: model:ir.model,name:hr_personal_equipment_stock.model_stock_location
msgid "Inventory Locations"
msgstr "Ubicaciones de inventario"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_location__is_personal_equipment_location
msgid "Is personal equipment location?"
msgstr "Es una ubicación de equipamiento personal?"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment____last_update
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment_request____last_update
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_procurement_group____last_update
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_location____last_update
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_move____last_update
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_picking____last_update
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_stock_rule____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment__location_id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment_request__location_id
msgid "Location"
msgstr "Ubicación"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,help:hr_personal_equipment_stock.field_hr_personal_equipment__procurement_group_id
#: model:ir.model.fields,help:hr_personal_equipment_stock.field_hr_personal_equipment_request__procurement_group_id
msgid ""
"Moves created through this stock request will be put in this procurement "
"group. If none is given, the moves generated by procurement rules will be "
"grouped into one big picking."
msgstr ""
"Los movimientos creados a través de esta solicitud de existencias se "
"colocarán en este grupo de compras. Si no se proporciona ninguno, los "
"movimientos generados por las reglas de adquisición se agruparán en una gran "
"selección."

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment_request__picking_ids
msgid "Picking"
msgstr "Transferencia"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment_request__picking_count
msgid "Picking Count"
msgstr "Cuenta de transferencias"

#. module: hr_personal_equipment_stock
#: model_terms:ir.ui.view,arch_db:hr_personal_equipment_stock.hr_personal_equipment_request_form_view_picking
msgid "Pickings"
msgstr "Transferencias"

#. module: hr_personal_equipment_stock
#: model:ir.model,name:hr_personal_equipment_stock.model_procurement_group
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment__procurement_group_id
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment_request__procurement_group_id
msgid "Procurement Group"
msgstr "Grupo de Adquisiciones"

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment__skip_procurement
msgid "Skip Procurement"
msgstr "Saltar Adquisiciones"

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

#. module: hr_personal_equipment_stock
#: model:ir.model.fields,field_description:hr_personal_equipment_stock.field_hr_personal_equipment__move_ids
msgid "Stock Moves"
msgstr "Movimientos de existencias"

#. module: hr_personal_equipment_stock
#: model:ir.model,name:hr_personal_equipment_stock.model_stock_rule
msgid "Stock Rule"
msgstr "Regla de existencias"

#. module: hr_personal_equipment_stock
#: model:ir.model,name:hr_personal_equipment_stock.model_hr_personal_equipment_request
msgid "This model allows to create a personal equipment request"
msgstr "Este modelo permite crear solicitudes de equipamiento personal"

#. module: hr_personal_equipment_stock
#: model:ir.model,name:hr_personal_equipment_stock.model_stock_picking
msgid "Transfer"
msgstr "Transferencia"
Loading
Loading