Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[web_calendar_slot_duration](web_calendar_slot_duration/) | 19.0.1.0.0 | <a href='https://github.com/Yajo'><img src='https://github.com/Yajo.png' width='32' height='32' style='border-radius:50%;' alt='Yajo'/></a> | Customizable calendar slot durations
[web_chatter_position](web_chatter_position/) | 19.0.1.0.0 | <a href='https://github.com/trisdoan'><img src='https://github.com/trisdoan.png' width='32' height='32' style='border-radius:50%;' alt='trisdoan'/></a> | Add an option to change the chatter position
[web_chatter_position](web_chatter_position/) | 19.0.1.0.1 | <a href='https://github.com/trisdoan'><img src='https://github.com/trisdoan.png' width='32' height='32' style='border-radius:50%;' alt='trisdoan'/></a> | Add an option to change the chatter position
[web_company_color](web_company_color/) | 19.0.1.0.0 | | Web Company Color
[web_company_context_highlight](web_company_context_highlight/) | 19.0.1.0.0 | <a href='https://github.com/pverkest'><img src='https://github.com/pverkest.png' width='32' height='32' style='border-radius:50%;' alt='pverkest'/></a> | Highlight the company switcher when multiple companies are selected
[web_dark_mode](web_dark_mode/) | 19.0.1.0.0 | | Enabled Dark Mode for the Odoo Backend
Expand All @@ -49,7 +49,7 @@ addon | version | maintainers | summary
[web_search_deactivate_autosearch](web_search_deactivate_autosearch/) | 19.0.1.0.0 | <a href='https://github.com/samirGuesmi'><img src='https://github.com/samirGuesmi.png' width='32' height='32' style='border-radius:50%;' alt='samirGuesmi'/></a> <a href='https://github.com/AnizR'><img src='https://github.com/AnizR.png' width='32' height='32' style='border-radius:50%;' alt='AnizR'/></a> | Allow user to deactivate autosearch to add multiple filters
[web_search_with_and](web_search_with_and/) | 19.0.1.0.0 | | Use AND conditions on omnibar search
[web_timeline](web_timeline/) | 19.0.1.0.0 | | Interactive visualization chart to show events in time
[web_tree_many2one_clickable](web_tree_many2one_clickable/) | 19.0.1.0.0 | | Open the linked resource when clicking on their name
[web_tree_many2one_clickable](web_tree_many2one_clickable/) | 19.0.1.1.0 | | Open the linked resource when clicking on their name
[web_widget_bokeh_chart](web_widget_bokeh_chart/) | 19.0.1.0.1 | <a href='https://github.com/LoisRForgeFlow'><img src='https://github.com/LoisRForgeFlow.png' width='32' height='32' style='border-radius:50%;' alt='LoisRForgeFlow'/></a> <a href='https://github.com/JasminSForgeFlow'><img src='https://github.com/JasminSForgeFlow.png' width='32' height='32' style='border-radius:50%;' alt='JasminSForgeFlow'/></a> | This widget allows to display charts using Bokeh library.
[web_widget_domain_editor_dialog](web_widget_domain_editor_dialog/) | 19.0.1.0.0 | | Recovers the Domain Editor Dialog functionality
[web_widget_dropdown_dynamic](web_widget_dropdown_dynamic/) | 19.0.1.0.0 | | This module adds support for dynamic dropdown widget
Expand Down
2 changes: 1 addition & 1 deletion web_chatter_position/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Chatter Position
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:83e45f7147e5ef37d3b63106b80b6dd4e5820a1f32f3b4b308c400cca0cfc21e
!! source digest: sha256:538930881311c77fd879ff1d7f93f1290d893faa58f4235c5ccbad586d483ef1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion web_chatter_position/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Chatter Position",
"summary": "Add an option to change the chatter position",
"version": "19.0.1.0.0",
"version": "19.0.1.0.1",
"author": "Hynsys Technologies, Camptocamp, Alitec Pte Ltd,"
" Odoo Community Association (OCA)",
"maintainers": ["trisdoan"],
Expand Down
4 changes: 2 additions & 2 deletions web_chatter_position/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<title>Chatter Position</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -372,7 +372,7 @@ <h1>Chatter Position</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:83e45f7147e5ef37d3b63106b80b6dd4e5820a1f32f3b4b308c400cca0cfc21e
!! source digest: sha256:538930881311c77fd879ff1d7f93f1290d893faa58f4235c5ccbad586d483ef1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/web/tree/19.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-19-0/web-19-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=19.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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ patch(FormCompiler.prototype, {
const form = super.compileForm(el, params);
const sheet = form.querySelector(".o_form_sheet_bg");
if (sheet && odoo.web_chatter_position === "sided") {
// Keep the core classes, only force the side by side layout
const tAttfClass = form.getAttribute("t-attf-class") || "";
setAttributes(form, {
"t-attf-class": "",
class: "d-flex d-print-block flex-nowrap h-100",
"t-attf-class": tAttfClass.replace(
/\{\{[^}]*"flex-column"[^}]*\}\}/,
"flex-nowrap h-100"
),
});
}
return form;
Expand Down
10 changes: 9 additions & 1 deletion web_chatter_position/static/src/scss/form_controller.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
.o_form_sheet_bg.o_fullwidth,
.o_form_sheet_bg.o_fullwidth .o_form_sheet {
max-width: none !important;
width: auto !important;
}
// Width must not follow the content: x2many lists size their columns
// from it, which would loop on every resize
.o_form_sheet_bg.o_fullwidth {
width: 100% !important;
}
// Same for the sheet beside a sided chatter
.o_form_renderer.flex-nowrap > .o_form_sheet_bg {
min-width: 0;
}
}
7 changes: 3 additions & 4 deletions web_tree_many2one_clickable/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Clickable many2one fields for tree views
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fcc4f4fa242a6f8602f46237e6b39090c2307cd9d11b8ceb6516e6dd2b123099
!! source digest: sha256:dc9e876bc405587499888cf1a048aa4b1e9f4501663a247fa7029d95d2c52392
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -36,6 +36,8 @@ This addon forces Odoo to use many2one widget on a many2one fields in
tree views. This allows users to open linked resources from trees
directly, using a button without accessing the form.

