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

[17.0][MIG] account_invoice_pricelist: Migration to 17.0 #1619

Merged
merged 61 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
814321a
new module account_invoice_pricelist;
legalsylvain Aug 31, 2015
523c069
OCA Transbot updated translations from Transifex
oca-transbot Sep 20, 2015
b7ccce6
use pricelist when calculating prices
hbrunn Sep 29, 2015
0395d9a
account_invoice_pricelist: Migration to v9
sergio-teruel Dec 9, 2016
2fd5c6b
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
6e3b850
account_invoice_pricelist: Migration to 10.0
rvalyi Mar 30, 2018
051e314
OCA Transbot updated translations from Transifex
oca-transbot Apr 20, 2018
d6cc81d
account_invoice_pricelist: Migration to 11.0
amcor Jun 12, 2018
fafdf2d
Update account_invoice_pricelist.pot
oca-travis Sep 21, 2018
e6629c0
README.rst
OCA-git-bot Sep 22, 2018
2c5642b
Translated using Weblate (German)
rschnapka Oct 11, 2018
6b8b581
README.rst
OCA-git-bot Dec 2, 2018
d931840
[MIG] account_invoice_pricelist v11 to v12
Nikul-Chaudhary Jan 27, 2019
a31a372
[UPD] README.rst
OCA-git-bot Feb 10, 2019
0e52a12
[UPD] Update account_invoice_pricelist.pot
oca-travis Feb 11, 2019
6f46732
Update translation files
oca-transbot Mar 3, 2019
26dc2b3
[ADD] icon.png
OCA-git-bot Apr 3, 2019
bc8c885
FIX acc_invoice_pricelist: tax include in multicompany
bealdav Jul 1, 2019
0521d9d
account_invoice_pricelist 12.0.1.0.1
OCA-git-bot Jul 1, 2019
b6c3b99
FIX acc_invoice_pricelist: recompute tax after update pricelist
bealdav Jul 2, 2019
21a2bf1
account_invoice_pricelist 12.0.1.0.2
OCA-git-bot Jul 11, 2019
c5d2289
Translated using Weblate (French)
am-technix Jul 12, 2019
314fa6a
[UPD] README.rst
OCA-git-bot Jul 29, 2019
d58fdd3
[FIX] bad display on invoices form
legalsylvain Aug 5, 2019
bdf72de
account_invoice_pricelist 12.0.1.0.3
OCA-git-bot Aug 8, 2019
e010afa
Translated using Weblate (Portuguese (Brazil))
Aug 26, 2019
eb62a13
Added translation using Weblate (Spanish (Chile))
Jan 17, 2020
8d3eb63
Translated using Weblate (Spanish (Chile))
Jan 17, 2020
b85d773
Translated using Weblate (Croatian)
badbole Mar 5, 2020
ca0f64c
[MIG] account_invoice_pricelist: black, isort, prettier
manuelregidor Aug 21, 2020
113911d
[MIG]account_invoice_pricelist: Migration to 13.0
manuelregidor Aug 21, 2020
22857a7
[13.0][IMP] Supports multicurrency and different types of discounts
manuelregidor Aug 27, 2020
4000410
[UPD] Update account_invoice_pricelist.pot
oca-travis Sep 3, 2020
90fdcfc
[UPD] README.rst
OCA-git-bot Sep 3, 2020
d1e20d6
Update translation files
oca-transbot Oct 5, 2020
5ff74f8
[13.0][FIX] account_invoice_pricelist, fix test currency rate
kittiu Mar 3, 2021
59a9a1b
account_invoice_pricelist 13.0.1.0.1
OCA-git-bot Mar 8, 2021
fafe940
Translated using Weblate (Spanish)
anasuarez1 Mar 10, 2021
d2c1586
[14.0][MIG] account_invoice_pricelist: Migration to 14.0
hildickethan Jan 25, 2021
4fc2065
[14.0][FIX] account_invoice_pricelist: Send invoice_date with context
Zar21 Jul 16, 2021
310b475
[UPD] Update account_invoice_pricelist.pot
oca-travis Dec 4, 2021
938c970
[UPD] README.rst
OCA-git-bot Dec 4, 2021
fe2d7fa
[MIG] account_invoice_pricelist: Migration to 15.0
nicomacr Mar 10, 2022
ec8c122
[UPD] Update account_invoice_pricelist.pot
Dec 21, 2022
c83b70b
[UPD] README.rst
OCA-git-bot Dec 21, 2022
9722911
Update translation files
weblate Dec 21, 2022
b50bcc8
Update translation files
weblate Dec 21, 2022
7a8ed5a
[FIX] account_invoice_pricelist: Make tests resilient
pedrobaeza Jan 22, 2023
2eec383
account_invoice_pricelist 15.0.1.0.1
OCA-git-bot Jan 24, 2023
8653c4b
[MIG] account_invoice_pricelist: Migration to 16.0
hildickethan Jan 3, 2023
0c81014
[REF] account_invoice_pricelist:
RodrigoBM May 26, 2023
ecc0fab
[UPD] Update account_invoice_pricelist.pot
Jun 7, 2023
20e4268
[UPD] README.rst
OCA-git-bot Jun 7, 2023
eaaa767
Update translation files
weblate Jun 7, 2023
5aab472
Update translation files
weblate Jun 7, 2023
10b98e0
Translated using Weblate (Spanish)
Gelo-fl Jun 7, 2023
a1430e8
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 14, 2023
8e605d8
[UPD] README.rst
OCA-git-bot Sep 3, 2023
4c4bf24
Update translation files
weblate Oct 9, 2023
14fa4cb
[IMP] account_invoice_pricelist: pre-commit auto fixes
peluko00 May 14, 2024
365a034
[MIG] account_invoice_pricelist: Migration to 17.0
peluko00 May 14, 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
99 changes: 99 additions & 0 deletions account_invoice_pricelist/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
===============================
Account - Pricelist on Invoices
===============================

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

