Skip to content

Commit

Permalink
[imp] upper version number and adding missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-ife committed Jul 25, 2024
1 parent 3e2a7c0 commit dc53938
Show file tree
Hide file tree
Showing 18 changed files with 729 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ass/ife_test_reports/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "IFE Reports",
"summary": "Base Module Report adjustements of IFE GmbH",
"author": "IFE Gesellschaft für Forschung und Entwicklung",
"author": "IFE,IFE Gesellschaft für Forschung und Entwicklung",
"website": "https://www.ife.de",
"category": "Accounting/Localizations",
"version": "16.0.1.0.3",
"depends": ["base"],
"version": "16.0.1.0.4",
"depends": ["base", "ife_company_fields"],
"data": ["views/res_company_view.xml", "data/res_company_type_fields.xml"],
"license": "LGPL-3",
"application": True,
Expand Down
3 changes: 2 additions & 1 deletion ass/ife_test_reports/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Niels Göttsch <ng@ife.de>
Niels Göttsch <ng@ife.de>
Kimlong Mai
4 changes: 3 additions & 1 deletion ass/ife_test_reports/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
The IFE Reports attend to fix requirements for the german market.
Therefor it adds some features including:
* Company Types and correspondig fields
* Company Types and correspondig fields

* test
1 change: 1 addition & 0 deletions ass/ife_test_reports/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

:1.0.4: changes
:1.0.3: Change to LGPL-3 license and add proper README
:1.0.2: clean up dependencies
:1.0.0: Initial module.
67 changes: 67 additions & 0 deletions ife_company_fields/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
==================
Add Company Fields
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cfc0320b661c467df260e71c065af8fd2b8b1bb384875f8c1d2ec525e8eac8cc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-ifegmbh%2Fife_reports-lightgray.png?logo=github
:target: https://github.com/ifegmbh/ife_reports/tree/16.0/ife_company_fields
:alt: ifegmbh/ife_reports

|badge1| |badge2| |badge3|

Extends Partner Company Type to reference fields that are unique to legal forms.
We use this to hide certain fields of res.company

**Table of contents**

.. contents::
:local:

Changelog
=========

:16.0.1.0.2: change license to LGPL-3
:16.0.1.0.1: initial version

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

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

* IFE Gesellschaft für Forschung und Entwicklung

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

* Niels Göttsch <ng@ife.de>

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

This module is part of the `ifegmbh/ife_reports <https://github.com/ifegmbh/ife_reports/tree/16.0/ife_company_fields>`_ project on GitHub.

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

{
"name": "Add Company Fields",
"summary": "Adds field names to Company based on their company type",
"version": "16.0.1.0.2",
"license": "LGPL-3",
"author": "IFE Gesellschaft für Forschung und Entwicklung",
"website": "https://www.ife.de",
"depends": ["partner_company_type"],
"data": [
"security/res_company_type_fields.xml",
"views/res_company_type_fields.xml",
],
"auto_install": True,
"installable": True,
}
94 changes: 94 additions & 0 deletions ife_company_fields/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ife_company_fields
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e-20230613\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-19 07:43+0000\n"
"PO-Revision-Date: 2023-07-19 09:47+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.3.2\n"

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__shortcut
msgid "Abbreviation"
msgstr "Abkürzung"

#. module: ife_company_fields
#: model:ir.actions.act_window,name:ife_company_fields.res_company_type_fields_act_window
#: model:ir.ui.menu,name:ife_company_fields.menu_company_type_fields
msgid "Company Field Names"
msgstr "firmenspez. Felder"

#. module: ife_company_fields
#: model:ir.model,name:ife_company_fields.model_res_company_type_fields
msgid "Company Fields"
msgstr ""

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__company_types
msgid "Legal Forms"
msgstr "Rechtsformen"

#. module: ife_company_fields
#: model_terms:ir.ui.view,arch_db:ife_company_fields.res_company_type_fields_form_view
msgid "Company Types"
msgstr "Rechtsformen"

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__create_uid
msgid "Created by"
msgstr "Erstellt von"

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__create_date
msgid "Created on"
msgstr "Erstellt am"

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__name
msgid "Description"
msgstr "Beschreibung"

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__display_name
msgid "Display Name"
msgstr "Anzeigename"

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__field_name
msgid "Field Name"
msgstr "tech. Feldname"

#. module: ife_company_fields
#: model:ir.model.constraint,message:ife_company_fields.constraint_res_company_type_fields_field_name_uniq
msgid "Field Name already exists!"
msgstr "Feldname existiert bereits!"

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__id
msgid "ID"
msgstr ""

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields____last_update
msgid "Last Modified on"
msgstr ""

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__write_uid
msgid "Last Updated by"
msgstr ""

#. module: ife_company_fields
#: model:ir.model.fields,field_description:ife_company_fields.field_res_company_type_fields__write_date
msgid "Last Updated on"
msgstr ""
1 change: 1 addition & 0 deletions ife_company_fields/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_company_type_fields
17 changes: 17 additions & 0 deletions ife_company_fields/models/res_company_type_fields.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from odoo import fields, models


class ResCompanyTypeFields(models.Model):
_name = "res.company.type.fields"
_description = "Company Fields"

name = fields.Char(string="Description", translate=True)
shortcut = fields.Char(string="Abbreviation", translate=True)
company_types = fields.Many2many(
comodel_name="res.partner.company.type", string="Legal Forms"
)
field_name = fields.Char()

_sql_constraints = [
("field_name_uniq", "unique (field_name)", "Field Name already exists!")
]
3 changes: 3 additions & 0 deletions ife_company_fields/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions ife_company_fields/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Niels Göttsch <ng@ife.de>
2 changes: 2 additions & 0 deletions ife_company_fields/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Extends Partner Company Type to reference fields that are unique to legal forms.
We use this to hide certain fields of res.company
2 changes: 2 additions & 0 deletions ife_company_fields/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:16.0.1.0.2: change license to LGPL-3
:16.0.1.0.1: initial version
24 changes: 24 additions & 0 deletions ife_company_fields/security/res_company_type_fields.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.model.access" id="res_company_type_fields_user">
<field name="name">res.company.type.fields user</field>
<field name="model_id" ref="model_res_company_type_fields" />
<field name="group_id" ref="base.group_user" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
</record>
<record model="ir.model.access" id="res_company_type_fields_manager">
<field name="name">res.company.type.fields manager</field>
<field name="model_id" ref="model_res_company_type_fields" />
<field name="group_id" ref="base.group_partner_manager" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="1" />
<field name="perm_unlink" eval="0" />
</record>

</odoo>
Binary file added ife_company_fields/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 dc53938

Please sign in to comment.