Skip to content

Commit

Permalink
Merge PR #576 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by AaronHForgeFlow
  • Loading branch information
OCA-git-bot committed Apr 12, 2023
2 parents c517685 + a94a0aa commit 840a02a
Show file tree
Hide file tree
Showing 26 changed files with 1,536 additions and 0 deletions.
104 changes: 104 additions & 0 deletions operating_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
==============
Operating Unit
==============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OCA%2Foperating--unit-lightgray.png?logo=github
:target: https://github.com/OCA/operating-unit/tree/15.0/operating_unit
:alt: OCA/operating-unit
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-operating_unit
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/213/15.0
:alt: Try me on Runbot

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


An operating unit (OU) is an organizational entity part of a company, with
separate management ownership. Management by OU is aimed to introduce the
following features:

* Data partitioning from other OU.
* Own sequencing schemes.
* User access administration for data processing and reporting.
* Product and customer independence of OU.
* OU specific P&L and Balance sheet.

**Table of contents**

.. contents::
:local:

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


To configure this module, you need to:

* Assign *Multi Operating Unit* group to user.
* Go to *Settings / Users & Companies / Operating Units* and create Operating Units.

Usage
=====


This module defines the operating unit entity and the user's security rules.
Other modules extend the standard Odoo apps with the OU.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/operating-unit/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/operating-unit/issues/new?body=module:%20operating_unit%0Aversion:%2015.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
~~~~~~~

* ForgeFlow
* Serpent Consulting Services Pvt. Ltd.

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


* ForgeFlow <contact@forgeflow.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Jarsa Sistemas <info@jarsa.com.mx>
* Andrea Stirpe <a.stirpe@onestein.nl>
* Ooops, Ashish Hirpara <ashish.hirapara1995@gmail.com>

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/operating-unit <https://github.com/OCA/operating-unit/tree/15.0/operating_unit>`_ 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 operating_unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
29 changes: 29 additions & 0 deletions operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2015-TODAY ForgeFlow
# - Jordi Ballester Alomar
# Copyright 2015-TODAY Serpent Consulting Services Pvt. Ltd. - Sudhir Arya
# License: LGPL-3 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Operating Unit",
"summary": "An operating unit (OU) is an organizational entity part of a "
"company",
"version": "16.0.1.0.0",
"author": "ForgeFlow, "
"Serpent Consulting Services Pvt. Ltd., "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/operating-unit",
"category": "Generic",
"depends": [
"base",
],
"license": "LGPL-3",
"data": [
"security/operating_unit_security.xml",
"security/ir.model.access.csv",
"data/operating_unit_data.xml",
"view/operating_unit_view.xml",
"view/res_users_view.xml",
],
"demo": [
"demo/operating_unit_demo.xml",
],
}
17 changes: 17 additions & 0 deletions operating_unit/data/operating_unit_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Basic Operating Unit -->
<record id="main_operating_unit" model="operating.unit">
<field name="name">Main Operating Unit</field>
<field name="code">OU1</field>
<field name="partner_id" ref="base.main_partner" />
</record>
<record model="res.users" id="base.user_root">
<field name="default_operating_unit_id" ref="main_operating_unit" />
<field name="operating_unit_ids" eval="[(4, ref('main_operating_unit'))]" />
</record>
<record model="res.users" id="base.user_admin">
<field name="default_operating_unit_id" ref="main_operating_unit" />
<field name="operating_unit_ids" eval="[(4, ref('main_operating_unit'))]" />
</record>
</odoo>
24 changes: 24 additions & 0 deletions operating_unit/demo/operating_unit_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="0">
<record id="b2b_operating_unit" model="operating.unit">
<field name="name">B2B</field>
<field name="code">B2B</field>
<field name="partner_id" ref="base.main_partner" />
</record>
<record id="b2c_operating_unit" model="operating.unit">
<field name="name">B2C</field>
<field name="code">B2C</field>
<field name="partner_id" ref="base.main_partner" />
</record>
<record model="res.users" id="base.user_demo">
<field name="default_operating_unit_id" ref="main_operating_unit" />
<field
name="assigned_operating_unit_ids"
eval="[(4, ref('main_operating_unit')),(4, ref('b2b_operating_unit')),(4, ref('b2c_operating_unit'))]"
/>
<field
name="groups_id"
eval="[(4,ref('operating_unit.group_multi_operating_unit'))]"
/>
</record>
</odoo>
148 changes: 148 additions & 0 deletions operating_unit/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-06-25 03:48+0000\n"
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n"
"Language-Team: none\n"
"Language: es_AR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__active
msgid "Active"
msgstr "Activo"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_res_users__operating_unit_ids
msgid "Allowed Operating Units"
msgstr "Unidades Operativas Permitidas"

