Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][MIG] migration of module operating_unit #328

Merged
merged 48 commits into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
3b2ea77
[ADD] Added migrated Operating Unit module for v9.
sudhir-serpentcs Dec 8, 2015
51b781d
[IMP] Improved the license terms and improved the module standard as …
sudhir-serpentcs Dec 9, 2015
ed441a0
[ADD] Renamed README.md to README.rst
sudhir-serpentcs Dec 9, 2015
566215b
[IMP] Assign multi_ou grup and add OCA logo.
JordiBForgeFlow Dec 10, 2015
331994f
[FIX] remove description from __openerp__.py
JordiBForgeFlow Dec 10, 2015
1d87327
[FIX] Corrections as per review comments
JordiBForgeFlow Dec 10, 2015
30c22fc
[ADD] Added travis yml file and changed the code as per travis test s…
sudhir-serpentcs Dec 11, 2015
510ed95
[IMP] Added name_search to search the OU based on name and code.
sudhir-serpentcs Dec 11, 2015
8cb1074
[FIX] Review as per @dreispt comments
JordiBForgeFlow Dec 11, 2015
6514e53
[FIX] Review as per travis
JordiBForgeFlow Dec 11, 2015
6e5464a
[FIX] flake8
JordiBForgeFlow Dec 11, 2015
527118a
[IMP] improve name_search
JordiBForgeFlow Dec 11, 2015
7a51135
[IMP] changed readme.rst
JordiBForgeFlow Dec 30, 2015
588ddb2
[IMP] changed Eficent copyright
JordiBForgeFlow Dec 30, 2015
d90b049
[IMP] removed size from char fields. General improvement to XML style.
JordiBForgeFlow Jan 11, 2016
84da90e
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
a8a9942
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
ec6b866
[MIG] operating_unit to v10.0 (#45)
MiquelRForgeFlow Jan 26, 2017
d602f6d
A user can only select the operating units that he is allowed (#59)
JordiBForgeFlow Jan 31, 2017
8cd6ab0
Port to v11 - retry
gdgellatly Feb 18, 2018
5f7004f
[12.0][MIG] operating_unit: Migration to v12.0
AdriaGForgeFlow Nov 19, 2018
72a1c07
[UPD] README.rst
OCA-git-bot Nov 21, 2018
5e1beda
[IMP]add user_ids field in operating unit. Useful for accesing in oth…
AaronHForgeFlow Nov 30, 2018
bbf89f2
[UPT]operating_unit roadmap
AaronHForgeFlow Dec 3, 2018
1998a9f
[UPD] README.rst
OCA-git-bot Dec 4, 2018
579f797
[FIX] operating_unit: Failing test
bjeficent Dec 18, 2018
96de845
[FIX] operating_unit: Creation of OU's failing cause of wrong environ…
bjeficent Jan 21, 2019
d213dda
[FIX]clear caches when saving so OU rules are updated
AaronHForgeFlow Jan 29, 2019
12f9b9f
[FIX] Make company_id readonly to avoid crashes in multi-company envi…
bjeficent Jan 30, 2019
0d3f7e4
[UPD] README.rst
OCA-git-bot Jul 29, 2019
83e6796
[UPD] Update operating_unit.pot
oca-travis Sep 25, 2019
cd2374b
[IMP] operating_unit: black, isort
alan196 Dec 30, 2019
6fda07b
[IMP] operating_unit: Migration to V13
alan196 Dec 30, 2019
bb4c081
[UPD] Update operating_unit.pot
oca-travis Dec 31, 2019
c8d412e
[UPD] README.rst
OCA-git-bot Dec 31, 2019
4892f84
[ADD] operating_unit: migration script to column nanme in m2m field
alan196 Feb 10, 2020
3b4cf25
[UPD] README.rst
OCA-git-bot Feb 11, 2020
4fbc4ea
Added translation using Weblate (Spanish (Mexico))
alan196 Feb 15, 2020
1354da0
Translated using Weblate (Spanish (Mexico))
alan196 Feb 15, 2020
463c062
[FIX] Multicompany rule
astirpe Feb 24, 2020
832c220
[UPD] README.rst
OCA-git-bot Feb 24, 2020
09e1d6e
operating_unit 13.0.1.1.0
OCA-git-bot Feb 24, 2020
109df25
pre-commit update
OCA-git-bot Mar 14, 2020
2349417
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Oct 5, 2020
4c126b2
[UPD] README.rst
OCA-git-bot Oct 5, 2020
10449e8
[IMP] operating_unit: black, isort, prettier
alan196 Oct 9, 2020
6b2b9dd
[MIG] operating_unit: Migration to 14.0
alan196 Oct 10, 2020
f662b8e
[13.0]fix operating_unit record rules
luc-demeyer Aug 19, 2020
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
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