Skip to content

Commit

Permalink
[IMP] web_chatter_position: implement feature on controller and add s…
Browse files Browse the repository at this point in the history
…witch button
  • Loading branch information
trisdoan committed Dec 30, 2024
1 parent f3a122c commit 4ec2e8b
Show file tree
Hide file tree
Showing 9 changed files with 188 additions and 175 deletions.
6 changes: 5 additions & 1 deletion web_chatter_position/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Chatter Position
|badge1| |badge2| |badge3| |badge4| |badge5|

Configurable chatter position from the user preferences.

Change Chatter Position on the fly.
Supports Both Community & Enterprise Edition.

**Table of contents**
Expand All @@ -42,6 +42,7 @@ Usage

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

Bug Tracker
===========
Expand Down Expand Up @@ -70,6 +71,9 @@ Contributors
* `Camptocamp <https://www.camptocamp.com>`_

* Iván Todorovich <[email protected]>
* `Trobz <https://www.trobz.com>`

* Tris Doan <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
5 changes: 5 additions & 0 deletions web_chatter_position/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"assets": {
"web.assets_backend": [
"/web_chatter_position/static/src/**/*.js",
(
"after",
"/web/static/src/views/form/form_controller.xml",
"/web_chatter_position/static/src/views/form/form_controller.xml",
),
],
},
}
3 changes: 3 additions & 0 deletions web_chatter_position/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
* `Camptocamp <https://www.camptocamp.com>`_

* Iván Todorovich <[email protected]>
* `Trobz <https://www.trobz.com>`

* Tris Doan <[email protected]>
2 changes: 1 addition & 1 deletion web_chatter_position/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Configurable chatter position from the user preferences.

Change Chatter Position on the fly.
Supports Both Community & Enterprise Edition.
1 change: 1 addition & 0 deletions web_chatter_position/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#. There's a **Chatter Position** option in **User Preferences**, where you can
choose between ``auto``, ``bottom`` and ``sided``.
#. The position can also be changed on the fly using a new button on the top right side of Form Views.
24 changes: 16 additions & 8 deletions web_chatter_position/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -9,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
: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 @@ -275,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 @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

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

span.section-subtitle {
Expand Down Expand Up @@ -370,8 +370,9 @@ <h1 class="title">Chatter Position</h1>
!! source digest: sha256:fbb006a9a99fbcf94cbb8823017ff08050ed9294fd3c81929e4a4b2e225ca61b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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>
<p>Configurable chatter position from the user preferences.</p>
<p>Supports Both Community &amp; Enterprise Edition.</p>
<p>Configurable chatter position from the user preferences.
Change Chatter Position on the fly.
Supports Both Community &amp; Enterprise Edition.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -388,7 +389,8 @@ <h1 class="title">Chatter Position</h1>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>#. There’s a <strong>Chatter Position</strong> option in <strong>User Preferences</strong>, where you can
choose between <tt class="docutils literal">auto</tt>, <tt class="docutils literal">bottom</tt> and <tt class="docutils literal">sided</tt>.</p>
choose between <tt class="docutils literal">auto</tt>, <tt class="docutils literal">bottom</tt> and <tt class="docutils literal">sided</tt>.
#. The position can also be changed on the fly using a new button on the top right side of Form Views.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
Expand Down Expand Up @@ -416,12 +418,18 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;camptocamp.com">ivan.todorovich&#64;camptocamp.com</a>&gt;</li>
</ul>
</li>
<li><cite>Trobz &lt;https://www.trobz.com&gt;</cite><ul>
<li>Tris Doan &lt;<a class="reference external" href="mailto:tridm&#64;trobz.com">tridm&#64;trobz.com</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">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>
Expand Down
165 changes: 0 additions & 165 deletions web_chatter_position/static/src/js/web_chatter_position.esm.js

This file was deleted.

Loading

0 comments on commit 4ec2e8b

Please sign in to comment.