Skip to content

Commit

Permalink
[ADD] rma_employee
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC013 committed May 30, 2024
1 parent 5f7d99f commit 209a7b3
Show file tree
Hide file tree
Showing 13 changed files with 590 additions and 0 deletions.
77 changes: 77 additions & 0 deletions rma_employee/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
============
RMA Employee
============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e78f9d9c1ffe544746760dd42dd5198a6aa8e9115401564ac6b2039af2e1c51a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Frma-lightgray.png?logo=github
:target: https://github.com/OCA/rma/tree/14.0/rma_employee
:alt: OCA/rma
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-rma_employee
: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/rma&target_branch=14.0
:alt: Try me on Runboat

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

This module adds a employee field to the RMA model.

**Table of contents**

.. contents::
:local:

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

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

* NuoBiT Solutions S.L.

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

* NuoBiT <https://nuobit.com>
* Frank Cespedes <[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/rma <https://github.com/OCA/rma/tree/14.0/rma_employee>`_ 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 rma_employee/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions rma_employee/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright NuoBiT - Frank Cespedes <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
"name": "RMA Employee",
"summary": "This module adds a employee field to the RMA model.",
"version": "14.0.0.0.0",
"category": "RMA",
"author": "NuoBiT Solutions S.L., Odoo Community Association (OCA)",
"website": "https://github.com/OCA/rma",
"license": "AGPL-3",
"depends": ["hr", "rma"],
"data": [
"views/rma_views.xml",
],
}
36 changes: 36 additions & 0 deletions rma_employee/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * rma_employee
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-30 09:54+0000\n"
"PO-Revision-Date: 2024-05-30 09:54+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: \n"

#. module: rma_employee
#: model:ir.model.fields,field_description:rma_employee.field_rma__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: rma_employee
#: model:ir.model.fields,field_description:rma_employee.field_rma__employee_id
msgid "Employee"
msgstr "Empleado"

#. module: rma_employee
#: model:ir.model.fields,field_description:rma_employee.field_rma____last_update
msgid "Last Modified on"
msgstr "Última modificación el"

#. module: rma_employee
#: model:ir.model,name:rma_employee.model_rma
msgid "RMA"
msgstr "RMA"
1 change: 1 addition & 0 deletions rma_employee/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import rma
14 changes: 14 additions & 0 deletions rma_employee/models/rma.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright NuoBiT - Frank Cespedes <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import fields, models


class Rma(models.Model):
_inherit = "rma"

employee_id = fields.Many2one(
comodel_name="hr.employee",
ondelete="restrict",
domain="['|',('company_id', '=', False), ('company_id', '=', company_id)]",
)
2 changes: 2 additions & 0 deletions rma_employee/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* NuoBiT <https://nuobit.com>
* Frank Cespedes <[email protected]>
1 change: 1 addition & 0 deletions rma_employee/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds a employee field to the RMA model.
Binary file added rma_employee/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 209a7b3

Please sign in to comment.