Skip to content

Commit

Permalink
Merge PR #328 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by AaronHForgeFlow
  • Loading branch information
OCA-git-bot committed Oct 15, 2020
2 parents 01ffca8 + f662b8e commit 8755af2
Show file tree
Hide file tree
Showing 25 changed files with 1,298 additions and 0 deletions.
103 changes: 103 additions & 0 deletions operating_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
==============
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/14.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-14-0/operating-unit-14-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/14.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:%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
~~~~~~~

* 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>

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/14.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
26 changes: 26 additions & 0 deletions operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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": "14.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"],
"installable": True,
}
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="operating_unit_ids"
eval="[(4, ref('main_operating_unit')),(4, ref('b2b_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_MX.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 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-15 14:13+0000\n"
"Last-Translator: Jesús Alan Ramos Rodríguez <alan.ramos@jarsa.com.mx>\n"
"Language-Team: none\n"
"Language: es_MX\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 3.10\n"

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

#. module: operating_unit
#: model_terms:ir.ui.view,arch_db:operating_unit.view_users_form
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 "Haga 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 en"

#. 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 por Defecto"

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

#. 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 Modificación Por"

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

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

#. module: operating_unit
#: model:res.groups,name:operating_unit.group_multi_operating_unit
msgid "Multiple Operating Unit"
msgstr "Unidades Operativas Múltiples"

#. 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
#: model_terms:ir.ui.view,arch_db:operating_unit.view_operating_unit_tree
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__operating_unit_ids
#: model:ir.ui.menu,name:operating_unit.menu_action_operating_unit_tree
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 "Empresa"

#. 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 empresa!"

#. 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 empresa!"

#. 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 8755af2

Please sign in to comment.