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

[18.0][MIG] account_invoice_fixed_discount: Migration to 18.0 #1847

Open
wants to merge 72 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
6fcadfb
[9.0][ADD] account_invoice_fixed_discount
LoisRForgeFlow Sep 1, 2017
9f484a5
[10.0][MIG] account_invoice_fixed_discount
LoisRForgeFlow Jan 12, 2018
0ebff5a
[UPD] Update account_invoice_fixed_discount.pot
oca-travis Jun 19, 2018
42e093b
[MIG] account_invoice_fixed_discount: Migration to 11.0
MiquelRForgeFlow Aug 28, 2018
a2e423b
[UPD] README.rst
OCA-git-bot Oct 8, 2018
3630cdc
[UPD] Update account_invoice_fixed_discount.pot
oca-travis Oct 8, 2018
9edaa25
[MIG] account_invoice_fixed_discount: Migration to 12.0
HviorForgeFlow Apr 18, 2019
1318eda
[UPD] README.rst
OCA-git-bot Jun 7, 2019
a11e8c0
[UPD] Update account_invoice_fixed_discount.pot
oca-travis Jun 7, 2019
9e68345
[FIX] account_invoice_fixed_discount: templated correctly
MiquelRForgeFlow Jun 7, 2019
1f991d7
[UPD] Update account_invoice_fixed_discount.pot
oca-travis Jun 7, 2019
389eccf
Added translation using Weblate (German)
marylla Jul 16, 2019
f9ab577
Translated using Weblate (German)
marylla Jul 17, 2019
8b14176
[UPD] README.rst
OCA-git-bot Jul 29, 2019
96df370
fix invoice report
JordiBForgeFlow Sep 13, 2019
2dd5354
account_invoice_fixed_discount 12.0.1.0.1
OCA-git-bot Oct 1, 2019
7d91b05
[IMP] account_invoice_fixed_discount: black, isort
kongrattapong Dec 17, 2019
1ba6670
[MIG] account_invoice_fixed_discount: Migration to 13.0
kongrattapong Dec 19, 2019
ceb8dbc
[FIX] compute tax
kongrattapong Jan 13, 2020
0a6f678
[UPD] Update account_invoice_fixed_discount.pot
oca-travis Jan 15, 2020
464122f
[UPD] README.rst
OCA-git-bot Jan 15, 2020
4fdb251
[13.0][FIX] account_invoice_fixed_discount, missing param when update…
kittiu Jan 30, 2020
ccd6811
Update translation files
oca-transbot Jan 31, 2020
2c48fa6
[UPD] README.rst
OCA-git-bot Feb 3, 2020
885e17f
account_invoice_fixed_discount 13.0.1.0.1
OCA-git-bot Feb 3, 2020
698d58b
pre-commit update
OCA-git-bot Mar 14, 2020
c211c4c
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
104229e
[UPD] README.rst
OCA-git-bot Oct 5, 2020
291063c
[FIX] account_invoice_fixed_discount: Adapt to upstream change
pedrobaeza Oct 14, 2020
eca00fc
Added translation using Weblate (Spanish)
anasuarez1 Mar 10, 2021
4a332d0
Translated using Weblate (Spanish)
anasuarez1 Mar 10, 2021
7946fbb
[IMP] account_invoice_fixed_discount: black, isort, prettier
manuelregidor Aug 17, 2021
b1d426f
[14.0][MIG]account_invoice_fixed_discount: Migration to 14.0
manuelregidor Aug 17, 2021
0b602ce
[UPD] Update account_invoice_fixed_discount.pot
oca-travis Jan 6, 2022
cb3ca9f
[UPD] README.rst
OCA-git-bot Jan 6, 2022
50fb5c7
Added translation using Weblate (Catalan)
extrememicro Feb 3, 2022
1114085
[IMP] update dotfiles
OCA-git-bot Mar 30, 2022
db75430
[FIX] *: Change _recompute_tax_lines args according upstream
pedrobaeza Jul 3, 2022
bb74572
account_invoice_fixed_discount 14.0.1.0.3
OCA-git-bot Jul 3, 2022
77c9646
[MIG] account_invoice_fixed_discount: Migration to 15.0
ao-landoo Oct 27, 2022
f8b1b77
[UPD] Update account_invoice_fixed_discount.pot
Nov 21, 2022
af94f57
[UPD] README.rst
OCA-git-bot Nov 21, 2022
7684ddd
Update translation files
weblate Nov 21, 2022
b91f235
[MIG] account_invoice_fixed_discount: Migration to 16.0
PieterPaulussen Jun 19, 2023
90afa3f
[UPD] Update account_invoice_fixed_discount.pot
Sep 7, 2023
bf27b3a
[UPD] README.rst
OCA-git-bot Sep 7, 2023
b1823b6
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Oct 9, 2023
8b7b4a7
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 9, 2023
1d23568
Update translation files
weblate Oct 10, 2023
d0d3a85
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
de5b7f5
[FIX] account_invoice_fixed_discount: Check base_line type
tsliepen-ws Nov 22, 2023
6ad8d0f
[BOT] post-merge updates
OCA-git-bot Jan 5, 2024
533f095
[IMP] account_invoice_fixed_discount: Add None base_line unit test
Jan 5, 2024
65982d3
[BOT] post-merge updates
OCA-git-bot Jan 5, 2024
31d7639
[17.0][MIG]account_invoice_fixed_discount: Migrated module to v17.0
fd-oerp Feb 14, 2024
db0da4d
[UPD] Update account_invoice_fixed_discount.pot
Mar 8, 2024
88e32cc
[BOT] post-merge updates
OCA-git-bot Mar 8, 2024
6551472
[17.0][IMP]account_invoice_fixed_discount: Improved for contribution
fd-oerp Mar 8, 2024
c86b7b9
Update translation files
weblate Mar 8, 2024
4293032
[BOT] post-merge updates
OCA-git-bot Mar 8, 2024
a4ec564
Added translation using Weblate (Italian)
mymage Mar 12, 2024
499c625
Translated using Weblate (Italian)
mymage Mar 12, 2024
c16580a
[IMP] account_invoice_fixed_discount: avoid replace in xml
CRogos Apr 22, 2024
2aeffce
Translated using Weblate (Spanish)
Ivorra78 Apr 24, 2024
3d011a0
[FIX] account_invoice_fixed_discount: Line too long
pedrobaeza May 1, 2024
b10ab0a
[BOT] post-merge updates
OCA-git-bot May 1, 2024
3c0254d
[UPD] Update account_invoice_fixed_discount.pot
May 15, 2024
a5783c5
[BOT] post-merge updates
OCA-git-bot May 15, 2024
bc25128
Update translation files
weblate May 15, 2024
c31928b
Translated using Weblate (Italian)
mymage May 17, 2024
18051b8
[IMP] account_invoice_fixed_discount: pre-commit auto fixes
achulii Nov 18, 2024
f4ef506
[MIG] account_invoice_fixed_discount: Migration to 18.0
achulii Nov 18, 2024
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
103 changes: 103 additions & 0 deletions account_invoice_fixed_discount/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
======================
Account Fixed Discount
======================

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

