Skip to content

Commit

Permalink
[IMP] operating_unit: pre-commit execution
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidderen-nsi committed May 27, 2024
1 parent 9334b5b commit a806254
Show file tree
Hide file tree
Showing 16 changed files with 87 additions and 78 deletions.
58 changes: 30 additions & 28 deletions operating_unit/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,26 @@ Operating Unit
: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/16.0/operating_unit
: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-16-0/operating-unit-16-0-operating_unit
: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=16.0
: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:

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

Expand All @@ -47,50 +46,53 @@ following features:
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.
- 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
======================


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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/operating-unit/issues/new?body=module:%20operating_unit%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`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>
- 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.

Expand All @@ -102,6 +104,6 @@ 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/16.0/operating_unit>`_ project on GitHub.
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.
3 changes: 1 addition & 2 deletions operating_unit/models/operating_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class OperatingUnit(models.Model):

_name = "operating.unit"
_description = "Operating Unit"
_rec_names_search = ["name", "code"]
Expand Down Expand Up @@ -47,7 +46,7 @@ def name_get(self):
for ou in self:
name = ou.name
if ou.code:
name = "[{}] {}".format(ou.code, name)
name = f"[{ou.code}] {name}"
res.append((ou.id, name))
return res

Expand Down
1 change: 0 additions & 1 deletion operating_unit/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class ResUsers(models.Model):

_inherit = "res.users"

@api.model
Expand Down
3 changes: 3 additions & 0 deletions operating_unit/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
5 changes: 5 additions & 0 deletions operating_unit/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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.
5 changes: 0 additions & 5 deletions operating_unit/readme/CONFIGURE.rst

This file was deleted.

5 changes: 5 additions & 0 deletions operating_unit/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- 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>\>
6 changes: 0 additions & 6 deletions operating_unit/readme/CONTRIBUTORS.rst

This file was deleted.

9 changes: 9 additions & 0 deletions operating_unit/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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.
10 changes: 0 additions & 10 deletions operating_unit/readme/DESCRIPTION.rst

This file was deleted.

1 change: 1 addition & 0 deletions operating_unit/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Empty file removed operating_unit/readme/ROADMAP.rst
Empty file.
2 changes: 2 additions & 0 deletions operating_unit/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module defines the operating unit entity and the user's security
rules. Other modules extend the standard Odoo apps with the OU.
3 changes: 0 additions & 3 deletions operating_unit/readme/USAGE.rst

This file was deleted.

54 changes: 31 additions & 23 deletions operating_unit/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -368,10 +369,10 @@ <h1 class="title">Operating Unit</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:00f612d7de01fe0f9ee18121c1840b65fef8e073af69a0bec3c4fadcb97e3f3d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/operating-unit/tree/16.0/operating_unit"><img alt="OCA/operating-unit" src="https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/operating-unit-16-0/operating-unit-16-0-operating_unit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/operating-unit&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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:</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/operating-unit/tree/17.0/operating_unit"><img alt="OCA/operating-unit" src="https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/operating-unit-17-0/operating-unit-17-0-operating_unit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/operating-unit&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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:</p>
<ul class="simple">
<li>Data partitioning from other OU.</li>
<li>Own sequencing schemes.</li>
Expand All @@ -384,11 +385,12 @@ <h1 class="title">Operating Unit</h1>
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-3">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-4">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-5">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
</ul>
</li>
</ul>
Expand All @@ -398,33 +400,37 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<p>To configure this module, you need to:</p>
<ul class="simple">
<li>Assign <em>Multi Operating Unit</em> group to user.</li>
<li>Go to <em>Settings / Users &amp; Companies / Operating Units</em> and create Operating Units.</li>
<li>Go to <em>Settings / Users &amp; Companies / Operating Units</em> and create
Operating Units.</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>This module defines the operating unit entity and the user’s security rules.
Other modules extend the standard Odoo apps with the OU.</p>
<p>This module defines the operating unit entity and the user’s security
rules. Other modules extend the standard Odoo apps with the OU.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/operating-unit/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/operating-unit/issues/new?body=module:%20operating_unit%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="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**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-5">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Authors</a></h2>
<ul class="simple">
<li>ForgeFlow</li>
<li>Serpent Consulting Services Pvt. Ltd.</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
<ul class="simple">
<li>ForgeFlow &lt;<a class="reference external" href="mailto:contact&#64;forgeflow.com">contact&#64;forgeflow.com</a>&gt;</li>
<li>Serpent Consulting Services Pvt. Ltd. &lt;<a class="reference external" href="mailto:support&#64;serpentcs.com">support&#64;serpentcs.com</a>&gt;</li>
Expand All @@ -434,13 +440,15 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/operating-unit/tree/16.0/operating_unit">OCA/operating-unit</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/operating-unit/tree/17.0/operating_unit">OCA/operating-unit</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
Binary file added pandoc-3.2-1-amd64.deb
Binary file not shown.

0 comments on commit a806254

Please sign in to comment.