-
-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
27 changed files
with
1,780 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
======================= | ||
Account Global 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/12.0/account_global_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-12-0/account-invoicing-12-0-account_global_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/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
Apply global discounts to invoices | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
#. Go to *Settings > Parameters > Global Discounts* | ||
#. Add a new discount that can be either by percentage or fixed amount. | ||
#. Choose the discount scope (sales or purchases). | ||
#. You can also restrict it to a certain company if needed. | ||
|
||
You can assign global discounts to partners as well: | ||
|
||
#. Go to a partner that is a company. | ||
#. Go to the *Sales & Purchases* tab. | ||
#. In section sale (if the partner is a customer), you can set sale discounts. | ||
#. In section purchase (if the partner is a supplier), you can set purchase | ||
discounts. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* Not all the taxes combination can be compatible with global discounts, as | ||
the generated journal items won't be correct for taxes declarations. An error | ||
is raised in that cases. | ||
* Currently, taxes in invoice lines are mandatory with global discounts. | ||
|
||
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_global_discount%0Aversion:%2012.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 | ||
~~~~~~~ | ||
|
||
* Tecnativa | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `Tecnativa <https://www.tecnativa.com>`_ | ||
|
||
* Pedro M. Baeza | ||
* David Vidal | ||
* Carlos Dauden | ||
* Rafael Blasco | ||
|
||
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/12.0/account_global_discount>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2019 Tecnativa S.L. - David Vidal | ||
# Copyright 2020 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
'name': 'Account Global Discount', | ||
'version': '12.0.1.0.0', | ||
'category': 'Accounting', | ||
'author': 'Tecnativa,' | ||
'Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/server-backend', | ||
'license': 'AGPL-3', | ||
'depends': [ | ||
'account', | ||
'base_global_discount', | ||
], | ||
'data': [ | ||
'security/ir.model.access.csv', | ||
'security/security.xml', | ||
'views/account_invoice_views.xml', | ||
'views/global_discount_views.xml', | ||
'views/report_account_invoice.xml', | ||
], | ||
'application': False, | ||
'installable': True, | ||
} |
Empty file.
166 changes: 166 additions & 0 deletions
166
account_global_discount/i18n/account_global_discount.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_global_discount | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.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_global_discount | ||
#: model:ir.ui.view,arch_db:account_global_discount.report_invoice_document | ||
msgid "<strong>Global Discounts</strong><br/>" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.ui.view,arch_db:account_global_discount.report_invoice_document | ||
msgid "<strong>Subtotal w/o disc.</strong>" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_account_id | ||
#: model:ir.model.fields,field_description:account_global_discount.field_global_discount_account_id | ||
msgid "Account" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_amount_untaxed_before_global_discounts | ||
msgid "Amount Untaxed Before Discounts" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_account_analytic_id | ||
#: model:ir.model.fields,field_description:account_global_discount.field_global_discount_account_analytic_id | ||
msgid "Analytic account" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_base | ||
msgid "Base discounted" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_company_id | ||
msgid "Company" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_create_uid | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_create_date | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_currency_id | ||
msgid "Currency" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_discount_display | ||
msgid "Discount" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_discount | ||
msgid "Discount (number)" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_name | ||
msgid "Discount Name" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_discount_amount | ||
msgid "Discounted Amount" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_base_discounted | ||
msgid "Discounted amount" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.ui.view,arch_db:account_global_discount.account_invoice_form_view | ||
msgid "Discounts..." | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model,name:account_global_discount.model_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_global_discount_id | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_move_line_global_discount_id | ||
msgid "Global Discount" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.ui.menu,name:account_global_discount.menu_account_global_discount | ||
#: model:ir.ui.view,arch_db:account_global_discount.account_invoice_form_view | ||
msgid "Global Discounts" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model,name:account_global_discount.model_account_invoice | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_invoice_id | ||
msgid "Invoice" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model,name:account_global_discount.model_account_invoice_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_invoice_global_discount_ids | ||
msgid "Invoice Global Discount" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_ids | ||
msgid "Invoice Global Discounts" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model,name:account_global_discount.model_account_move_line | ||
msgid "Journal Item" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount___last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_write_uid | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount_write_date | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_amount_global_discount | ||
msgid "Total Global Discounts" | ||
msgstr "" | ||
|
||
#. module: account_global_discount | ||
#: model:ir.ui.view,arch_db:account_global_discount.account_invoice_form_view | ||
msgid "Untaxed Amount Before Disc." | ||
msgstr "" |
Oops, something went wrong.