.. |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/18.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-18-0/account-invoicing-18-0-account_invoice_fixed_discount
: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/account-invoicing&target_branch=18.0
:alt: Try me on Runboat

|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:

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

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_fixed_discount%0Aversion:%2018.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]>
- Pieter Paulussen <[email protected]>

- OERP Canada <https://www.oerp.ca/>:

- Foram Darji <[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/18.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": "18.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,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 17.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 class=\"text-nowrap\"> %)</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span class=\"text-nowrap\"> (or</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Discount Amount (%)</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid ""
"Apply a fixed amount discount to this line. The amount is multiplied by the "
"quantity of the product."
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:res.groups,name:account_invoice_fixed_discount.group_fixed_discount
msgid "Fixed Discount"
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
#: model:ir.model,name:account_invoice_fixed_discount.model_account_tax
msgid "Tax"
msgstr ""
59 changes: 59 additions & 0 deletions account_invoice_fixed_discount/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-14 16:59+0000\n"
"PO-Revision-Date: 2024-02-14 16:59+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \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 class=\"text-nowrap\"> %)</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span class=\"text-nowrap\"> (or</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Discount Amount (%)</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid ""
"Apply a fixed amount discount to this line. The amount is multiplied by the "
"quantity of the product."
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:res.groups,name:account_invoice_fixed_discount.group_fixed_discount
msgid "Fixed Discount"
msgstr ""

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

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_tax
msgid "Tax"
msgstr "Impost"
59 changes: 59 additions & 0 deletions account_invoice_fixed_discount/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-14 17:00+0000\n"
"PO-Revision-Date: 2024-02-14 17:00+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \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 class=\"text-nowrap\"> %)</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span class=\"text-nowrap\"> (or</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Discount Amount (%)</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid ""
"Apply a fixed amount discount to this line. The amount is multiplied by the "
"quantity of the product."
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 "Rabatt (abs.)"

#. module: account_invoice_fixed_discount
#: model:res.groups,name:account_invoice_fixed_discount.group_fixed_discount
msgid "Fixed Discount"
msgstr ""

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

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_tax
msgid "Tax"
msgstr "Steuer"
68 changes: 68 additions & 0 deletions account_invoice_fixed_discount/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-14 17:02+0000\n"
"PO-Revision-Date: 2024-04-24 10:41+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: \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.17\n"

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span class=\"text-nowrap\"> %)</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span class=\"text-nowrap\"> (or</span>"
msgstr ""

#. module: account_invoice_fixed_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_fixed_discount.report_invoice_document
msgid "<span>Discount Amount (%)</span>"
msgstr "<span>Importe del descuento (%)</span>"

#. module: account_invoice_fixed_discount
#: model:ir.model.fields,help:account_invoice_fixed_discount.field_account_move_line__discount_fixed
msgid ""
"Apply a fixed amount discount to this line. The amount is multiplied by the "
"quantity of the product."
msgstr ""
"Aplica un descuento de importe fijo a esta línea. El importe se multiplica "
"por la cantidad del producto."

#. 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:res.groups,name:account_invoice_fixed_discount.group_fixed_discount
msgid "Fixed Discount"
msgstr "Descuento fijo"

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

#. module: account_invoice_fixed_discount
#: model:ir.model,name:account_invoice_fixed_discount.model_account_tax
msgid "Tax"
msgstr "Impuesto"

#~ msgid "(or"
#~ msgstr "(o"

#~ msgid "<span>Disc. %</span>"
#~ msgstr "<span>Desc. %</span>"
Loading
Loading