Skip to content

Commit 994af8d

Browse files
committed
[IMP] website_sale_charge_payment_fee: pre-commit auto fixes
1 parent 1ff2c4e commit 994af8d

File tree

14 files changed

+72
-51
lines changed

14 files changed

+72
-51
lines changed

website_sale_charge_payment_fee/README.rst

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,20 @@ eCommerce: charge payment fee
1717
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1818
:alt: License: LGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
20-
:target: https://github.com/OCA/e-commerce/tree/14.0/website_sale_charge_payment_fee
20+
:target: https://github.com/OCA/e-commerce/tree/18.0/website_sale_charge_payment_fee
2121
:alt: OCA/e-commerce
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/e-commerce-14-0/e-commerce-14-0-website_sale_charge_payment_fee
23+
:target: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_charge_payment_fee
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=14.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module allows to associate generic payment fee to online payment methods. Thus, when website user select a payment method with additional fee, an additional sale order line will be added to online order
31+
This module allows to associate generic payment fee to online payment
32+
methods. Thus, when website user select a payment method with additional
33+
fee, an additional sale order line will be added to online order
3234

3335
**Table of contents**
3436

@@ -42,41 +44,45 @@ Click
4244

4345
Accounting -> Configuration -> Payments -> Payment Acquirers
4446

45-
open an acquirer and in CHARGE PAYMENT FEE tab, you can set the fee to be charged to customer.
47+
open an acquirer and in CHARGE PAYMENT FEE tab, you can set the fee to
48+
be charged to customer.
4649

4750
Bug Tracker
4851
===========
4952

5053
Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/issues>`_.
5154
In case of trouble, please check there if your issue has already been reported.
5255
If you spotted it first, help us to smash it by providing a detailed and welcomed
53-
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_charge_payment_fee%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
56+
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_charge_payment_fee%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5457

5558
Do not contact contributors directly about support or help with technical issues.
5659

5760
Credits
5861
=======
5962

6063
Authors
61-
~~~~~~~
64+
-------
6265

6366
* Agile Business Group
6467
* AITIC S.A.S
6568
* Quartile Limited
6669
* Studio73
6770

6871
Contributors
69-
~~~~~~~~~~~~
72+
------------
7073

71-
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
72-
* AITIC S.A. <info@aitic.com.ar>
73-
* Quartile Limited <info@quartile.co>
74-
* `Studio73 <https://www.studio73.es>`_:
74+
- Lorenzo Battistini <lorenzo.battistini@agilebg.com>
7575

76-
* Miguel Gandia
76+
- AITIC S.A. <info@aitic.com.ar>
77+
78+
- Quartile Limited <info@quartile.co>
79+
80+
- `Studio73 <https://www.studio73.es>`__:
81+
82+
- Miguel Gandia
7783

7884
Maintainers
79-
~~~~~~~~~~~
85+
-----------
8086

8187
This module is maintained by the OCA.
8288

@@ -96,6 +102,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
96102

97103
|maintainer-miguel-S73|
98104

99-
This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/14.0/website_sale_charge_payment_fee>`_ project on GitHub.
105+
This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/18.0/website_sale_charge_payment_fee>`_ project on GitHub.
100106

101107
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

website_sale_charge_payment_fee/controllers/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class WebsiteSaleFee(WebsiteSale):
1414
["/shop/payment"], type="http", auth="public", website=True, sitemap=False
1515
)
1616
def payment(self, **post):
17-
res = super(WebsiteSaleFee, self).payment(**post)
17+
res = super().payment(**post)
1818
values = res.qcontext
1919
order = request.website.sale_get_order()
2020
payment_fee_id = post.get("payment_fee_id")

website_sale_charge_payment_fee/models/sale_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SaleOrder(models.Model):
2020
)
2121

2222
def _compute_website_order_line(self):
23-
super(SaleOrder, self)._compute_website_order_line()
23+
super()._compute_website_order_line()
2424
self.website_order_line = self.website_order_line.filtered(
2525
lambda l: not l.payment_fee_line
2626
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Click
2+
3+
Accounting -\> Configuration -\> Payments -\> Payment Acquirers
4+
5+
open an acquirer and in CHARGE PAYMENT FEE tab, you can set the fee to
6+
be charged to customer.

website_sale_charge_payment_fee/readme/CONFIGURE.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- Lorenzo Battistini \<<lorenzo.battistini@agilebg.com>\>
2+
3+
- AITIC S.A. \<<info@aitic.com.ar>\>
4+
5+
- Quartile Limited \<<info@quartile.co>\>
6+
7+
- [Studio73](https://www.studio73.es):
8+
9+
> - Miguel Gandia

website_sale_charge_payment_fee/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This module allows to associate generic payment fee to online payment
2+
methods. Thus, when website user select a payment method with additional
3+
fee, an additional sale order line will be added to online order

website_sale_charge_payment_fee/readme/DESCRIPTION.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)