.. |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/17.0/account_invoice_pricelist
: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-17-0/account-invoicing-17-0-account_invoice_pricelist
: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=17.0
:alt: Try me on Runboat

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

- Add a stored field pricelist on invoices, related to the partner
pricelist;
- Use this pricelist when manually adding invoice lines;
- Rules defined in pricelists applied in multicurrency context;
- Possibility to group by pricelist on account.invoice view;

|image|

For further information, please visit:

- https://www.odoo.com/forum/help-1

.. |image| image:: https://raw.githubusercontent.com/OCA/account-invoicing/17.0/account_invoice_pricelist/static/src/description/screenshot_group_by.png

**Table of contents**

.. contents::
:local:

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_pricelist%0Aversion:%2017.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
-------

* GRAP
* Therp BV
* Tecnativa

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

- Sylvain LE GAL (https://twitter.com/legalsylvain)
- Holger Brunn <[email protected]>
- Sergio Teruel <[email protected]>
- Raphaël Valyi <[email protected]>
- Alberto Martín <[email protected]>
- Nikul Chaudhary <[email protected]>
- Manuel Regidor <[email protected]>
- `APSL-Nagarro <https://www.apsl.tech>`__:

- Antoni Marroig <[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/17.0/account_invoice_pricelist>`_ project on GitHub.

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

{
"name": "Account - Pricelist on Invoices",
"version": "17.0.1.0.0",
"summary": "Add partner pricelist on invoices",
"category": "Accounting & Finance",
"author": "GRAP," "Therp BV," "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"depends": ["account", "sale_management"],
"data": ["views/account_invoice_view.xml"],
"installable": True,
"pre_init_hook": "pre_init_hook",
}
14 changes: 14 additions & 0 deletions account_invoice_pricelist/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 Studio73 - Ethan Hildick <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.tools.sql import column_exists, create_column


def pre_init_hook(env):
# Speed up the installation of the module on an existing Odoo instance
# by not computing the pricelist for every invoice. Also avoids
# a possible computation error of
# computing all pricelists -> _check_currency constraint error before the
# currency can recompute itself
if not column_exists(env.cr, "account_move", "pricelist_id"):
create_column(env.cr, "account_move", "pricelist_id", "int4")
54 changes: 54 additions & 0 deletions account_invoice_pricelist/i18n/account_invoice_pricelist.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_pricelist
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_pricelist
#: model:ir.model,name:account_invoice_pricelist.model_account_move
msgid "Journal Entry"
msgstr ""

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

#. module: account_invoice_pricelist
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_bank_statement_line__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_move__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_payment__pricelist_id
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_invoice_filter
msgid "Pricelist"
msgstr ""

#. module: account_invoice_pricelist
#. odoo-python
#: code:addons/account_invoice_pricelist/models/account_move.py:0
#, python-format
msgid "Pricelist and Invoice need to use the same currency."
msgstr ""

#. module: account_invoice_pricelist
#: model:ir.ui.menu,name:account_invoice_pricelist.menu_product_pricelist_main
msgid "Pricelists"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update price in lines from the pricelist"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update prices"
msgstr ""
66 changes: 66 additions & 0 deletions account_invoice_pricelist/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_pricelist
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 02:43+0000\n"
"PO-Revision-Date: 2017-04-02 02:43+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

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

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

#. module: account_invoice_pricelist
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_bank_statement_line__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_move__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_payment__pricelist_id
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_invoice_filter
msgid "Pricelist"
msgstr ""

#. module: account_invoice_pricelist
#. odoo-python
#: code:addons/account_invoice_pricelist/models/account_move.py:0
#, python-format
msgid "Pricelist and Invoice need to use the same currency."
msgstr ""

#. module: account_invoice_pricelist
#: model:ir.ui.menu,name:account_invoice_pricelist.menu_product_pricelist_main
msgid "Pricelists"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update price in lines from the pricelist"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update prices"
msgstr ""

#~ msgid "Invoice"
#~ msgstr "فاتورة"

#~ msgid "Invoice Line"
#~ msgstr "خط الفاتورة"
62 changes: 62 additions & 0 deletions account_invoice_pricelist/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_pricelist
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 02:43+0000\n"
"PO-Revision-Date: 2017-04-02 02:43+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\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_pricelist
#: model:ir.model,name:account_invoice_pricelist.model_account_move
msgid "Journal Entry"
msgstr ""

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

#. module: account_invoice_pricelist
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_bank_statement_line__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_move__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_payment__pricelist_id
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_invoice_filter
msgid "Pricelist"
msgstr ""

#. module: account_invoice_pricelist
#. odoo-python
#: code:addons/account_invoice_pricelist/models/account_move.py:0
#, python-format
msgid "Pricelist and Invoice need to use the same currency."
msgstr ""

#. module: account_invoice_pricelist
#: model:ir.ui.menu,name:account_invoice_pricelist.menu_product_pricelist_main
msgid "Pricelists"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update price in lines from the pricelist"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update prices"
msgstr ""

#~ msgid "Invoice"
#~ msgstr "Фактура"
66 changes: 66 additions & 0 deletions account_invoice_pricelist/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_pricelist
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 02:43+0000\n"
"PO-Revision-Date: 2017-04-02 02:43+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

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

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

#. module: account_invoice_pricelist
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_bank_statement_line__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_move__pricelist_id
#: model:ir.model.fields,field_description:account_invoice_pricelist.field_account_payment__pricelist_id
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_invoice_filter
msgid "Pricelist"
msgstr ""

#. module: account_invoice_pricelist
#. odoo-python
#: code:addons/account_invoice_pricelist/models/account_move.py:0
#, python-format
msgid "Pricelist and Invoice need to use the same currency."
msgstr ""

#. module: account_invoice_pricelist
#: model:ir.ui.menu,name:account_invoice_pricelist.menu_product_pricelist_main
msgid "Pricelists"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update price in lines from the pricelist"
msgstr ""

#. module: account_invoice_pricelist
#: model_terms:ir.ui.view,arch_db:account_invoice_pricelist.view_account_move_customer_form
msgid "Update prices"
msgstr ""

#~ msgid "Invoice"
#~ msgstr "Faktura"

#~ msgid "Invoice Line"
#~ msgstr "Stavka fakture"
Loading
Loading