Skip to content

Commit

Permalink
update readmle
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidderen committed Oct 1, 2024
1 parent 22c6bab commit ca35aaa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
11 changes: 4 additions & 7 deletions operating_unit_selector_widget/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Operating Unit - Selector Widget

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

Add the same widget as the multi-company in order to only view the
wanted operating units.
Add a new widget to choose the wanted operating units and only view
datas related to these operating units

|image|

Expand All @@ -43,11 +43,8 @@ wanted operating units.
Usage
=====

Install the module and be sure to have an user with one of the following
security groups :

- Multiple Operating Unit
- Manager of Operating Units
Install the module and be sure to have an user with several operating
units.

Known issues / Roadmap
======================
Expand Down
4 changes: 0 additions & 4 deletions operating_unit_selector_widget/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ def session_info(self):
for ou in user.operating_unit_ids
},
},
"display_switch_ou_menu": user.has_group(
"operating_unit.group_multi_operating_unit"
)
and len(user.operating_unit_ids) > 1,
}
)
return session_info

Check warning on line 27 in operating_unit_selector_widget/models/ir_http.py

View check run for this annotation

Codecov / codecov/patch

operating_unit_selector_widget/models/ir_http.py#L27

Added line #L27 was not covered by tests
2 changes: 1 addition & 1 deletion operating_unit_selector_widget/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Add the same widget as the multi-company in order to only view the wanted operating units.
Add a new widget to choose the wanted operating units and only view datas related to these operating units

![image](../static/description/widget.png)
5 changes: 1 addition & 4 deletions operating_unit_selector_widget/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
Install the module and be sure to have an user with one of the following security groups :

- Multiple Operating Unit
- Manager of Operating Units
Install the module and be sure to have an user with several operating units.
12 changes: 4 additions & 8 deletions operating_unit_selector_widget/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ <h1 class="title">Operating Unit - Selector Widget</h1>
!! source digest: sha256:a52b68f6bd7b57c3b6ee835e0bee09129e747eafb86e420a384d3b12a65d4837
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_selector_widget"><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_selector_widget"><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>Add the same widget as the multi-company in order to only view the
wanted operating units.</p>
<p>Add a new widget to choose the wanted operating units and only view
datas related to these operating units</p>
<p><img alt="image" src="https://raw.githubusercontent.com/OCA/operating-unit/17.0/operating_unit_selector_widget/static/description/widget.png" /></p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -389,12 +389,8 @@ <h1 class="title">Operating Unit - Selector Widget</h1>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>Install the module and be sure to have an user with one of the following
security groups :</p>
<ul class="simple">
<li>Multiple Operating Unit</li>
<li>Manager of Operating Units</li>
</ul>
<p>Install the module and be sure to have an user with several operating
units.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
Expand Down

0 comments on commit ca35aaa

Please sign in to comment.