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

[MIG] operating_unit: Migration to 17.0 #667

Merged
merged 85 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
9284c8c
[ADD] Added migrated Operating Unit module for v9.
sudhir-serpentcs Dec 8, 2015
bb17410
[IMP] Improved the license terms and improved the module standard as …
sudhir-serpentcs Dec 9, 2015
5ecf348
[ADD] Renamed README.md to README.rst
sudhir-serpentcs Dec 9, 2015
74415ac
[IMP] Assign multi_ou grup and add OCA logo.
JordiBForgeFlow Dec 10, 2015
182b7b6
[FIX] remove description from __openerp__.py
JordiBForgeFlow Dec 10, 2015
4da53ce
[FIX] Corrections as per review comments
JordiBForgeFlow Dec 10, 2015
e6a8807
[ADD] Added travis yml file and changed the code as per travis test s…
sudhir-serpentcs Dec 11, 2015
4a29835
[IMP] Added name_search to search the OU based on name and code.
sudhir-serpentcs Dec 11, 2015
f279f22
[FIX] Review as per @dreispt comments
JordiBForgeFlow Dec 11, 2015
8081ab3
[FIX] Review as per travis
JordiBForgeFlow Dec 11, 2015
1ab61b7
[FIX] flake8
JordiBForgeFlow Dec 11, 2015
42175f1
[IMP] improve name_search
JordiBForgeFlow Dec 11, 2015
9047faa
[IMP] changed readme.rst
JordiBForgeFlow Dec 30, 2015
5a9e806
[IMP] changed Eficent copyright
JordiBForgeFlow Dec 30, 2015
e676215
[IMP] removed size from char fields. General improvement to XML style.
JordiBForgeFlow Jan 11, 2016
afab3c7
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
c6b798c
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
259f0df
[MIG] operating_unit to v10.0 (#45)
MiquelRForgeFlow Jan 26, 2017
f70726d
A user can only select the operating units that he is allowed (#59)
JordiBForgeFlow Jan 31, 2017
68dce57
Port to v11 - retry
gdgellatly Feb 18, 2018
c2c5375
[12.0][MIG] operating_unit: Migration to v12.0
AdriaGForgeFlow Nov 19, 2018
3d03d41
[UPD] README.rst
OCA-git-bot Nov 21, 2018
c02c90a
[IMP]add user_ids field in operating unit. Useful for accesing in oth…
AaronHForgeFlow Nov 30, 2018
515ca9f
[UPT]operating_unit roadmap
AaronHForgeFlow Dec 3, 2018
9a23739
[UPD] README.rst
OCA-git-bot Dec 4, 2018
b5e01a2
[FIX] operating_unit: Failing test
bjeficent Dec 18, 2018
f844069
[FIX] operating_unit: Creation of OU's failing cause of wrong environ…
bjeficent Jan 21, 2019
4635145
[FIX]clear caches when saving so OU rules are updated
AaronHForgeFlow Jan 29, 2019
9c306d4
[FIX] Make company_id readonly to avoid crashes in multi-company envi…
bjeficent Jan 30, 2019
c44e4a6
[UPD] README.rst
OCA-git-bot Jul 29, 2019
3a0161f
[UPD] Update operating_unit.pot
oca-travis Sep 25, 2019
6579c00
[IMP] operating_unit: black, isort
alan196 Dec 30, 2019
e586008
[IMP] operating_unit: Migration to V13
alan196 Dec 30, 2019
abd61dc
[UPD] Update operating_unit.pot
oca-travis Dec 31, 2019
445755f
[UPD] README.rst
OCA-git-bot Dec 31, 2019
ec229eb
[ADD] operating_unit: migration script to column nanme in m2m field
alan196 Feb 10, 2020
96dee29
[UPD] README.rst
OCA-git-bot Feb 11, 2020
43678b8
Added translation using Weblate (Spanish (Mexico))
alan196 Feb 15, 2020
11368c8
Translated using Weblate (Spanish (Mexico))
alan196 Feb 15, 2020
09463a6
[FIX] Multicompany rule
astirpe Feb 24, 2020
b0335f7
[UPD] README.rst
OCA-git-bot Feb 24, 2020
28dc269
operating_unit 13.0.1.1.0
OCA-git-bot Feb 24, 2020
1052375
pre-commit update
OCA-git-bot Mar 14, 2020
40f5f7c
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Oct 5, 2020
a636b26
[UPD] README.rst
OCA-git-bot Oct 5, 2020
52c87d0
[IMP] operating_unit: black, isort, prettier
alan196 Oct 9, 2020
d009fbf
[MIG] operating_unit: Migration to 14.0
alan196 Oct 10, 2020
49c8b9a
[13.0]fix operating_unit record rules
luc-demeyer Aug 19, 2020
07803ed
[UPD] Update operating_unit.pot
oca-travis Oct 15, 2020
a579c09
[IMP] name_get display
Saran440 Mar 22, 2021
cb56799
operating_unit 14.0.1.0.1
OCA-git-bot May 8, 2021
b3e0aa7
Added translation using Weblate (Spanish (Argentina))
ibuioli Jun 25, 2021
3b9d42b
Translated using Weblate (Spanish (Argentina))
ibuioli Jun 25, 2021
bfc4e33
[IMP] operating_unit: black, isort, prettier
alan196 Oct 23, 2021
e140124
[MIG] operating_unit: Migration to 15.0
alan196 Oct 23, 2021
f97b1ca
[UPD] Update operating_unit.pot
Dec 2, 2021
6be18b8
[UPD] README.rst
OCA-git-bot Dec 2, 2021
b0e6287
[FIX] operating_unit: Default operating unit for template
AshishHirapara Jul 29, 2022
751d0b8
operating_unit 15.0.1.0.1
OCA-git-bot Sep 8, 2022
88353e8
[15.0][FIX] operation_unit: fix acces not applied
ilyasProgrammer Oct 26, 2022
00ce0a8
operating_unit 15.0.1.0.2
OCA-git-bot Oct 26, 2022
0cb3900
[IMP][15.0] operating unit: updated validation for allowed operating …
AshishHirapara Sep 21, 2022
dc44bf6
[UPD] Update operating_unit.pot
Jan 10, 2023
fc5bcab
[UPD] README.rst
OCA-git-bot Jan 10, 2023
b97a739
operating_unit 15.0.1.0.3
OCA-git-bot Jan 10, 2023
0d11d9d
Update translation files
weblate Jan 10, 2023
05304b4
[FIX] operating_unit:
MSokol00 Jan 5, 2023
abdcd18
operating_unit 15.0.1.0.4
OCA-git-bot Jan 13, 2023
9393d9a
[14.0][FIX]operating_unit: while I access user record the faced the …
vimalpatelserpentcs Oct 25, 2021
33850bf
operating_unit 15.0.1.0.5
OCA-git-bot Jan 17, 2023
399c591
[FIX] operating_unit: remove duplicate reference
sswapnesh Aug 17, 2021
9c210d9
[FIX] operating_unit: correctly assign operating_unit_ids
sswapnesh Aug 19, 2021
0744784
[FIX] operating_unit: minor fix in test
MiquelRForgeFlow Jan 27, 2023
698f469
operating_unit 15.0.1.0.6
OCA-git-bot Jan 27, 2023
1d28d86
[MIG] operating_unit: migration to 16.0
huguesdk Mar 17, 2023
bad56dd
[UPD] Update operating_unit.pot
Apr 12, 2023
6435f30
[UPD] README.rst
OCA-git-bot Apr 12, 2023
98c8981
Update translation files
weblate Apr 12, 2023
2a4cd3e
[UPD] README.rst
OCA-git-bot Sep 3, 2023
0811506
16.0-operating_unit: fix in _compute_operating_unit_ids
jado95 Oct 16, 2023
faecf7a
[BOT] post-merge updates
OCA-git-bot Oct 19, 2023
dfefffa
[FIX] operating_unit: default operating unit more multi-company friendly
aleuffre Jan 4, 2024
9334b5b
[BOT] post-merge updates
OCA-git-bot Jan 10, 2024
ee6a4db
[IMP] operating_unit: pre-commit execution
jdidderen-nsi May 27, 2024
3befa88
[MIG] operating_unit: Migration to 17.0
jdidderen-nsi Jul 1, 2024
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
109 changes: 109 additions & 0 deletions operating_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
==============
Operating Unit
==============

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

.. |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/17.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-17-0/operating-unit-17-0-operating_unit
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/operating-unit&target_branch=17.0
:alt: Try me on Runboat

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

Known issues / Roadmap
======================



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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/operating-unit/issues/new?body=module:%20operating_unit%0Aversion:%2017.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/17.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": "17.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",
],
}
23 changes: 23 additions & 0 deletions operating_unit/data/operating_unit_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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="assigned_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="assigned_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>
151 changes: 151 additions & 0 deletions operating_unit/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
# 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 "User"
msgstr ""

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

#~ msgid "Users"
#~ msgstr "Usuarios"
Loading
Loading