Skip to content

Commit

Permalink
Merge PR #1619 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by yvaucher
  • Loading branch information
OCA-git-bot committed Sep 30, 2024
2 parents 5be7298 + 365a034 commit d06e514
Show file tree
Hide file tree
Showing 65 changed files with 4,304 additions and 0 deletions.
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

0 comments on commit d06e514

Please sign in to comment.