From 19e7ad436715acd9555d7310beb1dcb7253cc404 Mon Sep 17 00:00:00 2001
From: Jose Zambudio
Date: Mon, 6 May 2024 12:39:34 +0200
Subject: [PATCH] [IMP] pos_report_session_summary: black, isort, prettier
---
pos_report_session_summary/README.rst | 10 +++---
pos_report_session_summary/__manifest__.py | 2 +-
.../static/description/index.html | 17 +++++----
.../views/report_session_summary.xml | 35 ++++++++-----------
.../odoo/addons/pos_report_session_summary | 1 +
setup/pos_report_session_summary/setup.py | 6 ++++
6 files changed, 38 insertions(+), 33 deletions(-)
create mode 120000 setup/pos_report_session_summary/odoo/addons/pos_report_session_summary
create mode 100644 setup/pos_report_session_summary/setup.py
diff --git a/pos_report_session_summary/README.rst b/pos_report_session_summary/README.rst
index 11c70d5999..62a92f9c5d 100644
--- a/pos_report_session_summary/README.rst
+++ b/pos_report_session_summary/README.rst
@@ -17,13 +17,13 @@ POS report Session Summary
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
- :target: https://github.com/OCA/pos/tree/15.0/pos_report_session_summary
+ :target: https://github.com/OCA/pos/tree/16.0/pos_report_session_summary
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_report_session_summary
+ :target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_report_session_summary
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=15.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=16.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -48,7 +48,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -74,6 +74,6 @@ 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.
-This module is part of the `OCA/pos `_ project on GitHub.
+This module is part of the `OCA/pos `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/pos_report_session_summary/__manifest__.py b/pos_report_session_summary/__manifest__.py
index d2fdebb9b3..3df1d471ed 100644
--- a/pos_report_session_summary/__manifest__.py
+++ b/pos_report_session_summary/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "POS report Session Summary",
- "version": "15.0.1.0.1",
+ "version": "16.0.1.0.0",
"category": "Point Of Sale",
"summary": "Adds a Session Summary PDF report on the POS session",
"author": "Akretion, Odoo SA, Odoo Community Association (OCA)",
diff --git a/pos_report_session_summary/static/description/index.html b/pos_report_session_summary/static/description/index.html
index bf7542b025..48c77e1308 100644
--- a/pos_report_session_summary/static/description/index.html
+++ b/pos_report_session_summary/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-: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.
@@ -274,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 }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@ POS report Session Summary
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d49558e733ac71495012dec9c58b904a851fb3d7215a1cd56bba7813ac257eeb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
Add the POS Session Summary report removed in 10.0
see : https://github.com/odoo/odoo/commit/e741de8b0c152279eb2d20faa77d06df8e50b91a
Table of contents
@@ -392,7 +393,7 @@
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -407,11 +408,13 @@
This module is maintained by the OCA.
-
+
+
+
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.
-
This module is part of the OCA/pos project on GitHub.
+
This module is part of the OCA/pos project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/pos_report_session_summary/views/report_session_summary.xml b/pos_report_session_summary/views/report_session_summary.xml
index b11073a1b1..0a3db154ab 100644
--- a/pos_report_session_summary/views/report_session_summary.xml
+++ b/pos_report_session_summary/views/report_session_summary.xml
@@ -37,25 +37,22 @@
Journal
|
-
+ |
Starting Balance
|
-
+ |
Total Transactions
|
-
+ |
Ending Balance
|
-
+ |
Difference
|
-
+ |
Currency
|
-
+ |
Status
|
@@ -64,25 +61,22 @@
|
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
- |
@@ -104,8 +98,9 @@
Description |
Reference |
Partner |
+ Partner |
Account |
- Amount |
+ Amount |
@@ -130,7 +125,7 @@
t-if="'account_id' in line"
t-field="line.account_id"
/>
-
+ |
|
diff --git a/setup/pos_report_session_summary/odoo/addons/pos_report_session_summary b/setup/pos_report_session_summary/odoo/addons/pos_report_session_summary
new file mode 120000
index 0000000000..e8d727cc72
--- /dev/null
+++ b/setup/pos_report_session_summary/odoo/addons/pos_report_session_summary
@@ -0,0 +1 @@
+../../../../pos_report_session_summary
\ No newline at end of file
diff --git a/setup/pos_report_session_summary/setup.py b/setup/pos_report_session_summary/setup.py
new file mode 100644
index 0000000000..28c57bb640
--- /dev/null
+++ b/setup/pos_report_session_summary/setup.py
@@ -0,0 +1,6 @@
+import setuptools
+
+setuptools.setup(
+ setup_requires=['setuptools-odoo'],
+ odoo_addon=True,
+)