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

[15.0] pos_discount_total #1

Merged
merged 2 commits into from
Mar 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
6 changes: 3 additions & 3 deletions .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: ea28867
_commit: b8281af
_src_path: /opt/odoo-projects/var/addons-repo-template/
ci: GitHub
convert_readme_fragments_to_markdown: false
Expand All @@ -18,8 +18,8 @@ org_slug: it-projects-llc
rebel_module_groups: []
repo_description: ''
repo_name: POS Addons
repo_slug: pos-addons2
repo_website: https://github.com/it-projects-llc/pos-addons2
repo_slug: pos-addons
repo_website: https://github.com/it-projects-llc/pos-addons
use_pyproject_toml: false
use_ruff: false

9 changes: 6 additions & 3 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 All @@ -37,20 +39,21 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website
args: ["https://github.com/it-projects-llc/pos-addons2"]
args: ["https://github.com/it-projects-llc/pos-addons"]
- id: oca-gen-addon-readme
args:
- --addons-dir=.
- --branch=15.0
- --org-name=it-projects-llc
- --repo-name=pos-addons2
- --repo-name=pos-addons
- --if-source-changed
- --keep-source-digest
- --convert-fragments-to-markdown
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.25
hooks:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

<!-- /!\ Non OCA Context : Set here the badge of your runbot / runboat instance. -->
[![Pre-commit Status](https://github.com/it-projects-llc/pos-addons2/actions/workflows/pre-commit.yml/badge.svg?branch=15.0)](https://github.com/it-projects-llc/pos-addons2/actions/workflows/pre-commit.yml?query=branch%3A15.0)
[![Build Status](https://github.com/it-projects-llc/pos-addons2/actions/workflows/test.yml/badge.svg?branch=15.0)](https://github.com/it-projects-llc/pos-addons2/actions/workflows/test.yml?query=branch%3A15.0)
[![codecov](https://codecov.io/gh/it-projects-llc/pos-addons2/branch/15.0/graph/badge.svg)](https://codecov.io/gh/it-projects-llc/pos-addons2)
[![Pre-commit Status](https://github.com/it-projects-llc/pos-addons/actions/workflows/pre-commit.yml/badge.svg?branch=15.0)](https://github.com/it-projects-llc/pos-addons/actions/workflows/pre-commit.yml?query=branch%3A15.0)
[![Build Status](https://github.com/it-projects-llc/pos-addons/actions/workflows/test.yml/badge.svg?branch=15.0)](https://github.com/it-projects-llc/pos-addons/actions/workflows/test.yml?query=branch%3A15.0)
[![codecov](https://codecov.io/gh/it-projects-llc/pos-addons/branch/15.0/graph/badge.svg)](https://codecov.io/gh/it-projects-llc/pos-addons)
<!-- /!\ Non OCA Context : Set here the badge of your translation instance. -->

<!-- /!\ do not modify above this line -->
Expand Down
66 changes: 66 additions & 0 deletions pos_discount_total/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
===================
POS: Total discount
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:485fd26d3dca364de0dcb3d89209eaf69b131abdcb9fe0d146f0dc660f20c6be
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-it--projects--llc%2Fpos--addons-lightgray.png?logo=github
:target: https://github.com/it-projects-llc/pos-addons/tree/15.0/pos_discount_total
:alt: it-projects-llc/pos-addons

|badge1| |badge2| |badge3|

The module allows make discount for whole order.

**Table of contents**

.. contents::
:local:

Usage
=====

Just select total line and type discount at numpad as usual. The module
will apply discount for all items.

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

Bugs are tracked on `GitHub Issues <https://github.com/it-projects-llc/pos-addons/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/it-projects-llc/pos-addons/issues/new?body=module:%20pos_discount_total%0Aversion:%2015.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
-------

* IT-Projects LLC

Contributors
------------

- Eugene Molotov (https://github.com/em230418)

Maintainers
-----------

This module is part of the `it-projects-llc/pos-addons <https://github.com/it-projects-llc/pos-addons/tree/15.0/pos_discount_total>`_ project on GitHub.

You are welcome to contribute.
Empty file added pos_discount_total/__init__.py
Empty file.
25 changes: 25 additions & 0 deletions pos_discount_total/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": """POS: Total discount""",
"version": "15.0.0.1.0",
"author": "IT-Projects LLC",
"support": "[email protected]",
"website": "https://github.com/it-projects-llc/pos-addons",
"license": "LGPL-3",
"depends": [
"point_of_sale",
],
"assets": {
"point_of_sale.assets": [
"pos_discount_total/static/src/css/pos.css",
"pos_discount_total/static/src/js/Screens/ProductScreen/OrderSummary.js",
"pos_discount_total/static/src/js/Screens/ProductScreen/OrderWidget.js",
"pos_discount_total/static/src/js/Screens/ProductScreen/ProductScreen.js",
],
"web.assets_qweb": [
"pos_discount_total/static/src/xml/**/*",
],
"web.assets_tests": [
"pos_discount_total/static/tests/**/*",
],
},
}
1 change: 1 addition & 0 deletions pos_discount_total/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Eugene Molotov (https://github.com/em230418)
1 change: 1 addition & 0 deletions pos_discount_total/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The module allows make discount for whole order.
2 changes: 2 additions & 0 deletions pos_discount_total/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Just select total line and type discount at numpad as usual.
The module will apply discount for all items.
Loading
Loading