Skip to content

Commit 79f985c

Browse files
committed
[IMP] web_chatter_position: implement feature on controller and add switch button
1 parent f3a122c commit 79f985c

File tree

9 files changed

+193
-175
lines changed

9 files changed

+193
-175
lines changed

web_chatter_position/README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Chatter Position
2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
Configurable chatter position from the user preferences.
32-
32+
Change Chatter Position on the fly.
3333
Supports Both Community & Enterprise Edition.
3434

3535
**Table of contents**
@@ -42,6 +42,7 @@ Usage
4242

4343
#. There's a **Chatter Position** option in **User Preferences**, where you can
4444
choose between ``auto``, ``bottom`` and ``sided``.
45+
#. The position can also be changed on the fly using a new button on the top right side of Form Views.
4546

4647
Bug Tracker
4748
===========
@@ -70,6 +71,9 @@ Contributors
7071
* `Camptocamp <https://www.camptocamp.com>`_
7172

7273
* Iván Todorovich <ivan.todorovich@camptocamp.com>
74+
* `Trobz <https://www.trobz.com>`
75+
76+
* Tris Doan <tridm@trobz.com>
7377

7478
Maintainers
7579
~~~~~~~~~~~

web_chatter_position/__manifest__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"assets": {
1515
"web.assets_backend": [
1616
"/web_chatter_position/static/src/**/*.js",
17+
(
18+
"after",
19+
"/web/static/src/views/form/form_controller.xml",
20+
"/web_chatter_position/static/src/views/form/form_controller.xml",
21+
),
1722
],
1823
},
1924
}

web_chatter_position/readme/CONTRIBUTORS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
* `Camptocamp <https://www.camptocamp.com>`_
44

55
* Iván Todorovich <ivan.todorovich@camptocamp.com>
6+
* `Trobz <https://www.trobz.com>`
7+
8+
* Tris Doan <tridm@trobz.com>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Configurable chatter position from the user preferences.
2-
2+
Change Chatter Position on the fly.
33
Supports Both Community & Enterprise Edition.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#. There's a **Chatter Position** option in **User Preferences**, where you can
22
choose between ``auto``, ``bottom`` and ``sided``.
3+
#. The position can also be changed on the fly using a new button on the top right side of Form Views.

web_chatter_position/static/description/index.html

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
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>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -370,8 +370,9 @@ <h1 class="title">Chatter Position</h1>
370370
!! source digest: sha256:fbb006a9a99fbcf94cbb8823017ff08050ed9294fd3c81929e4a4b2e225ca61b
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<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/web/tree/16.0/web_chatter_position"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_chatter_position"><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/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>Configurable chatter position from the user preferences.</p>
374-
<p>Supports Both Community &amp; Enterprise Edition.</p>
373+
<p>Configurable chatter position from the user preferences.
374+
Change Chatter Position on the fly.
375+
Supports Both Community &amp; Enterprise Edition.</p>
375376
<p><strong>Table of contents</strong></p>
376377
<div class="contents local topic" id="contents">
377378
<ul class="simple">
@@ -388,7 +389,8 @@ <h1 class="title">Chatter Position</h1>
388389
<div class="section" id="usage">
389390
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
390391
<p>#. There’s a <strong>Chatter Position</strong> option in <strong>User Preferences</strong>, where you can
391-
choose between <tt class="docutils literal">auto</tt>, <tt class="docutils literal">bottom</tt> and <tt class="docutils literal">sided</tt>.</p>
392+
choose between <tt class="docutils literal">auto</tt>, <tt class="docutils literal">bottom</tt> and <tt class="docutils literal">sided</tt>.
393+
#. The position can also be changed on the fly using a new button on the top right side of Form Views.</p>
392394
</div>
393395
<div class="section" id="bug-tracker">
394396
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
@@ -416,12 +418,18 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
416418
<li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;camptocamp.com">ivan.todorovich&#64;camptocamp.com</a>&gt;</li>
417419
</ul>
418420
</li>
421+
<li><cite>Trobz &lt;https://www.trobz.com&gt;</cite><ul>
422+
<li>Tris Doan &lt;<a class="reference external" href="mailto:tridm&#64;trobz.com">tridm&#64;trobz.com</a>&gt;</li>
423+
</ul>
424+
</li>
419425
</ul>
420426
</div>
421427
<div class="section" id="maintainers">
422428
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
423429
<p>This module is maintained by the OCA.</p>
424-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
430+
<a class="reference external image-reference" href="https://odoo-community.org">
431+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
432+
</a>
425433
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
426434
mission is to support the collaborative development of Odoo features and
427435
promote its widespread use.</p>

web_chatter_position/static/src/js/web_chatter_position.esm.js

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)