Skip to content
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
63 changes: 63 additions & 0 deletions deltatech_category_group_equipment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
==================================
Deltatech Equipment Category Group
==================================

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

.. |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/github-dhongu%2Fdeltatech-lightgray.png?logo=github
:target: https://github.com/dhongu/deltatech/tree/18.0/deltatech_category_group_equipment
:alt: dhongu/deltatech

|badge1| |badge2|

Features:

- adds two grouping elements for equipments: "Category type" and
"Category class", related to internal category of the equipment's
product

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `Terrabit Issues <https://www.terrabit.ro/helpdesk>`_.
In case of trouble, please check there if your issue has already been reported.

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

Credits
=======

Authors
-------

* Terrabit
* Dan Stoica

Maintainers
-----------

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

Current maintainer:

|maintainer-danila12|

This module is part of the `dhongu/deltatech <https://github.com/dhongu/deltatech/tree/18.0/deltatech_category_group_equipment>`_ project on GitHub.

You are welcome to contribute.
6 changes: 6 additions & 0 deletions deltatech_category_group_equipment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# © 2008-now Terrabit
# Dan Stoica <danila(@)terrabit(.)ro
# See README.rst file on addons root folder for license details


from . import models
23 changes: 23 additions & 0 deletions deltatech_category_group_equipment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# © 2008-now Terrabit
# Dan Stoica <danila(@)terrabit(.)ro
# See README.rst file on addons root folder for license details

{
"name": "Deltatech Equipment Category Group",
"summary": "Groups for equipments, related to internal categories groups",
"version": "19.0.0.0.2",
"author": "Terrabit, Dan Stoica",
"website": "https://www.terrabit.ro",
"category": "Other",
"depends": [
"deltatech_category_group",
"deltatech_service_equipment",
],
"license": "OPL-1",
"data": [
"views/service_equipment.xml",
],
"images": ["static/description/main_screenshot.png"],
"development_status": "Beta",
"maintainers": ["danila12"],
}
46 changes: 46 additions & 0 deletions deltatech_category_group_equipment/i18n/ro.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * deltatech_category_group_equipment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-01 08:41+0000\n"
"PO-Revision-Date: 2023-08-01 08:41+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: deltatech_category_group_equipment
#: model:ir.model.fields,field_description:deltatech_category_group_equipment.field_service_equipment__category_group_class
msgid "Category class"
msgstr "Clasa categorie"

#. module: deltatech_category_group_equipment
#: model:ir.model.fields,field_description:deltatech_category_group_equipment.field_service_equipment__category_group_type
msgid "Category type"
msgstr "Tip categorie"

#. module: deltatech_category_group_equipment
#: model:ir.model.fields,field_description:deltatech_category_group_equipment.field_service_equipment__display_name
msgid "Display Name"
msgstr "Afiseaza nume"

#. module: deltatech_category_group_equipment
#: model:ir.model.fields,field_description:deltatech_category_group_equipment.field_service_equipment__id
msgid "ID"
msgstr ""

#. module: deltatech_category_group_equipment
#: model:ir.model.fields,field_description:deltatech_category_group_equipment.field_service_equipment____last_update
msgid "Last Modified on"
msgstr "Ultima modificare la"

#. module: deltatech_category_group_equipment
#: model:ir.model,name:deltatech_category_group_equipment.model_service_equipment
msgid "Service Equipment"
msgstr "Echipament"
6 changes: 6 additions & 0 deletions deltatech_category_group_equipment/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# © 2008-now Terrabit
# Dan Stoica <danila(@)terrabit(.)ro
# See README.rst file on addons root folder for license details


from . import service_equipment
17 changes: 17 additions & 0 deletions deltatech_category_group_equipment/models/service_equipment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# © 2023-now Terrabit
# Dan Stoica <danila(@)terrabit(.)ro
# See README.rst file on addons root folder for license details


from odoo import fields, models


class ServiceEquipment(models.Model):
_inherit = "service.equipment"

category_group_type = fields.Many2one(
"category.group.type", related="product_id.categ_id.category_group_type", store=True, readonly=True
)
category_group_class = fields.Many2one(
"category.group.class", related="product_id.categ_id.category_group_class", store=True, readonly=True
)
14 changes: 14 additions & 0 deletions deltatech_category_group_equipment/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[build-system]
requires = [
"whool",
]
build-backend = "whool.buildapi"

[project]
name = "odoo-addon-deltatech-category-group-equipment"

dependencies = [
"odoo-addon-deltatech-category-group @ git+https://github.com/dhongu/deltatech.git@19.0#subdirectory=deltatech_category_group",
"odoo-addon-deltatech-sale-commission @ git+https://github.com/dhongu/deltatech.git@19.0#subdirectory=deltatech_sale_commission",
"odoo-addon-deltatech-sale-margin @ git+https://github.com/dhongu/deltatech.git@19.0#subdirectory=deltatech_sale_margin",
]
4 changes: 4 additions & 0 deletions deltatech_category_group_equipment/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Features:
- adds two grouping elements for equipments: "Category type" and
"Category class", related to internal category of the equipment's
product
Loading
Loading