Skip to content

Commit b38dd2e

Browse files
[MIG] analytic_restrictions: Migration to 16.0
1 parent 6ad9aa5 commit b38dd2e

File tree

6 files changed

+42
-37
lines changed

6 files changed

+42
-37
lines changed

analytic_restrictions/README.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
=====================
26
Analytic Restrictions
37
=====================
@@ -13,11 +17,11 @@ Analytic Restrictions
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-Escodoo%2Faccount--addons-lightgray.png?logo=github
20-
:target: https://github.com/Escodoo/account-addons/tree/14.0/analytic_restrictions
24+
:target: https://github.com/Escodoo/account-addons/tree/16.0/analytic_restrictions
2125
:alt: Escodoo/account-addons
2226

2327
|badge1| |badge2| |badge3|
@@ -41,7 +45,7 @@ Bug Tracker
4145
Bugs are tracked on `GitHub Issues <https://github.com/Escodoo/account-addons/issues>`_.
4246
In case of trouble, please check there if your issue has already been reported.
4347
If you spotted it first, help us to smash it by providing a detailed and welcomed
44-
`feedback <https://github.com/Escodoo/account-addons/issues/new?body=module:%20analytic_restrictions%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
48+
`feedback <https://github.com/Escodoo/account-addons/issues/new?body=module:%20analytic_restrictions%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4549

4650
Do not contact contributors directly about support or help with technical issues.
4751

@@ -64,6 +68,6 @@ Contributors
6468
Maintainers
6569
~~~~~~~~~~~
6670

67-
This module is part of the `Escodoo/account-addons <https://github.com/Escodoo/account-addons/tree/14.0/analytic_restrictions>`_ project on GitHub.
71+
This module is part of the `Escodoo/account-addons <https://github.com/Escodoo/account-addons/tree/16.0/analytic_restrictions>`_ project on GitHub.
6872

6973
You are welcome to contribute.