#. module: operating_unit
#: model_terms:ir.actions.act_window,help:operating_unit.action_operating_unit_tree
msgid "Click to start a new Operating Unit."
msgstr "Clic para iniciar una nueva Unidad Operativa."

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__code
#: model_terms:ir.ui.view,arch_db:operating_unit.view_operating_unit_search
msgid "Code"
msgstr "Código"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__company_id
msgid "Company"
msgstr "Compañía"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__create_date
msgid "Created on"
msgstr "Creado el"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_res_users__default_operating_unit_id
msgid "Default Operating Unit"
msgstr "Unidad Operativa Predeterminada"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__display_name
msgid "Display Name"
msgstr "Nombre Mostrado"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__id
msgid "ID"
msgstr "ID"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__write_uid
msgid "Last Updated by"
msgstr "Última Actualización por"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__write_date
msgid "Last Updated on"
msgstr "Última Actualización el"

#. module: operating_unit
#: model:res.groups,name:operating_unit.group_manager_operating_unit
msgid "Manager of Operating Units"
msgstr "Gestor de las Unidades Operativas"

#. module: operating_unit
#: model:res.groups,name:operating_unit.group_multi_operating_unit
msgid "Multiple Operating Unit"
msgstr "Unidad Operativa Múltiple"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__name
msgid "Name"
msgstr "Nombre"

#. module: operating_unit
#: model:ir.model,name:operating_unit.model_operating_unit
#: model_terms:ir.ui.view,arch_db:operating_unit.view_operating_unit_form
#: model_terms:ir.ui.view,arch_db:operating_unit.view_operating_unit_search
msgid "Operating Unit"
msgstr "Unidad Operativa"

#. module: operating_unit
#: model:ir.actions.act_window,name:operating_unit.action_operating_unit_tree
#: model:ir.model.fields,field_description:operating_unit.field_res_users__assigned_operating_unit_ids
#: model:ir.ui.menu,name:operating_unit.menu_action_operating_unit_tree
#: model_terms:ir.ui.view,arch_db:operating_unit.view_users_form
msgid "Operating Units"
msgstr "Unidades Operativas"

#. module: operating_unit
#: model:ir.module.category,name:operating_unit.module_operating_units
msgid "Operating Units Group"
msgstr "Grupo de Unidades Operativas"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__partner_id
msgid "Partner"
msgstr "Contacto"

#. module: operating_unit
#: model_terms:ir.ui.view,arch_db:operating_unit.view_operating_unit_search
msgid "Search Operating Unit"
msgstr "Buscar Unidad Operativa"

#. module: operating_unit
#: model:ir.model.constraint,message:operating_unit.constraint_operating_unit_code_company_uniq
msgid "The code of the operating unit must be unique per company!"
msgstr "¡El código de la unidad operativa debe ser único por compañía!"

#. module: operating_unit
#: model:ir.model.constraint,message:operating_unit.constraint_operating_unit_name_company_uniq
msgid "The name of the operating unit must be unique per company!"
msgstr "¡El nombre de la unidad operativa debe ser único por compañía!"

#. module: operating_unit
#: model:ir.model,name:operating_unit.model_res_users
msgid "Users"
msgstr "Usuarios"

#. module: operating_unit
#: model:ir.model.fields,field_description:operating_unit.field_operating_unit__user_ids
msgid "Users Allowed"
msgstr "Usuarios Permitidos"
Loading

0 comments on commit 840a02a

Please sign in to comment.