Skip to content

Commit

Permalink
[ADD] egd_stock_picking_custom: add new module
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonevest committed Sep 7, 2023
1 parent afa5963 commit af2a18b
Show file tree
Hide file tree
Showing 14 changed files with 1,116 additions and 0 deletions.
81 changes: 81 additions & 0 deletions egd_stock_picking_custom/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
========================
Egd Stock Picking Custom
========================
.. |badge1| image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

|badge1|

Customizações no módulo Stock Pincking

**Table of contents**

.. contents::
:local:

Configuration
=============

To Configure...

Usage
=====

To usage...

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

Bugs are tracked on `GitHub Issues
<https://github.com/Escodoo/{project_repo}/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

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

Credits
=======

Authors
~~~~~~~

* Escodoo

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

* Marcel Savegnago <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Escodoo - `https://www.escodoo.com.br <https://www.escodoo.com.br>`_

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

This module is maintained by the Escodoo.

.. |maintainer-escodoo| image:: https://github.com/escodoo.png?size=80px
:target: https://github.com/Escodoo
:alt: escodoo

|maintainer-escodoo|

We at Escodoo are exclusively dedicated to deploying the Odoo Platform and are
focused on providing solutions that make our customers more competitive, lowering
costs, making technology more accessible and ensuring it is used strategically to
add even more value to the business.

.. |maintainer-marcelsavegnago| image:: https://github.com/marcelsavegnago.png?size=40px
:target: https://github.com/marcelsavegnago
:alt: marcelsavegnago

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-marcelsavegnago|

To contribute to this module, please visit https://www.escodoo.com.br.
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
22 changes: 22 additions & 0 deletions egd_stock_picking_custom/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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", "product", "stock_analytic", "hr"],
"data": [
"views/egd_stock_picking_custom.xml",
"views/egd_product_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_product_custom
12 changes: 12 additions & 0 deletions egd_stock_picking_custom/models/egd_product_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 EgdProductionCustom(models.Model):
_inherit = "product.template"

certificado = fields.Char(
string="Certificado",
)
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",
)
Empty file.
Empty file.
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

0 comments on commit af2a18b

Please sign in to comment.