Skip to content

Commit

Permalink
[ADD] pos_receipt_hide_info
Browse files Browse the repository at this point in the history
  • Loading branch information
trisdoan committed Apr 25, 2024
1 parent 16854a4 commit 1018d6c
Show file tree
Hide file tree
Showing 15 changed files with 669 additions and 0 deletions.
85 changes: 85 additions & 0 deletions pos_receipt_hide_info/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
============================
POS Receipt Hide Information
============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7a7e48677c7041080c4ed37a5571deb4807ad90d01c2aceea24555a6c8ffb2e3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_receipt_hide_info
: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_receipt_hide_info
: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|

Removes information from POS receipt.

**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_receipt_hide_info%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 \<<[email protected]>\>

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_receipt_hide_info>`_ 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_receipt_hide_info/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions pos_receipt_hide_info/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "POS Receipt Hide Information",
"summary": "Removes Information from POS receipt.",
"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": ["point_of_sale"],
"assets": {
"point_of_sale.assets": [
"pos_receipt_hide_info/static/src/js/order_receipt.js",
"pos_receipt_hide_info/static/src/xml/**/*",
],
},
"data": ["views/res_config_settings.xml"],
}
2 changes: 2 additions & 0 deletions pos_receipt_hide_info/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import pos_config
from . import res_config_settings
16 changes: 16 additions & 0 deletions pos_receipt_hide_info/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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"

hide_user = fields.Boolean(string="Hide User in POS receipt?", default=True)
hide_company_email = fields.Boolean(
string="Hide Company Email in POS receipt?", default=True
)
hide_company_phone = fields.Boolean(
string="Hide Company Phone in POS receipt?", default=True
)
16 changes: 16 additions & 0 deletions pos_receipt_hide_info/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

pos_hide_user = fields.Boolean(related="pos_config_id.hide_user", readonly=False)
pos_hide_company_email = fields.Boolean(
related="pos_config_id.hide_company_email", readonly=False
)
pos_hide_company_phone = fields.Boolean(
related="pos_config_id.hide_company_phone", readonly=False
)
3 changes: 3 additions & 0 deletions pos_receipt_hide_info/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [Trobz](https://www.trobz.com):

> - Tri Doan \<<[email protected]>\>
3 changes: 3 additions & 0 deletions pos_receipt_hide_info/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The development of this module has been financially supported by:

* Camptocamp
1 change: 1 addition & 0 deletions pos_receipt_hide_info/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removes information from POS receipt.
Loading

0 comments on commit 1018d6c

Please sign in to comment.