This also works in the lines of sales, purchases and invoices.

**Table of contents**

.. contents::
Expand Down Expand Up @@ -63,9 +65,6 @@ This widget is currently not working on the product field in the lines
tree of the sale order form, see https://github.com/OCA/web/pull/1438
for further details.

To add this functionality to lines of sales, purchases and invoices, as
they are special views, is required a glue module that add this feature.

Bug Tracker
===========

Expand Down
14 changes: 11 additions & 3 deletions web_tree_many2one_clickable/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"name": "Clickable many2one fields for tree views",
"summary": "Open the linked resource when clicking on their name",
"version": "19.0.1.0.0",
"version": "19.0.1.1.0",
"category": "Hidden",
"website": "https://github.com/OCA/web",
"author": "Therp BV, "
Expand All @@ -25,8 +25,16 @@
"many2one_button/many2one_button.esm.js",
"web_tree_many2one_clickable/static/src/components/"
"many2one_button/many2one_button.scss",
"web_tree_many2one_clickable/static/src/components/"
"many2one_button/many2one_button.xml",
# Load right after the list renderer templates so the extension is
# inherited by list renderers that use their own primary record row
# template, such as the section and note lists of invoice, sale and
# purchase lines
(
"after",
"web/static/src/views/list/list_renderer.xml",
"web_tree_many2one_clickable/static/src/components/"
"many2one_button/many2one_button.xml",
),
]
},
}
2 changes: 2 additions & 0 deletions web_tree_many2one_clickable/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This addon forces Odoo to use many2one widget on a many2one fields in
tree views. This allows users to open linked resources from trees
directly, using a button without accessing the form.

This also works in the lines of sales, purchases and invoices.
3 changes: 0 additions & 3 deletions web_tree_many2one_clickable/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
This widget is currently not working on the product field in the lines
tree of the sale order form, see <https://github.com/OCA/web/pull/1438>
for further details.

To add this functionality to lines of sales, purchases and invoices, as
they are special views, is required a glue module that add this feature.
7 changes: 3 additions & 4 deletions web_tree_many2one_clickable/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<title>Clickable many2one fields for tree views</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -372,12 +372,13 @@ <h1>Clickable many2one fields for tree views</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fcc4f4fa242a6f8602f46237e6b39090c2307cd9d11b8ceb6516e6dd2b123099
!! source digest: sha256:dc9e876bc405587499888cf1a048aa4b1e9f4501663a247fa7029d95d2c52392
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/OCA/web/tree/19.0/web_tree_many2one_clickable"><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-19-0/web-19-0-web_tree_many2one_clickable"><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=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This addon forces Odoo to use many2one widget on a many2one fields in
tree views. This allows users to open linked resources from trees
directly, using a button without accessing the form.</p>
<p>This also works in the lines of sales, purchases and invoices.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down Expand Up @@ -408,8 +409,6 @@ <h2><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h2>
<p>This widget is currently not working on the product field in the lines
tree of the sale order form, see <a class="reference external" href="https://github.com/OCA/web/pull/1438">https://github.com/OCA/web/pull/1438</a>
for further details.</p>
<p>To add this functionality to lines of sales, purchases and invoices, as
they are special views, is required a glue module that add this feature.</p>
</div>
<div class="section" id="bug-tracker">
<h2><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h2>
Expand Down
Loading