Skip to content

Commit 8c448fc

Browse files
committed
[19.0][MIG] microsoft_drive_account
1 parent 5f660a6 commit 8c448fc

6 files changed

Lines changed: 16 additions & 17 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ exclude: |
88
^fs_image/|
99
^fs_storage_ms_drive/|
1010
^image_tag/|
11-
^microsoft_drive_account/|
1211
^storage_backend/|
1312
^storage_backend_ftp/|
1413
^storage_backend_s3/|

microsoft_drive_account/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Microsoft account for Drive
2121
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
2222
:alt: License: LGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github
24-
:target: https://github.com/OCA/storage/tree/18.0/microsoft_drive_account
24+
:target: https://github.com/OCA/storage/tree/19.0/microsoft_drive_account
2525
:alt: OCA/storage
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-microsoft_drive_account
27+
:target: https://translation.odoo-community.org/projects/storage-19-0/storage-19-0-microsoft_drive_account
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/storage&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/storage&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -89,7 +89,7 @@ Bug Tracker
8989
Bugs are tracked on `GitHub Issues <https://github.com/OCA/storage/issues>`_.
9090
In case of trouble, please check there if your issue has already been reported.
9191
If you spotted it first, help us to smash it by providing a detailed and welcomed
92-
`feedback <https://github.com/OCA/storage/issues/new?body=module:%20microsoft_drive_account%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
92+
`feedback <https://github.com/OCA/storage/issues/new?body=module:%20microsoft_drive_account%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
9393

9494
Do not contact contributors directly about support or help with technical issues.
9595

@@ -134,6 +134,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
134134

135135
|maintainer-lmignon|
136136

137-
This module is part of the `OCA/storage <https://github.com/OCA/storage/tree/18.0/microsoft_drive_account>`_ project on GitHub.
137+
This module is part of the `OCA/storage <https://github.com/OCA/storage/tree/19.0/microsoft_drive_account>`_ project on GitHub.
138138

139139
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

microsoft_drive_account/__manifest__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Microsoft account for Drive",
66
"summary": """
77
Link user with Microsoft """,
8-
"version": "18.0.1.0.0",
8+
"version": "19.0.1.0.0",
99
"license": "LGPL-3",
1010
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/storage",
@@ -22,8 +22,6 @@
2222
"web.assets_backend": [
2323
"microsoft_drive_account/static/src/js/fields/**/*",
2424
],
25-
'installable': False,
26-
},
25+
},
2726
"maintainers": ["lmignon"],
28-
'installable': False,
2927
}

microsoft_drive_account/controllers/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313

1414
class MicrosoftAuth(main.MicrosoftAuth):
15-
@http.route("/ms_drive_account/status", type="json", auth="user", methods=["POST"])
15+
@http.route(
16+
"/ms_drive_account/status", type="jsonrpc", auth="user", methods=["POST"]
17+
)
1618
def check_user_connected(self, from_url=None, **kwargs):
1719
"""Check if the user is connected to Microsoft Drive.
1820

microsoft_drive_account/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Microsoft account for Drive</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:6562e132a8a2c42db4effd6fe8331af8f95281bceecbeade981c7beba63ba2e0
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<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/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/storage/tree/18.0/microsoft_drive_account"><img alt="OCA/storage" src="https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-microsoft_drive_account"><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/storage&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<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/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/storage/tree/19.0/microsoft_drive_account"><img alt="OCA/storage" src="https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/storage-19-0/storage-19-0-microsoft_drive_account"><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/storage&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This addon allows the user to link their Microsoft Drive account to
379379
Odoo. The stored credentials are then used by other addons to perform
380380
actions on Drive as the logged-in user.</p>
@@ -440,7 +440,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
440440
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/storage/issues">GitHub Issues</a>.
441441
In case of trouble, please check there if your issue has already been reported.
442442
If you spotted it first, help us to smash it by providing a detailed and welcomed
443-
<a class="reference external" href="https://github.com/OCA/storage/issues/new?body=module:%20microsoft_drive_account%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
443+
<a class="reference external" href="https://github.com/OCA/storage/issues/new?body=module:%20microsoft_drive_account%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
444444
<p>Do not contact contributors directly about support or help with technical issues.</p>
445445
</div>
446446
<div class="section" id="credits">
@@ -475,7 +475,7 @@ <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
475475
promote its widespread use.</p>
476476
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
477477
<p><a class="reference external image-reference" href="https://github.com/lmignon"><img alt="lmignon" src="https://github.com/lmignon.png?size=40px" /></a></p>
478-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/storage/tree/18.0/microsoft_drive_account">OCA/storage</a> project on GitHub.</p>
478+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/storage/tree/19.0/microsoft_drive_account">OCA/storage</a> project on GitHub.</p>
479479
<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>
480480
</div>
481481
</div>

microsoft_drive_account/views/res_users.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<field name="model">res.users</field>
88
<field name="inherit_id" ref="base.view_users_form" />
99
<field name="arch" type="xml">
10-
<page name="account_security" position="inside">
10+
<page name="page_security" position="inside">
1111
<group string="Drive" name="drive_group">
1212
<field name="microsoft_drive_status" widget="ms_drive_connect" />
1313
<group invisible="microsoft_drive_status == 'not_connected'">
@@ -40,7 +40,7 @@
4040
<field name="model">res.users</field>
4141
<field name="inherit_id" ref="base.view_users_form_simple_modif" />
4242
<field name="arch" type="xml">
43-
<group name="auth" position="after">
43+
<page name="page_security" position="inside">
4444
<group string="Drive" name="drive_group">
4545
<div class="alert alert-info" role="alert" colspan="4">
4646
<span invisible="microsoft_drive_status == 'connected'">
@@ -58,7 +58,7 @@
5858
nolabel="1"
5959
/>
6060
</group>
61-
</group>
61+
</page>
6262
</field>
6363
</record>
6464
</odoo>

0 commit comments

Comments
 (0)