analytic_restrictions/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"name": "Analytic Restrictions",
66
"summary": """
77
Analytic Restrictions""",
8-
"version": "14.0.1.0.0",
8+
"version": "16.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "Escodoo",
1111
"website": "https://github.com/Escodoo/account-addons",
12-
"depends": ["analytic"],
12+
"depends": ["analytic", "account"],
1313
"data": [
1414
"security/analytic_security.xml",
1515
"security/ir.model.access.csv",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data noupdate="0">
4-
53
<record id="group_analytic_accounting_admin" model="res.groups">
64
<field name="name">Analytic Accounting Admin</field>
75
<field name="category_id" ref="base.module_category_hidden" />
86
<field
9-
name="implied_ids"
10-
eval="[(4, ref('analytic.group_analytic_accounting'))]"
11-
/>
7+
name="implied_ids"
8+
eval="[(Command.link(ref('analytic.group_analytic_accounting')))]"
9+
/>
1210
</record>
13-
14-
15-
</data>
1611
</odoo>
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2-
analytic.access_account_analytic_account,access_account_analytic_account,analytic.model_account_analytic_account,analytic.group_analytic_accounting,1,0,0,0
3-
analytic.access_account_analytic_line,access_account_analytic_line,analytic.model_account_analytic_line,analytic.group_analytic_accounting,1,0,0,0
4-
analytic.access_account_analytic_tag,access_account_analytic_tag,analytic.model_account_analytic_tag,analytic.group_analytic_accounting,1,0,0,0
5-
analytic.access_account_analytic_group,access_account_analytic_group,analytic.model_account_analytic_group,analytic.group_analytic_accounting,1,0,0,0
6-
analytic.access_account_analytic_distribution,access_account_analytic_distribution,analytic.model_account_analytic_distribution,analytic.group_analytic_accounting,1,0,0,0
2+
access_account_analytic_account,access_account_analytic_account,model_account_analytic_account,group_analytic_accounting,1,0,0,0
3+
access_account_analytic_line,access_account_analytic_line,model_account_analytic_line,group_analytic_accounting,1,0,0,0
4+
access_account_analytic_tag,access_account_analytic_tag,model_account_analytic_tag,group_analytic_accounting,1,0,0,0
5+
access_account_analytic_group,access_account_analytic_group,model_account_analytic_group,group_analytic_accounting,1,0,0,0
6+
access_account_analytic_distribution,access_account_analytic_distribution,model_account_analytic_distribution,group_analytic_accounting,1,0,0,0
77

8-
access_account_analytic_account_admin,access_account_analytic_account_admin,analytic.model_account_analytic_account,group_analytic_accounting_admin,1,1,1,1
9-
access_account_analytic_line_admin,access_account_analytic_line_admin,analytic.model_account_analytic_line,group_analytic_accounting_admin,1,1,1,1
10-
access_account_analytic_tag_admin,access_account_analytic_tag_admin,analytic.model_account_analytic_tag,group_analytic_accounting_admin,1,1,1,1
11-
access_account_analytic_group_admin,access_account_analytic_group_admin,analytic.model_account_analytic_group,group_analytic_accounting_admin,1,1,1,1
12-
access_account_analytic_distribution_admin,access_account_analytic_distribution_admin,analytic.model_account_analytic_distribution,group_analytic_accounting_admin,1,1,1,1
8+
access_account_analytic_account_admin,access_account_analytic_account_admin,model_account_analytic_account,group_analytic_accounting_admin,1,1,1,1
9+
access_account_analytic_line_admin,access_account_analytic_line_admin,model_account_analytic_line,group_analytic_accounting_admin,1,1,1,1
10+
access_account_analytic_tag_admin,access_account_analytic_tag_admin,model_account_analytic_tag,group_analytic_accounting_admin,1,1,1,1
11+
access_account_analytic_group_admin,access_account_analytic_group_admin,model_account_analytic_group,group_analytic_accounting_admin,1,1,1,1
12+
access_account_analytic_distribution_admin,access_account_analytic_distribution_admin,model_account_analytic_distribution,group_analytic_accounting_admin,1,1,1,1

analytic_restrictions/static/description/index.html

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
65
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
7-
<title>Analytic Restrictions</title>
6+
<title>README.rst</title>
87
<style type="text/css">
98

109
/*
@@ -360,16 +359,19 @@
360359
</style>
361360
</head>
362361
<body>
363-
<div class="document" id="analytic-restrictions">
364-
<h1 class="title">Analytic Restrictions</h1>
362+
<div class="document">
365363

364+
365+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme"><img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" /></a>
366+
<div class="section" id="analytic-restrictions">
367+
<h1>Analytic Restrictions</h1>
366368
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367369
!! This file is generated by oca-gen-addon-readme !!
368370
!! changes will be overwritten. !!
369371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370372
!! source digest: sha256:0bfd82e8e7890eed12df1ca79150c5da65df27c5e818203c926aa1f6b9de14c2
371373
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/Escodoo/account-addons/tree/14.0/analytic_restrictions"><img alt="Escodoo/account-addons" src="https://img.shields.io/badge/github-Escodoo%2Faccount--addons-lightgray.png?logo=github" /></a></p>
374+
<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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/Escodoo/account-addons/tree/16.0/analytic_restrictions"><img alt="Escodoo/account-addons" src="https://img.shields.io/badge/github-Escodoo%2Faccount--addons-lightgray.png?logo=github" /></a></p>
373375
<p>The “analytic_restrictions” module is an Odoo module that alters the permissions and create a new group to admin analytic data.</p>
374376
<p><strong>Table of contents</strong></p>
375377
<div class="contents local topic" id="contents">
@@ -385,30 +387,30 @@ <h1 class="title">Analytic Restrictions</h1>
385387
</ul>
386388
</div>
387389
<div class="section" id="usage">
388-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
390+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
389391
<ul class="simple">
390392
<li>Install the module</li>
391393
<li>Configure the users who should have administrator access to the analytic data.</li>
392394
</ul>
393395
</div>
394396
<div class="section" id="bug-tracker">
395-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
397+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
396398
<p>Bugs are tracked on <a class="reference external" href="https://github.com/Escodoo/account-addons/issues">GitHub Issues</a>.
397399
In case of trouble, please check there if your issue has already been reported.
398400
If you spotted it first, help us to smash it by providing a detailed and welcomed
399-
<a class="reference external" href="https://github.com/Escodoo/account-addons/issues/new?body=module:%20analytic_restrictions%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401+
<a class="reference external" href="https://github.com/Escodoo/account-addons/issues/new?body=module:%20analytic_restrictions%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
400402
<p>Do not contact contributors directly about support or help with technical issues.</p>
401403
</div>
402404
<div class="section" id="credits">
403-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
405+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
404406
<div class="section" id="authors">
405-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
407+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
406408
<ul class="simple">
407409
<li>Escodoo</li>
408410
</ul>
409411
</div>
410412
<div class="section" id="contributors">
411-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
413+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
412414
<ul class="simple">
413415
<li><a class="reference external" href="https://www.escodoo.com.br">Escodoo</a>:<ul>
414416
<li>Marcel Savegnago &lt;<a class="reference external" href="mailto:marcel.savegnago&#64;escodoo.com.br">marcel.savegnago&#64;escodoo.com.br</a>&gt;</li>
@@ -418,11 +420,12 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
418420
</ul>
419421
</div>
420422
<div class="section" id="maintainers">
421-
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
422-
<p>This module is part of the <a class="reference external" href="https://github.com/Escodoo/account-addons/tree/14.0/analytic_restrictions">Escodoo/account-addons</a> project on GitHub.</p>
423+
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
424+
<p>This module is part of the <a class="reference external" href="https://github.com/Escodoo/account-addons/tree/16.0/analytic_restrictions">Escodoo/account-addons</a> project on GitHub.</p>
423425
<p>You are welcome to contribute.</p>
424426
</div>
425427
</div>
426428
</div>
429+
</div>
427430
</body>
428431
</html>

0 commit comments

Comments
 (0)