Skip to content

Commit

Permalink
Merge PR #1488 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 7, 2023
2 parents be801e0 + 3384403 commit 8256eae
Show file tree
Hide file tree
Showing 23 changed files with 1,157 additions and 0 deletions.
101 changes: 101 additions & 0 deletions account_invoice_fixed_discount/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
======================
Account Fixed Discount
======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/15.0/account_invoice_fixed_discount
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-15-0/account-invoicing-15-0-account_invoice_fixed_discount
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/95/15.0
:alt: Try me on Runbot

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

This module extends the functionality of Invoicing to allow you to apply fixed
amount discounts at invoice line level.

The module also extends the invoice report to show fixed discount.

**Table of contents**

.. contents::
:local:

Installation
============

**Warning**: This module is incompatible with
``account_invoice_triple_discount`` which also belongs to `OCA/account-invoicing
<https://github.com/OCA/account-invoicing>`__.

Usage
=====

To use this module, you need to:

#. Go to *Settings* and *Activate the developer mode*
#. Go to *Invoicing*.
#. Create a Invoice and specify a fixed discount in a line.

Known issues / Roadmap
======================

* At the moment, the simultaneous use of percent and fixed discounts (at
line level) is not supported.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_fixed_discount%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
~~~~~~~

* ForgeFlow

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

* Lois Rilo <[email protected]>
* Jordi Ballester <[email protected]>
* Rattapong Chokmasermkul <[email protected]>
* Kitti U. <[email protected]>

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/account-invoicing <https://github.com/OCA/account-invoicing/tree/15.0/account_invoice_fixed_discount>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions account_invoice_fixed_discount/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)

from . import models
20 changes: 20 additions & 0 deletions account_invoice_fixed_discount/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2017 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)

{
"name": "Account Fixed Discount",
"summary": "Allows to apply fixed amount discounts in invoices.",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-invoicing",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["account"],
"data": [
"security/res_groups.xml",
"views/account_move_view.xml",
"reports/report_account_invoice.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.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: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Disc. Fixed Amount</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,field_description:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Discount (Fixed)"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Fixed amount discount."
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_invoice_fixed_discount
#: code:addons/account_invoice_fixed_discount/models/account_move.py:0
#, python-format
msgid "You can only set one type of discount per line."
msgstr ""
46 changes: 46 additions & 0 deletions account_invoice_fixed_discount/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ca\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"

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Disc. Fixed Amount</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,field_description:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Discount (Fixed)"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Fixed amount discount."
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_invoice_fixed_discount
#: code:addons/account_invoice_fixed_discount/models/account_move.py:0
#, python-format
msgid "You can only set one type of discount per line."
msgstr ""
56 changes: 56 additions & 0 deletions account_invoice_fixed_discount/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-07-17 12:43+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\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 3.7.1\n"

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Disc. Fixed Amount</span>"
msgstr "<span>Rabatt (abs.)</span>"

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,field_description:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Discount (Fixed)"
msgstr "Rabatt (abs.)"

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Fixed amount discount."
msgstr "Hier kann ein absoluter Rabatt hinzugefügt werden."

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move
msgid "Journal Entries"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_invoice_fixed_discount
#: code:addons/account_invoice_fixed_discount/models/account_move.py:0
#, python-format
msgid "You can only set one type of discount per line."
msgstr ""
"Es kann nur eine Art von Rabatt (prozentual oder absolut) pro Zeile gesetzt "
"werden."

#~ msgid "Invoice"
#~ msgstr "Rechnung"

#~ msgid "Invoice Line"
#~ msgstr "Rechnungsposition"
48 changes: 48 additions & 0 deletions account_invoice_fixed_discount/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-10 10:46+0000\n"
"Last-Translator: Ana Suárez <[email protected]>\n"
"Language-Team: none\n"
"Language: es\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.3.2\n"

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Disc. Fixed Amount</span>"
msgstr "<span>Cantidad Fija Descuento</span>"

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,field_description:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Discount (Fixed)"
msgstr "Descuento (Fijo)"

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid "Fixed amount discount."
msgstr "Cantidad fija de descuento."

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move
msgid "Journal Entries"
msgstr "Asientos contables"

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_move_line
msgid "Journal Item"
msgstr "Apuntes contables"

#. module: account_invoice_fixed_discount
#: code:addons/account_invoice_fixed_discount/models/account_move.py:0
#, python-format
msgid "You can only set one type of discount per line."
msgstr "Solo puede establecer un tipo de descuento por línea."
4 changes: 4 additions & 0 deletions account_invoice_fixed_discount/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)

from . import account_move_line
from . import account_tax
Loading

0 comments on commit 8256eae

Please sign in to comment.