Skip to content

Commit

Permalink
[IMP] account_invoice_pricelist: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed May 14, 2024
1 parent 4c4bf24 commit 14fa4cb
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 44 deletions.
45 changes: 24 additions & 21 deletions account_invoice_pricelist/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,30 @@ Account - Pricelist on Invoices
: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/16.0/account_invoice_pricelist
: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-16-0/account-invoicing-16-0-account_invoice_pricelist
: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=16.0
: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;
- 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:: https://raw.githubusercontent.com/OCA/account-invoicing/16.0/account_invoice_pricelist/static/src/description/screenshot_group_by.png
|image|

For further information, please visit:

* https://www.odoo.com/forum/help-1
- 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**

Expand All @@ -50,33 +53,33 @@ 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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`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]>
- 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]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -88,6 +91,6 @@ 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/16.0/account_invoice_pricelist>`_ project on GitHub.
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.
5 changes: 4 additions & 1 deletion account_invoice_pricelist/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ def _get_price_with_pricelist(self):
qty = self.quantity or 1.0
date = self.move_id.invoice_date or fields.Date.today()
uom = self.product_uom_id
(final_price, rule_id,) = self.move_id.pricelist_id._get_product_price_rule(
(
final_price,
rule_id,
) = self.move_id.pricelist_id._get_product_price_rule(
product,
qty,
uom=uom,
Expand Down
3 changes: 3 additions & 0 deletions account_invoice_pricelist/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
7 changes: 7 additions & 0 deletions account_invoice_pricelist/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- 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]>\>
7 changes: 0 additions & 7 deletions account_invoice_pricelist/readme/CONTRIBUTORS.rst

This file was deleted.

11 changes: 11 additions & 0 deletions account_invoice_pricelist/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- 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](static/src/description/screenshot_group_by.png)

For further information, please visit:

- <https://www.odoo.com/forum/help-1>
10 changes: 0 additions & 10 deletions account_invoice_pricelist/readme/DESCRIPTION.rst

This file was deleted.

11 changes: 6 additions & 5 deletions account_invoice_pricelist/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,15 @@ <h1 class="title">Account - Pricelist on Invoices</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:12ceb2d23afc283b80bc9c22e47be4ec48ff6517c9065d3b36656470f6a0a44c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_pricelist"><img alt="OCA/account-invoicing" src="https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_invoice_pricelist"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-invoicing/tree/17.0/account_invoice_pricelist"><img alt="OCA/account-invoicing" src="https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-invoicing-17-0/account-invoicing-17-0-account_invoice_pricelist"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<ul class="simple">
<li>Add a stored field pricelist on invoices, related to the partner pricelist;</li>
<li>Add a stored field pricelist on invoices, related to the partner
pricelist;</li>
<li>Use this pricelist when manually adding invoice lines;</li>
<li>Rules defined in pricelists applied in multicurrency context;</li>
<li>Possibility to group by pricelist on account.invoice view;</li>
</ul>
<img alt="https://raw.githubusercontent.com/OCA/account-invoicing/16.0/account_invoice_pricelist/static/src/description/screenshot_group_by.png" src="https://raw.githubusercontent.com/OCA/account-invoicing/16.0/account_invoice_pricelist/static/src/description/screenshot_group_by.png" />
<p><img alt="image" src="https://raw.githubusercontent.com/OCA/account-invoicing/17.0/account_invoice_pricelist/static/src/description/screenshot_group_by.png" /></p>
<p>For further information, please visit:</p>
<ul class="simple">
<li><a class="reference external" href="https://www.odoo.com/forum/help-1">https://www.odoo.com/forum/help-1</a></li>
Expand All @@ -398,7 +399,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-invoicing/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_pricelist%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="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**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -430,7 +431,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_pricelist">OCA/account-invoicing</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-invoicing/tree/17.0/account_invoice_pricelist">OCA/account-invoicing</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down

0 comments on commit 14fa4cb

Please sign in to comment.