Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing from upstream OCA/sale-reporting (16.0) #231

Merged
merged 3 commits into from
Jun 26, 2024
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ addon | version | maintainers | summary
--- | --- | --- | ---
[product_sold_by_delivery_week](product_sold_by_delivery_week/) | 16.0.1.0.1 | [![chienandalu](https://github.com/chienandalu.png?size=30px)](https://github.com/chienandalu) | Adds a field that graphically hints the weekly product sales
[sale_comment_template](sale_comment_template/) | 16.0.1.0.1 | | Comments texts templates on Sale documents
[sale_layout_category_hide_detail](sale_layout_category_hide_detail/) | 16.0.1.1.0 | | Hide details for sections in sale orders and invoices for reports and customer portal
[sale_layout_category_hide_detail](sale_layout_category_hide_detail/) | 16.0.1.1.1 | | Hide details for sections in sale orders and invoices for reports and customer portal
[sale_order_line_position](sale_order_line_position/) | 16.0.1.2.0 | | Adds position number on sale order line.
[sale_order_product_recommendation_product_sold_by_delivery_week](sale_order_product_recommendation_product_sold_by_delivery_week/) | 16.0.1.1.0 | [![chienandalu](https://github.com/chienandalu.png?size=30px)](https://github.com/chienandalu) | Adds the weekly sales field to the recommendation wizard
[sale_order_report_product_image](sale_order_report_product_image/) | 16.0.1.0.0 | | Show product images on Sale documents
Expand Down
2 changes: 1 addition & 1 deletion sale_layout_category_hide_detail/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Sale layout category hide detail
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ddd869eda2ed08d108f3b73ed2e3af0d29d45c8c6ecf40a71160020976f124bc
!! source digest: sha256:8d714a4d52594b4db101047e7d624de53181efcaed0cf09bc8f606bc4aeab5cf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion sale_layout_category_hide_detail/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Sale layout category hide detail",
"summary": "Hide details for sections in sale orders and invoices for "
"reports and customer portal",
"version": "16.0.1.1.0",
"version": "16.0.1.1.1",
"category": "Sales Management",
"website": "https://github.com/OCA/sale-reporting",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ <h1 class="title">Sale layout category hide detail</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ddd869eda2ed08d108f3b73ed2e3af0d29d45c8c6ecf40a71160020976f124bc
!! source digest: sha256:8d714a4d52594b4db101047e7d624de53181efcaed0cf09bc8f606bc4aeab5cf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/OCA/sale-reporting/tree/16.0/sale_layout_category_hide_detail"><img alt="OCA/sale-reporting" src="https://img.shields.io/badge/github-OCA%2Fsale--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-reporting-16-0/sale-reporting-16-0-sale_layout_category_hide_detail"><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/sale-reporting&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>This module allows you to check/uncheck the new ‘Show details’ and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ import {SectionAndNoteListRenderer} from "@account/components/section_and_note_f
import {patch} from "@web/core/utils/patch";

patch(SectionAndNoteListRenderer.prototype, "new_widgets_buttons_patch", {
getColumns(record) {
// Set record to use it in getSectionColumns()
this.record = record;
return this._super.apply(this, arguments);
},
getSectionColumns(columns) {
// We do not want to display icons in notes, only in sections
if (this.record.data.display_type !== "line_section") {
return this._super.apply(this, arguments);
}
var sectionCols = this._super.apply(this, arguments);
const widgetCols = columns.filter((col) => col.widget === "boolean_fa_icon");
const sectionWidget = widgetCols.map((col) => {
Expand Down
Loading