From ad17ed8c2d49b5e13b63ad77c8dddabeae48944a Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Fri, 13 Dec 2024 19:18:31 +0100
Subject: [PATCH] [IMP] account_payment_sale: pre-commit auto fixes
---
account_payment_sale/README.rst | 10 +++++-----
account_payment_sale/__manifest__.py | 2 +-
account_payment_sale/models/sale_order.py | 6 +++---
account_payment_sale/static/description/index.html | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/account_payment_sale/README.rst b/account_payment_sale/README.rst
index 177d1ef4eee..ed63f00f535 100644
--- a/account_payment_sale/README.rst
+++ b/account_payment_sale/README.rst
@@ -17,13 +17,13 @@ Account Payment Sale
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github
- :target: https://github.com/OCA/bank-payment/tree/17.0/account_payment_sale
+ :target: https://github.com/OCA/bank-payment/tree/18.0/account_payment_sale
:alt: OCA/bank-payment
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_sale
+ :target: https://translation.odoo-community.org/projects/bank-payment-18-0/bank-payment-18-0-account_payment_sale
: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/bank-payment&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/bank-payment&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -51,7 +51,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -89,6 +89,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/bank-payment `_ project on GitHub.
+This module is part of the `OCA/bank-payment `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_payment_sale/__manifest__.py b/account_payment_sale/__manifest__.py
index 1a2eac33b7f..fb83ea75bbe 100644
--- a/account_payment_sale/__manifest__.py
+++ b/account_payment_sale/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "Account Payment Sale",
- "version": "17.0.1.0.2",
+ "version": "18.0.1.0.0",
"category": "Banking addons",
"license": "AGPL-3",
"summary": "Adds payment mode on sale orders",
diff --git a/account_payment_sale/models/sale_order.py b/account_payment_sale/models/sale_order.py
index ab66f7b49de..50d83c70be0 100644
--- a/account_payment_sale/models/sale_order.py
+++ b/account_payment_sale/models/sale_order.py
@@ -32,9 +32,9 @@ def _get_payment_mode_vals(self, vals):
self.payment_mode_id.bank_account_link == "fixed"
and self.payment_mode_id.payment_method_id.code == "manual"
):
- vals[
- "partner_bank_id"
- ] = self.payment_mode_id.fixed_journal_id.bank_account_id.id
+ vals["partner_bank_id"] = (
+ self.payment_mode_id.fixed_journal_id.bank_account_id.id
+ )
def _prepare_invoice(self):
"""Copy bank partner from sale order to invoice"""
diff --git a/account_payment_sale/static/description/index.html b/account_payment_sale/static/description/index.html
index 5b9f4f4c6de..1de90d47650 100644
--- a/account_payment_sale/static/description/index.html
+++ b/account_payment_sale/static/description/index.html
@@ -369,7 +369,7 @@ Account Payment Sale
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:708beff81c390a261a1bc46d33b9ff7d073f2355b32229b2882dc7fb0d4afc11
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This modules adds one field on sale orders: Payment Mode. This field
is copied from customer to sale order and then from sale order to
customer invoice.
@@ -398,7 +398,7 @@
Bugs are tracked on GitHub 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.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -432,7 +432,7 @@
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/bank-payment project on GitHub.
+
This module is part of the OCA/bank-payment project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.