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

[14.0] [ADD] egd_stock_picking_custom: add new module #2

Closed
wants to merge 3 commits into from
Closed
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
65 changes: 65 additions & 0 deletions egd_stock_picking_custom/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
========================
Egd Stock Picking Custom
========================

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

.. |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-Escodoo%2Fegd--addons-lightgray.png?logo=github
:target: https://github.com/Escodoo/egd-addons/tree/14.0/egd_stock_picking_custom
:alt: Escodoo/egd-addons

|badge1| |badge2| |badge3|

Description
===========

This module implements the equipment loan report functionality for both partners and employees.

When an employee requests equipment, the report captures essential details, including the requester's information and the specifics of the requested equipment.

In cases of material loans to partners, it's necessary to designate the responsible employee for custody, as they will also handle the material delivery. As a result, the report contains information about the individual responsible for delivering materials to the partner, along with details of the delivered products.

To access this report, simply click the 'Print' button labeled 'EGD Custody.' Once selected, the report will be generated with the data from the picking process.


**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/Escodoo/egd-addons/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/Escodoo/egd-addons/issues/new?body=module:%20egd_stock_picking_custom%0Aversion:%2014.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
~~~~~~~

* Escodoo

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

This module is part of the `Escodoo/egd-addons <https://github.com/Escodoo/egd-addons/tree/14.0/egd_stock_picking_custom>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions egd_stock_picking_custom/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
26 changes: 26 additions & 0 deletions egd_stock_picking_custom/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2023 Escodoo
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Egd Stock Picking Custom",
"summary": """
Customizações no módulo Stock Pincking""",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "Escodoo",
"website": "https://github.com/Escodoo/egd-addons",
"depends": [
"stock_analytic",
"product_expiry",
"hr_personal_equipment_request",
],
"data": [
"views/egd_stock_picking_custom.xml",
"views/egd_stock_product_lot_custom.xml",
"report/report_egd_cautela.xml",
"report/report_egd.xml",
],
"demo": [
"demo/egd_stock_picking_custom.xml",
],
}
12 changes: 12 additions & 0 deletions egd_stock_picking_custom/demo/egd_stock_picking_custom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright TODAY Escodoo
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">

<!-- TODO
<record model="egd_stock_picking_custom" id="egd_stock_picking_custom_demo_1">
<field name="name">...</field>
</record>
-->

</odoo>
2 changes: 2 additions & 0 deletions egd_stock_picking_custom/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import egd_stock_picking_custom
from . import egd_stock_product_lot_custom
12 changes: 12 additions & 0 deletions egd_stock_picking_custom/models/egd_stock_picking_custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright TODAY Escodoo
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models


class EgdStockPickingCustom(models.Model):
_inherit = "stock.picking"

responsable = fields.Many2one(
string="Responsável da Cautela",
comodel_name="hr.employee",
)
12 changes: 12 additions & 0 deletions egd_stock_picking_custom/models/egd_stock_product_lot_custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright TODAY Escodoo
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class EgdStockProductLotCustom(models.Model):
_inherit = "stock.production.lot"

certificado = fields.Char(
string="Número de Certificado",
)
Empty file.
9 changes: 9 additions & 0 deletions egd_stock_picking_custom/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
EGD Custody Report Module

This module implements the equipment loan report functionality for both partners and employees.

When an employee requests equipment, the report captures essential details, including the requester's information and the specifics of the requested equipment.

In cases of material loans to partners, it's necessary to designate the responsible employee for custody, as they will also handle the material delivery. As a result, the report contains information about the individual responsible for delivering materials to the partner, along with details of the delivered products.

To access this report, simply click the 'Print' button labeled 'EGD Custody.' Once selected, the report will be generated with the data from the picking process.
Empty file.
22 changes: 22 additions & 0 deletions egd_stock_picking_custom/report/report_egd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="action_egd_cautela_report" model="ir.actions.report">
<field name="name">Cautela EGD</field>
<field name="model">stock.picking</field>
<field name="report_type">qweb-pdf</field>
<field
name="report_name"
>egd_stock_picking_custom.egd_cautela_document_report</field>
<field
name="report_file"
>egd_stock_picking_custom.egd_cautela_document_report</field>
<field
name="print_report_name"
>'Cautela - %s - %s' % (object.partner_id.name or
'', object.name)</field>
<field name="binding_model_id" ref="stock.model_stock_picking" />
<field name="binding_type">report</field>
</record>

</odoo>
Loading
Loading