odoo-addon-website-sale-financial-risk 16.0.1.0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/website_sale_financial_risk/README.rst +100 -0
- odoo/addons/website_sale_financial_risk/__init__.py +1 -0
- odoo/addons/website_sale_financial_risk/__manifest__.py +23 -0
- odoo/addons/website_sale_financial_risk/controllers/__init__.py +1 -0
- odoo/addons/website_sale_financial_risk/controllers/main.py +14 -0
- odoo/addons/website_sale_financial_risk/data/payment_provider_data.xml +36 -0
- odoo/addons/website_sale_financial_risk/i18n/website_sale_financial_risk.pot +83 -0
- odoo/addons/website_sale_financial_risk/models/__init__.py +2 -0
- odoo/addons/website_sale_financial_risk/models/payment_provider.py +29 -0
- odoo/addons/website_sale_financial_risk/models/payment_transaction.py +42 -0
- odoo/addons/website_sale_financial_risk/readme/CONFIGURE.rst +6 -0
- odoo/addons/website_sale_financial_risk/readme/CONTRIBUTORS.rst +3 -0
- odoo/addons/website_sale_financial_risk/readme/DESCRIPTION.rst +2 -0
- odoo/addons/website_sale_financial_risk/readme/USAGE.rst +3 -0
- odoo/addons/website_sale_financial_risk/static/description/icon.png +0 -0
- odoo/addons/website_sale_financial_risk/static/description/index.html +453 -0
- odoo/addons/website_sale_financial_risk/static/img/icon.png +0 -0
- odoo/addons/website_sale_financial_risk/static/img/icon.svg +1 -0
- odoo/addons/website_sale_financial_risk/static/src/js/post_processing.js +28 -0
- odoo/addons/website_sale_financial_risk/templates/payment_custom_templates.xml +8 -0
- odoo/addons/website_sale_financial_risk/templates/website_sale_templates.xml +10 -0
- odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/METADATA +116 -0
- odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/RECORD +25 -0
- odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/WHEEL +5 -0
- odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
2
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
3
|
+
:alt: Odoo Community Association
|
|
4
|
+
|
|
5
|
+
===========================
|
|
6
|
+
Website Sale Financial Risk
|
|
7
|
+
===========================
|
|
8
|
+
|
|
9
|
+
..
|
|
10
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
11
|
+
!! This file is generated by oca-gen-addon-readme !!
|
|
12
|
+
!! changes will be overwritten. !!
|
|
13
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
+
!! source digest: sha256:5027bfc1e62613133899da76ce9738eccc5b24d0b85a7c575771fc4ade4f46d7
|
|
15
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
|
+
|
|
17
|
+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
18
|
+
:target: https://odoo-community.org/page/development-status
|
|
19
|
+
:alt: Beta
|
|
20
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
21
|
+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
22
|
+
:alt: License: AGPL-3
|
|
23
|
+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github
|
|
24
|
+
:target: https://github.com/OCA/credit-control/tree/16.0/website_sale_financial_risk
|
|
25
|
+
:alt: OCA/credit-control
|
|
26
|
+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
27
|
+
:target: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-website_sale_financial_risk
|
|
28
|
+
:alt: Translate me on Weblate
|
|
29
|
+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=16.0
|
|
31
|
+
:alt: Try me on Runboat
|
|
32
|
+
|
|
33
|
+
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
34
|
+
|
|
35
|
+
If a customer has sufficient credit, they can complete their purchase by paying with a
|
|
36
|
+
specific payment method. In this case, the order is automatically confirmed.
|
|
37
|
+
|
|
38
|
+
**Table of contents**
|
|
39
|
+
|
|
40
|
+
.. contents::
|
|
41
|
+
:local:
|
|
42
|
+
|
|
43
|
+
Configuration
|
|
44
|
+
=============
|
|
45
|
+
|
|
46
|
+
Activate the ‘On credit’ payment provider and publish it on the website so that it is
|
|
47
|
+
available in the order payment process.
|
|
48
|
+
Set a credit limit and configure financial risk settings as described in the
|
|
49
|
+
account_financial_risk module.
|
|
50
|
+
If the configuration has been set to display credit information on the portal,
|
|
51
|
+
this information will also be displayed during the checkout process.
|
|
52
|
+
|
|
53
|
+
Usage
|
|
54
|
+
=====
|
|
55
|
+
|
|
56
|
+
Place an order in the online store. If you have credit available and the order
|
|
57
|
+
amount does not exceed the available credit, you can place the order by selecting
|
|
58
|
+
credit as the payment method.
|
|
59
|
+
|
|
60
|
+
Bug Tracker
|
|
61
|
+
===========
|
|
62
|
+
|
|
63
|
+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/credit-control/issues>`_.
|
|
64
|
+
In case of trouble, please check there if your issue has already been reported.
|
|
65
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
66
|
+
`feedback <https://github.com/OCA/credit-control/issues/new?body=module:%20website_sale_financial_risk%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
67
|
+
|
|
68
|
+
Do not contact contributors directly about support or help with technical issues.
|
|
69
|
+
|
|
70
|
+
Credits
|
|
71
|
+
=======
|
|
72
|
+
|
|
73
|
+
Authors
|
|
74
|
+
~~~~~~~
|
|
75
|
+
|
|
76
|
+
* Tecnativa
|
|
77
|
+
|
|
78
|
+
Contributors
|
|
79
|
+
~~~~~~~~~~~~
|
|
80
|
+
|
|
81
|
+
* `Tecnativa <https://www.tecnativa.com>`_:
|
|
82
|
+
|
|
83
|
+
* Pilar Vargas
|
|
84
|
+
|
|
85
|
+
Maintainers
|
|
86
|
+
~~~~~~~~~~~
|
|
87
|
+
|
|
88
|
+
This module is maintained by the OCA.
|
|
89
|
+
|
|
90
|
+
.. image:: https://odoo-community.org/logo.png
|
|
91
|
+
:alt: Odoo Community Association
|
|
92
|
+
:target: https://odoo-community.org
|
|
93
|
+
|
|
94
|
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
95
|
+
mission is to support the collaborative development of Odoo features and
|
|
96
|
+
promote its widespread use.
|
|
97
|
+
|
|
98
|
+
This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/16.0/website_sale_financial_risk>`_ project on GitHub.
|
|
99
|
+
|
|
100
|
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import models
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Pilar Vargas
|
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
3
|
+
{
|
|
4
|
+
"name": "Website Sale Financial Risk",
|
|
5
|
+
"version": "16.0.1.0.0",
|
|
6
|
+
"category": "E-Commerce",
|
|
7
|
+
"summary": "",
|
|
8
|
+
"license": "AGPL-3",
|
|
9
|
+
"depends": ["account_financial_risk", "website_sale"],
|
|
10
|
+
"data": [
|
|
11
|
+
"templates/payment_custom_templates.xml",
|
|
12
|
+
"templates/website_sale_templates.xml",
|
|
13
|
+
"data/payment_provider_data.xml",
|
|
14
|
+
],
|
|
15
|
+
"assets": {
|
|
16
|
+
"web.assets_frontend": [
|
|
17
|
+
"website_sale_financial_risk/static/src/js/post_processing.js",
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
"author": "Tecnativa, Odoo Community Association (OCA)",
|
|
21
|
+
"website": "https://github.com/OCA/credit-control",
|
|
22
|
+
"installable": True,
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import main
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Pilar Vargas
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
from odoo.http import Controller, request, route
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreditController(Controller):
|
|
7
|
+
_process_url = "/payment/credit/process"
|
|
8
|
+
|
|
9
|
+
@route(_process_url, type="http", auth="public", methods=["POST"], csrf=False)
|
|
10
|
+
def custom_process_transaction(self, **post):
|
|
11
|
+
request.env["payment.transaction"].sudo()._handle_notification_data(
|
|
12
|
+
"credit", post
|
|
13
|
+
)
|
|
14
|
+
return request.redirect("/payment/status")
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<odoo noupdate="1">
|
|
3
|
+
<record id="payment_provider_credit" model="payment.provider">
|
|
4
|
+
<field name="name">On Credit</field>
|
|
5
|
+
<field name="code">credit</field>
|
|
6
|
+
<field
|
|
7
|
+
name="image_128"
|
|
8
|
+
type="base64"
|
|
9
|
+
file="website_sale_financial_risk/static/img/icon.png"
|
|
10
|
+
/>
|
|
11
|
+
<field name="company_id" ref="base.main_company" />
|
|
12
|
+
<field name="redirect_form_view_id" ref="redirect_form" />
|
|
13
|
+
<field name="module_id" ref="base.module_website_sale_financial_risk" />
|
|
14
|
+
<field name="pre_msg" type="html">
|
|
15
|
+
<p>
|
|
16
|
+
<i>
|
|
17
|
+
The order will be confirmed <strong>on credit</strong> with no need
|
|
18
|
+
of instant payment, as you still have available credit.
|
|
19
|
+
</i>
|
|
20
|
+
</p>
|
|
21
|
+
</field>
|
|
22
|
+
<field name="pending_msg" type="html">
|
|
23
|
+
<p>
|
|
24
|
+
<i>Your order has been <strong>confirmed</strong>.</i><br />
|
|
25
|
+
The payment has been registered as <strong
|
|
26
|
+
>credit</strong> and is pending invoicing.
|
|
27
|
+
</p>
|
|
28
|
+
</field>
|
|
29
|
+
</record>
|
|
30
|
+
|
|
31
|
+
<record id="payment_method_credit" model="account.payment.method">
|
|
32
|
+
<field name="name">Credit</field>
|
|
33
|
+
<field name="code">credit</field>
|
|
34
|
+
<field name="payment_type">inbound</field>
|
|
35
|
+
</record>
|
|
36
|
+
</odoo>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Translation of Odoo Server.
|
|
2
|
+
# This file contains the translation of the following modules:
|
|
3
|
+
# * website_sale_financial_risk
|
|
4
|
+
#
|
|
5
|
+
msgid ""
|
|
6
|
+
msgstr ""
|
|
7
|
+
"Project-Id-Version: Odoo Server 16.0\n"
|
|
8
|
+
"Report-Msgid-Bugs-To: \n"
|
|
9
|
+
"Last-Translator: \n"
|
|
10
|
+
"Language-Team: \n"
|
|
11
|
+
"MIME-Version: 1.0\n"
|
|
12
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
+
"Content-Transfer-Encoding: \n"
|
|
14
|
+
"Plural-Forms: \n"
|
|
15
|
+
|
|
16
|
+
#. module: website_sale_financial_risk
|
|
17
|
+
#: model_terms:payment.provider,pre_msg:website_sale_financial_risk.payment_provider_credit
|
|
18
|
+
msgid ""
|
|
19
|
+
"<i>\n"
|
|
20
|
+
" The order will be confirmed <strong>on credit</strong> with no need\n"
|
|
21
|
+
" of instant payment, as you still have available credit.\n"
|
|
22
|
+
" </i>"
|
|
23
|
+
msgstr ""
|
|
24
|
+
|
|
25
|
+
#. module: website_sale_financial_risk
|
|
26
|
+
#: model_terms:payment.provider,pending_msg:website_sale_financial_risk.payment_provider_credit
|
|
27
|
+
msgid ""
|
|
28
|
+
"<i>Your order has been <strong>confirmed</strong>.</i><br>\n"
|
|
29
|
+
" The payment has been registered as <strong>credit</strong> and is pending invoicing."
|
|
30
|
+
msgstr ""
|
|
31
|
+
|
|
32
|
+
#. module: website_sale_financial_risk
|
|
33
|
+
#: model:ir.model.fields,field_description:website_sale_financial_risk.field_payment_provider__code
|
|
34
|
+
msgid "Code"
|
|
35
|
+
msgstr ""
|
|
36
|
+
|
|
37
|
+
#. module: website_sale_financial_risk
|
|
38
|
+
#: model:account.payment.method,name:website_sale_financial_risk.payment_method_credit
|
|
39
|
+
msgid "Credit"
|
|
40
|
+
msgstr ""
|
|
41
|
+
|
|
42
|
+
#. module: website_sale_financial_risk
|
|
43
|
+
#: model:ir.model.fields.selection,name:website_sale_financial_risk.selection__payment_provider__code__credit
|
|
44
|
+
#: model:payment.provider,name:website_sale_financial_risk.payment_provider_credit
|
|
45
|
+
msgid "On Credit"
|
|
46
|
+
msgstr ""
|
|
47
|
+
|
|
48
|
+
#. module: website_sale_financial_risk
|
|
49
|
+
#. odoo-python
|
|
50
|
+
#: code:addons/website_sale_financial_risk/models/payment_transaction.py:0
|
|
51
|
+
#, python-format
|
|
52
|
+
msgid "On Credit: No transaction found matching reference %s."
|
|
53
|
+
msgstr ""
|
|
54
|
+
|
|
55
|
+
#. module: website_sale_financial_risk
|
|
56
|
+
#: model:ir.model,name:website_sale_financial_risk.model_payment_provider
|
|
57
|
+
msgid "Payment Provider"
|
|
58
|
+
msgstr ""
|
|
59
|
+
|
|
60
|
+
#. module: website_sale_financial_risk
|
|
61
|
+
#: model:ir.model,name:website_sale_financial_risk.model_payment_transaction
|
|
62
|
+
msgid "Payment Transaction"
|
|
63
|
+
msgstr ""
|
|
64
|
+
|
|
65
|
+
#. module: website_sale_financial_risk
|
|
66
|
+
#: model:ir.model.fields,help:website_sale_financial_risk.field_payment_provider__code
|
|
67
|
+
msgid "The technical code of this payment provider."
|
|
68
|
+
msgstr ""
|
|
69
|
+
|
|
70
|
+
#. module: website_sale_financial_risk
|
|
71
|
+
#: model_terms:payment.provider,auth_msg:website_sale_financial_risk.payment_provider_credit
|
|
72
|
+
msgid "Your payment has been authorized."
|
|
73
|
+
msgstr ""
|
|
74
|
+
|
|
75
|
+
#. module: website_sale_financial_risk
|
|
76
|
+
#: model_terms:payment.provider,cancel_msg:website_sale_financial_risk.payment_provider_credit
|
|
77
|
+
msgid "Your payment has been cancelled."
|
|
78
|
+
msgstr ""
|
|
79
|
+
|
|
80
|
+
#. module: website_sale_financial_risk
|
|
81
|
+
#: model_terms:payment.provider,done_msg:website_sale_financial_risk.payment_provider_credit
|
|
82
|
+
msgid "Your payment has been successfully processed. Thank you!"
|
|
83
|
+
msgstr ""
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Pilar Vargas
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
from odoo import api, fields, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class PaymentProvider(models.Model):
|
|
7
|
+
_inherit = "payment.provider"
|
|
8
|
+
|
|
9
|
+
code = fields.Selection(
|
|
10
|
+
selection_add=[("credit", "On Credit")], ondelete={"credit": "set default"}
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
@api.model
|
|
14
|
+
def _get_compatible_providers(
|
|
15
|
+
self, *args, sale_order_id=None, website_id=None, **kwargs
|
|
16
|
+
):
|
|
17
|
+
all_providers = super()._get_compatible_providers(
|
|
18
|
+
*args, sale_order_id=sale_order_id, website_id=website_id, **kwargs
|
|
19
|
+
)
|
|
20
|
+
# Always hide "credit" unless explicitly allowed
|
|
21
|
+
providers = all_providers.filtered(lambda p: p.code != "credit")
|
|
22
|
+
if sale_order_id:
|
|
23
|
+
order = self.env["sale.order"].browse(sale_order_id).exists()
|
|
24
|
+
if (
|
|
25
|
+
self.env.user.credit_limit
|
|
26
|
+
and self.env.user.risk_remaining_value >= order.amount_total
|
|
27
|
+
):
|
|
28
|
+
providers += all_providers.filtered(lambda p: p.code == "credit")
|
|
29
|
+
return providers
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Pilar Vargas
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
from odoo import _, models
|
|
4
|
+
from odoo.exceptions import ValidationError
|
|
5
|
+
|
|
6
|
+
from ..controllers.main import CreditController
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PaymentTransaction(models.Model):
|
|
10
|
+
_inherit = "payment.transaction"
|
|
11
|
+
|
|
12
|
+
def _get_specific_rendering_values(self, processing_values):
|
|
13
|
+
res = super()._get_specific_rendering_values(processing_values)
|
|
14
|
+
if self.provider_code != "credit":
|
|
15
|
+
return res
|
|
16
|
+
return {
|
|
17
|
+
"api_url": CreditController._process_url,
|
|
18
|
+
"reference": self.reference,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
def _get_tx_from_notification_data(self, provider_code, notification_data):
|
|
22
|
+
tx = super()._get_tx_from_notification_data(provider_code, notification_data)
|
|
23
|
+
if provider_code != "credit" or len(tx) == 1:
|
|
24
|
+
return tx
|
|
25
|
+
reference = notification_data.get("reference")
|
|
26
|
+
tx = self.search(
|
|
27
|
+
[("reference", "=", reference), ("provider_code", "=", "credit")]
|
|
28
|
+
)
|
|
29
|
+
if not tx:
|
|
30
|
+
raise ValidationError(
|
|
31
|
+
_("On Credit: No transaction found matching reference %s.", reference)
|
|
32
|
+
)
|
|
33
|
+
return tx
|
|
34
|
+
|
|
35
|
+
def _process_notification_data(self, notification_data):
|
|
36
|
+
super()._process_notification_data(notification_data)
|
|
37
|
+
if self.provider_code != "credit":
|
|
38
|
+
return
|
|
39
|
+
self.sale_order_ids.action_confirm()
|
|
40
|
+
self._set_pending(
|
|
41
|
+
"Payment registered as credit: order confirmed, awaiting collection."
|
|
42
|
+
)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Activate the ‘On credit’ payment provider and publish it on the website so that it is
|
|
2
|
+
available in the order payment process.
|
|
3
|
+
Set a credit limit and configure financial risk settings as described in the
|
|
4
|
+
account_financial_risk module.
|
|
5
|
+
If the configuration has been set to display credit information on the portal,
|
|
6
|
+
this information will also be displayed during the checkout process.
|
|
Binary file
|
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
|
+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
|
6
|
+
<title>README.rst</title>
|
|
7
|
+
<style type="text/css">
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
:Author: David Goodger (goodger@python.org)
|
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
|
12
|
+
:Copyright: This stylesheet has been placed in the public domain.
|
|
13
|
+
|
|
14
|
+
Default cascading style sheet for the HTML output of Docutils.
|
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
|
16
|
+
|
|
17
|
+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
|
18
|
+
customize this style sheet.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* used to remove borders from tables and images */
|
|
22
|
+
.borderless, table.borderless td, table.borderless th {
|
|
23
|
+
border: 0 }
|
|
24
|
+
|
|
25
|
+
table.borderless td, table.borderless th {
|
|
26
|
+
/* Override padding for "table.docutils td" with "! important".
|
|
27
|
+
The right padding separates the table cells. */
|
|
28
|
+
padding: 0 0.5em 0 0 ! important }
|
|
29
|
+
|
|
30
|
+
.first {
|
|
31
|
+
/* Override more specific margin styles with "! important". */
|
|
32
|
+
margin-top: 0 ! important }
|
|
33
|
+
|
|
34
|
+
.last, .with-subtitle {
|
|
35
|
+
margin-bottom: 0 ! important }
|
|
36
|
+
|
|
37
|
+
.hidden {
|
|
38
|
+
display: none }
|
|
39
|
+
|
|
40
|
+
.subscript {
|
|
41
|
+
vertical-align: sub;
|
|
42
|
+
font-size: smaller }
|
|
43
|
+
|
|
44
|
+
.superscript {
|
|
45
|
+
vertical-align: super;
|
|
46
|
+
font-size: smaller }
|
|
47
|
+
|
|
48
|
+
a.toc-backref {
|
|
49
|
+
text-decoration: none ;
|
|
50
|
+
color: black }
|
|
51
|
+
|
|
52
|
+
blockquote.epigraph {
|
|
53
|
+
margin: 2em 5em ; }
|
|
54
|
+
|
|
55
|
+
dl.docutils dd {
|
|
56
|
+
margin-bottom: 0.5em }
|
|
57
|
+
|
|
58
|
+
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
|
63
|
+
dl.docutils dt {
|
|
64
|
+
font-weight: bold }
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
div.abstract {
|
|
68
|
+
margin: 2em 5em }
|
|
69
|
+
|
|
70
|
+
div.abstract p.topic-title {
|
|
71
|
+
font-weight: bold ;
|
|
72
|
+
text-align: center }
|
|
73
|
+
|
|
74
|
+
div.admonition, div.attention, div.caution, div.danger, div.error,
|
|
75
|
+
div.hint, div.important, div.note, div.tip, div.warning {
|
|
76
|
+
margin: 2em ;
|
|
77
|
+
border: medium outset ;
|
|
78
|
+
padding: 1em }
|
|
79
|
+
|
|
80
|
+
div.admonition p.admonition-title, div.hint p.admonition-title,
|
|
81
|
+
div.important p.admonition-title, div.note p.admonition-title,
|
|
82
|
+
div.tip p.admonition-title {
|
|
83
|
+
font-weight: bold ;
|
|
84
|
+
font-family: sans-serif }
|
|
85
|
+
|
|
86
|
+
div.attention p.admonition-title, div.caution p.admonition-title,
|
|
87
|
+
div.danger p.admonition-title, div.error p.admonition-title,
|
|
88
|
+
div.warning p.admonition-title, .code .error {
|
|
89
|
+
color: red ;
|
|
90
|
+
font-weight: bold ;
|
|
91
|
+
font-family: sans-serif }
|
|
92
|
+
|
|
93
|
+
/* Uncomment (and remove this text!) to get reduced vertical space in
|
|
94
|
+
compound paragraphs.
|
|
95
|
+
div.compound .compound-first, div.compound .compound-middle {
|
|
96
|
+
margin-bottom: 0.5em }
|
|
97
|
+
|
|
98
|
+
div.compound .compound-last, div.compound .compound-middle {
|
|
99
|
+
margin-top: 0.5em }
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
div.dedication {
|
|
103
|
+
margin: 2em 5em ;
|
|
104
|
+
text-align: center ;
|
|
105
|
+
font-style: italic }
|
|
106
|
+
|
|
107
|
+
div.dedication p.topic-title {
|
|
108
|
+
font-weight: bold ;
|
|
109
|
+
font-style: normal }
|
|
110
|
+
|
|
111
|
+
div.figure {
|
|
112
|
+
margin-left: 2em ;
|
|
113
|
+
margin-right: 2em }
|
|
114
|
+
|
|
115
|
+
div.footer, div.header {
|
|
116
|
+
clear: both;
|
|
117
|
+
font-size: smaller }
|
|
118
|
+
|
|
119
|
+
div.line-block {
|
|
120
|
+
display: block ;
|
|
121
|
+
margin-top: 1em ;
|
|
122
|
+
margin-bottom: 1em }
|
|
123
|
+
|
|
124
|
+
div.line-block div.line-block {
|
|
125
|
+
margin-top: 0 ;
|
|
126
|
+
margin-bottom: 0 ;
|
|
127
|
+
margin-left: 1.5em }
|
|
128
|
+
|
|
129
|
+
div.sidebar {
|
|
130
|
+
margin: 0 0 0.5em 1em ;
|
|
131
|
+
border: medium outset ;
|
|
132
|
+
padding: 1em ;
|
|
133
|
+
background-color: #ffffee ;
|
|
134
|
+
width: 40% ;
|
|
135
|
+
float: right ;
|
|
136
|
+
clear: right }
|
|
137
|
+
|
|
138
|
+
div.sidebar p.rubric {
|
|
139
|
+
font-family: sans-serif ;
|
|
140
|
+
font-size: medium }
|
|
141
|
+
|
|
142
|
+
div.system-messages {
|
|
143
|
+
margin: 5em }
|
|
144
|
+
|
|
145
|
+
div.system-messages h1 {
|
|
146
|
+
color: red }
|
|
147
|
+
|
|
148
|
+
div.system-message {
|
|
149
|
+
border: medium outset ;
|
|
150
|
+
padding: 1em }
|
|
151
|
+
|
|
152
|
+
div.system-message p.system-message-title {
|
|
153
|
+
color: red ;
|
|
154
|
+
font-weight: bold }
|
|
155
|
+
|
|
156
|
+
div.topic {
|
|
157
|
+
margin: 2em }
|
|
158
|
+
|
|
159
|
+
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
|
160
|
+
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
|
161
|
+
margin-top: 0.4em }
|
|
162
|
+
|
|
163
|
+
h1.title {
|
|
164
|
+
text-align: center }
|
|
165
|
+
|
|
166
|
+
h2.subtitle {
|
|
167
|
+
text-align: center }
|
|
168
|
+
|
|
169
|
+
hr.docutils {
|
|
170
|
+
width: 75% }
|
|
171
|
+
|
|
172
|
+
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
|
173
|
+
clear: left ;
|
|
174
|
+
float: left ;
|
|
175
|
+
margin-right: 1em }
|
|
176
|
+
|
|
177
|
+
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
|
178
|
+
clear: right ;
|
|
179
|
+
float: right ;
|
|
180
|
+
margin-left: 1em }
|
|
181
|
+
|
|
182
|
+
img.align-center, .figure.align-center, object.align-center {
|
|
183
|
+
display: block;
|
|
184
|
+
margin-left: auto;
|
|
185
|
+
margin-right: auto;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
table.align-center {
|
|
189
|
+
margin-left: auto;
|
|
190
|
+
margin-right: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.align-left {
|
|
194
|
+
text-align: left }
|
|
195
|
+
|
|
196
|
+
.align-center {
|
|
197
|
+
clear: both ;
|
|
198
|
+
text-align: center }
|
|
199
|
+
|
|
200
|
+
.align-right {
|
|
201
|
+
text-align: right }
|
|
202
|
+
|
|
203
|
+
/* reset inner alignment in figures */
|
|
204
|
+
div.align-right {
|
|
205
|
+
text-align: inherit }
|
|
206
|
+
|
|
207
|
+
/* div.align-center * { */
|
|
208
|
+
/* text-align: left } */
|
|
209
|
+
|
|
210
|
+
.align-top {
|
|
211
|
+
vertical-align: top }
|
|
212
|
+
|
|
213
|
+
.align-middle {
|
|
214
|
+
vertical-align: middle }
|
|
215
|
+
|
|
216
|
+
.align-bottom {
|
|
217
|
+
vertical-align: bottom }
|
|
218
|
+
|
|
219
|
+
ol.simple, ul.simple {
|
|
220
|
+
margin-bottom: 1em }
|
|
221
|
+
|
|
222
|
+
ol.arabic {
|
|
223
|
+
list-style: decimal }
|
|
224
|
+
|
|
225
|
+
ol.loweralpha {
|
|
226
|
+
list-style: lower-alpha }
|
|
227
|
+
|
|
228
|
+
ol.upperalpha {
|
|
229
|
+
list-style: upper-alpha }
|
|
230
|
+
|
|
231
|
+
ol.lowerroman {
|
|
232
|
+
list-style: lower-roman }
|
|
233
|
+
|
|
234
|
+
ol.upperroman {
|
|
235
|
+
list-style: upper-roman }
|
|
236
|
+
|
|
237
|
+
p.attribution {
|
|
238
|
+
text-align: right ;
|
|
239
|
+
margin-left: 50% }
|
|
240
|
+
|
|
241
|
+
p.caption {
|
|
242
|
+
font-style: italic }
|
|
243
|
+
|
|
244
|
+
p.credits {
|
|
245
|
+
font-style: italic ;
|
|
246
|
+
font-size: smaller }
|
|
247
|
+
|
|
248
|
+
p.label {
|
|
249
|
+
white-space: nowrap }
|
|
250
|
+
|
|
251
|
+
p.rubric {
|
|
252
|
+
font-weight: bold ;
|
|
253
|
+
font-size: larger ;
|
|
254
|
+
color: maroon ;
|
|
255
|
+
text-align: center }
|
|
256
|
+
|
|
257
|
+
p.sidebar-title {
|
|
258
|
+
font-family: sans-serif ;
|
|
259
|
+
font-weight: bold ;
|
|
260
|
+
font-size: larger }
|
|
261
|
+
|
|
262
|
+
p.sidebar-subtitle {
|
|
263
|
+
font-family: sans-serif ;
|
|
264
|
+
font-weight: bold }
|
|
265
|
+
|
|
266
|
+
p.topic-title {
|
|
267
|
+
font-weight: bold }
|
|
268
|
+
|
|
269
|
+
pre.address {
|
|
270
|
+
margin-bottom: 0 ;
|
|
271
|
+
margin-top: 0 ;
|
|
272
|
+
font: inherit }
|
|
273
|
+
|
|
274
|
+
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
275
|
+
margin-left: 2em ;
|
|
276
|
+
margin-right: 2em }
|
|
277
|
+
|
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
|
279
|
+
pre.code, code { background-color: #eeeeee }
|
|
280
|
+
pre.code .comment, code .comment { color: #5C6576 }
|
|
281
|
+
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
282
|
+
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
|
283
|
+
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
|
284
|
+
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
|
285
|
+
pre.code .inserted, code .inserted { background-color: #A3D289}
|
|
286
|
+
|
|
287
|
+
span.classifier {
|
|
288
|
+
font-family: sans-serif ;
|
|
289
|
+
font-style: oblique }
|
|
290
|
+
|
|
291
|
+
span.classifier-delimiter {
|
|
292
|
+
font-family: sans-serif ;
|
|
293
|
+
font-weight: bold }
|
|
294
|
+
|
|
295
|
+
span.interpreted {
|
|
296
|
+
font-family: sans-serif }
|
|
297
|
+
|
|
298
|
+
span.option {
|
|
299
|
+
white-space: nowrap }
|
|
300
|
+
|
|
301
|
+
span.pre {
|
|
302
|
+
white-space: pre }
|
|
303
|
+
|
|
304
|
+
span.problematic, pre.problematic {
|
|
305
|
+
color: red }
|
|
306
|
+
|
|
307
|
+
span.section-subtitle {
|
|
308
|
+
/* font-size relative to parent (h1..h6 element) */
|
|
309
|
+
font-size: 80% }
|
|
310
|
+
|
|
311
|
+
table.citation {
|
|
312
|
+
border-left: solid 1px gray;
|
|
313
|
+
margin-left: 1px }
|
|
314
|
+
|
|
315
|
+
table.docinfo {
|
|
316
|
+
margin: 2em 4em }
|
|
317
|
+
|
|
318
|
+
table.docutils {
|
|
319
|
+
margin-top: 0.5em ;
|
|
320
|
+
margin-bottom: 0.5em }
|
|
321
|
+
|
|
322
|
+
table.footnote {
|
|
323
|
+
border-left: solid 1px black;
|
|
324
|
+
margin-left: 1px }
|
|
325
|
+
|
|
326
|
+
table.docutils td, table.docutils th,
|
|
327
|
+
table.docinfo td, table.docinfo th {
|
|
328
|
+
padding-left: 0.5em ;
|
|
329
|
+
padding-right: 0.5em ;
|
|
330
|
+
vertical-align: top }
|
|
331
|
+
|
|
332
|
+
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
|
333
|
+
font-weight: bold ;
|
|
334
|
+
text-align: left ;
|
|
335
|
+
white-space: nowrap ;
|
|
336
|
+
padding-left: 0 }
|
|
337
|
+
|
|
338
|
+
/* "booktabs" style (no vertical lines) */
|
|
339
|
+
table.docutils.booktabs {
|
|
340
|
+
border: 0px;
|
|
341
|
+
border-top: 2px solid;
|
|
342
|
+
border-bottom: 2px solid;
|
|
343
|
+
border-collapse: collapse;
|
|
344
|
+
}
|
|
345
|
+
table.docutils.booktabs * {
|
|
346
|
+
border: 0px;
|
|
347
|
+
}
|
|
348
|
+
table.docutils.booktabs th {
|
|
349
|
+
border-bottom: thin solid;
|
|
350
|
+
text-align: left;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
|
354
|
+
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
|
355
|
+
font-size: 100% }
|
|
356
|
+
|
|
357
|
+
ul.auto-toc {
|
|
358
|
+
list-style-type: none }
|
|
359
|
+
|
|
360
|
+
</style>
|
|
361
|
+
</head>
|
|
362
|
+
<body>
|
|
363
|
+
<div class="document">
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
|
|
367
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
|
|
368
|
+
</a>
|
|
369
|
+
<div class="section" id="website-sale-financial-risk">
|
|
370
|
+
<h1>Website Sale Financial Risk</h1>
|
|
371
|
+
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
372
|
+
!! This file is generated by oca-gen-addon-readme !!
|
|
373
|
+
!! changes will be overwritten. !!
|
|
374
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
+
!! source digest: sha256:5027bfc1e62613133899da76ce9738eccc5b24d0b85a7c575771fc4ade4f46d7
|
|
376
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
|
+
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/credit-control/tree/16.0/website_sale_financial_risk"><img alt="OCA/credit-control" src="https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-website_sale_financial_risk"><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/credit-control&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
|
+
<p>If a customer has sufficient credit, they can complete their purchase by paying with a
|
|
379
|
+
specific payment method. In this case, the order is automatically confirmed.</p>
|
|
380
|
+
<p><strong>Table of contents</strong></p>
|
|
381
|
+
<div class="contents local topic" id="contents">
|
|
382
|
+
<ul class="simple">
|
|
383
|
+
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a></li>
|
|
384
|
+
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
|
|
385
|
+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
|
|
386
|
+
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
|
|
387
|
+
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
|
|
388
|
+
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
|
|
389
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
|
|
390
|
+
</ul>
|
|
391
|
+
</li>
|
|
392
|
+
</ul>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="section" id="configuration">
|
|
395
|
+
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
|
|
396
|
+
<p>Activate the ‘On credit’ payment provider and publish it on the website so that it is
|
|
397
|
+
available in the order payment process.
|
|
398
|
+
Set a credit limit and configure financial risk settings as described in the
|
|
399
|
+
account_financial_risk module.
|
|
400
|
+
If the configuration has been set to display credit information on the portal,
|
|
401
|
+
this information will also be displayed during the checkout process.</p>
|
|
402
|
+
</div>
|
|
403
|
+
<div class="section" id="usage">
|
|
404
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
|
|
405
|
+
<p>Place an order in the online store. If you have credit available and the order
|
|
406
|
+
amount does not exceed the available credit, you can place the order by selecting
|
|
407
|
+
credit as the payment method.</p>
|
|
408
|
+
</div>
|
|
409
|
+
<div class="section" id="bug-tracker">
|
|
410
|
+
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
|
|
411
|
+
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/credit-control/issues">GitHub Issues</a>.
|
|
412
|
+
In case of trouble, please check there if your issue has already been reported.
|
|
413
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
414
|
+
<a class="reference external" href="https://github.com/OCA/credit-control/issues/new?body=module:%20website_sale_financial_risk%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
415
|
+
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
416
|
+
</div>
|
|
417
|
+
<div class="section" id="credits">
|
|
418
|
+
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
|
|
419
|
+
<div class="section" id="authors">
|
|
420
|
+
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
|
|
421
|
+
<ul class="simple">
|
|
422
|
+
<li>Tecnativa</li>
|
|
423
|
+
</ul>
|
|
424
|
+
</div>
|
|
425
|
+
<div class="section" id="contributors">
|
|
426
|
+
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
|
|
427
|
+
<ul>
|
|
428
|
+
<li><p class="first"><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:</p>
|
|
429
|
+
<blockquote>
|
|
430
|
+
<ul class="simple">
|
|
431
|
+
<li>Pilar Vargas</li>
|
|
432
|
+
</ul>
|
|
433
|
+
</blockquote>
|
|
434
|
+
</li>
|
|
435
|
+
</ul>
|
|
436
|
+
</div>
|
|
437
|
+
<div class="section" id="maintainers">
|
|
438
|
+
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
|
|
439
|
+
<p>This module is maintained by the OCA.</p>
|
|
440
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
441
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
442
|
+
</a>
|
|
443
|
+
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
444
|
+
mission is to support the collaborative development of Odoo features and
|
|
445
|
+
promote its widespread use.</p>
|
|
446
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/credit-control/tree/16.0/website_sale_financial_risk">OCA/credit-control</a> project on GitHub.</p>
|
|
447
|
+
<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>
|
|
448
|
+
</div>
|
|
449
|
+
</div>
|
|
450
|
+
</div>
|
|
451
|
+
</div>
|
|
452
|
+
</body>
|
|
453
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="70" height="70" viewBox="0,0,70,70" xmlns:odoo-icon="https://ivantodorovich.github.io/odoo-icon" odoo-icon:version="1.0" odoo-icon:size="70" odoo-icon:icon-size="0.65" odoo-icon:icon-color="#FFFFFF" odoo-icon:icon-flat-shadow-angle="135" odoo-icon:background-color="#c0ca33" odoo-icon:background-gradient="0.2" odoo-icon:box-radius="3.5" odoo-icon:odoo-version="16.0"><defs><linearGradient x1="70" y1="0" x2="0" y2="70" gradientUnits="userSpaceOnUse" id="color-1"><stop offset="0" stop-color="#f3fd66"/><stop offset="1" stop-color="#c0ca33"/></linearGradient></defs><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M3.5,70c-1.933,0 -3.5,-1.567 -3.5,-3.5v-63c0,-1.933 1.567,-3.5 3.5,-3.5h63c1.933,0 3.5,1.567 3.5,3.5v63c0,1.933 -1.567,3.5 -3.5,3.5z" id="box" fill="url(#color-1)"/><path d="M65,1h-61c-1.95033,0 -3.2667,0.63396 -3.9491,1.90189c0.28378,-1.64806 1.72001,-2.90189 3.4491,-2.90189h63c1.72965,0 3.16627,1.25466 3.44938,2.90352c-0.69803,-1.26902 -2.34782,-1.90352 -4.94938,-1.90352z" id="topBoxShadow" fill="#ffffff" opacity="0.383"/><path d="M4,69h61c2.66667,0 4.33333,-1 5,-3v0.5c0,1.933 -1.567,3.5 -3.5,3.5h-63c-1.933,0 -3.5,-1.567 -3.5,-3.5c0,-0.1611 0,-0.32777 0,-0.5c0.66667,2 2,3 4,3z" id="bottomBoxShadow" fill="#000000" opacity="0.383"/><path d="M40.44506,22.46442h13.01429l0.81272,0.27091c0.93191,0.31425 1.44122,0.60683 2.05888,1.21366c0.67185,0.65017 1.09446,1.32202 1.39787,2.23226l0.27091,0.82355v11.7898c0,12.8951 0.03251,12.23409 -0.61766,13.5236c-0.3576,0.70435 -1.56041,1.87467 -2.30811,2.25393c-1.28951,0.63934 -0.57432,0.61766 -18.85501,0.61766c-18.22651,0 -17.55467,0.02167 -18.83334,-0.60683c-0.80188,-0.3901 -1.86383,-1.41954 -2.26477,-2.17808c-0.65017,-1.21366 -0.68268,-1.48456 -0.68268,-5.1472v-3.33755h3.99856l0.03251,3.10999c0.03251,2.88243 0.04334,3.1425 0.24923,3.43508c0.43345,0.63934 -0.55265,0.60683 17.50049,0.60683c18.05313,0 17.06704,0.03251 17.50049,-0.60683c0.20589,-0.30341 0.21672,-0.57432 0.24923,-7.33612l0.03251,-7.01103h-13.5561v-5.52647h13.54527v-1.33285c0,-1.56041 -0.10836,-2.02637 -0.55265,-2.3948l-0.33592,-0.28174h-12.6567zM25.23102,18.81262l10.19688,0.02167l0.53097,0.32509c0.68268,0.42261 1.14864,1.17031 1.21366,1.92885c0.03251,0.48763 0.01084,0.59599 -0.21672,0.80188l-0.26007,0.24923l-10.42444,0.02167l-10.4136,0.03251l-0.2384,0.2384c-0.30341,0.30341 -0.30341,0.85606 0.01084,1.15947c0.21672,0.22756 0.24923,0.22756 10.86872,0.28174c10.18604,0.05418 10.66284,0.06502 10.96625,0.26007c0.53097,0.32509 0.92108,0.73686 1.17031,1.20282c0.2384,0.43345 0.2384,0.49847 0.27091,7.42281c0.02167,4.83295 0,7.16274 -0.08669,7.54201c-0.16254,0.78021 -0.63934,1.3762 -1.38704,1.74463l-0.61766,0.30341h-22.21424l-0.59599,-0.28174c-0.7477,-0.3576 -1.32202,-0.94275 -1.71212,-1.71212l-0.29258,-0.60683v-18.3132l0.24923,-0.53097c0.48763,-1.08362 1.19198,-1.67961 2.28644,-1.97219c0.37927,-0.10836 2.83909,-0.13003 10.69534,-0.1192zM32.20954,33.04057c0,0.58516 0.1192,0.88857 0.48763,1.26784c0.63934,0.63934 1.6146,0.6285 2.30811,-0.01084c0.82355,-0.76937 0.59599,-2.15641 -0.43345,-2.68738c-1.0186,-0.53097 -2.36229,0.29258 -2.36229,1.43038z" id="shadow" fill="#000000" opacity="0.3"/><path d="M53.45936,20.46442l0.81272,0.27091c0.93191,0.31425 1.44122,0.60683 2.05888,1.21366c0.67185,0.65017 1.09446,1.32202 1.39787,2.23226l0.27091,0.82355v11.7898c0,12.8951 0.03251,12.23409 -0.61766,13.5236c-0.16798,0.33087 -0.52248,0.76457 -0.92869,1.17078l-18.51102,18.51102h-34.44235c-1.933,0 -3.5,-1.567 -3.5,-3.5l0,-35.72581l13.00057,-13.00057c0.40452,-0.40452 0.9052,-0.67341 1.5351,-0.8418c0.37927,-0.10836 2.83909,-0.13003 10.69534,-0.1192l10.19688,0.02167l0.53097,0.32509c0.68268,0.42261 1.14864,1.17031 1.21366,1.92885c0.02964,0.44457 0.01424,0.5739 -0.16115,0.74929l-2.09799,2.09799c2.14229,0.03359 2.37606,0.08477 2.55172,0.1977c0.28154,0.17237 0.52347,0.36911 0.7258,0.58538l2.25416,-2.25416z" id="flatShadow" fill="#000000" opacity="0.324"/><path d="M40.44506,20.46442h13.01429l0.81272,0.27091c0.93191,0.31425 1.44122,0.60683 2.05888,1.21366c0.67185,0.65017 1.09446,1.32202 1.39787,2.23226l0.27091,0.82355v11.7898c0,12.8951 0.03251,12.23409 -0.61766,13.5236c-0.3576,0.70435 -1.56041,1.87467 -2.30811,2.25393c-1.28951,0.63934 -0.57432,0.61766 -18.85501,0.61766c-18.22651,0 -17.55467,0.02167 -18.83334,-0.60683c-0.80188,-0.3901 -1.86383,-1.41954 -2.26477,-2.17808c-0.65017,-1.21366 -0.68268,-1.48456 -0.68268,-5.1472v-3.33755h3.99856l0.03251,3.10999c0.03251,2.88243 0.04334,3.1425 0.24923,3.43508c0.43345,0.63934 -0.55265,0.60683 17.50049,0.60683c18.05313,0 17.06704,0.03251 17.50049,-0.60683c0.20589,-0.30341 0.21672,-0.57432 0.24923,-7.33612l0.03251,-7.01103h-13.5561v-5.52647h13.54527v-1.33285c0,-1.56041 -0.10836,-2.02637 -0.55265,-2.3948l-0.33592,-0.28174h-12.6567zM25.23102,16.81262l10.19688,0.02167l0.53097,0.32509c0.68268,0.42261 1.14864,1.17031 1.21366,1.92885c0.03251,0.48763 0.01084,0.59599 -0.21672,0.80188l-0.26007,0.24923l-10.42444,0.02167l-10.4136,0.03251l-0.2384,0.2384c-0.30341,0.30341 -0.30341,0.85606 0.01084,1.15947c0.21672,0.22756 0.24923,0.22756 10.86872,0.28174c10.18604,0.05418 10.66284,0.06502 10.96625,0.26007c0.53097,0.32509 0.92108,0.73686 1.17031,1.20282c0.2384,0.43345 0.2384,0.49847 0.27091,7.42281c0.02167,4.83295 0,7.16274 -0.08669,7.54201c-0.16254,0.78021 -0.63934,1.3762 -1.38704,1.74463l-0.61766,0.30341h-22.21424l-0.59599,-0.28174c-0.7477,-0.3576 -1.32202,-0.94275 -1.71212,-1.71212l-0.29258,-0.60683v-18.3132l0.24923,-0.53097c0.48763,-1.08362 1.19198,-1.67961 2.28644,-1.97219c0.37927,-0.10836 2.83909,-0.13003 10.69534,-0.1192zM32.20954,31.04057c0,0.58516 0.1192,0.88857 0.48763,1.26784c0.63934,0.63934 1.6146,0.6285 2.30811,-0.01084c0.82355,-0.76937 0.59599,-2.15641 -0.43345,-2.68738c-1.0186,-0.53097 -2.36229,0.29258 -2.36229,1.43038z" id="icon" fill="#ffffff"/></g></svg>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
odoo.define("website_sale_financial_risk.post_processing", (require) => {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const paymentPostProcessing = require("payment.post_processing");
|
|
5
|
+
|
|
6
|
+
paymentPostProcessing.include({
|
|
7
|
+
/**
|
|
8
|
+
* Don't wait for the transaction to be confirmed before redirecting customers to the
|
|
9
|
+
* landing route because custom transactions remain in the state 'pending' forever.
|
|
10
|
+
*
|
|
11
|
+
* @override method from `payment.post_processing`
|
|
12
|
+
* @param {Object} display_values_list - The post-processing values of the transactions
|
|
13
|
+
*/
|
|
14
|
+
processPolledData: function (display_values_list) {
|
|
15
|
+
// In almost every case, there will be a single transaction to display. If there are
|
|
16
|
+
// more than one transaction, the last one will most likely be the one that counts. We
|
|
17
|
+
// use that one to redirect the user to the landing page.
|
|
18
|
+
if (
|
|
19
|
+
display_values_list.length > 0 &&
|
|
20
|
+
display_values_list[0].provider_code === "credit"
|
|
21
|
+
) {
|
|
22
|
+
window.location = display_values_list[0].landing_route;
|
|
23
|
+
} else {
|
|
24
|
+
return this._super(...arguments);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<odoo>
|
|
3
|
+
<template id="payment" inherit_id="website_sale.payment">
|
|
4
|
+
<xpath expr="//t[@t-call='website_sale.cart_summary']" position="before">
|
|
5
|
+
<t t-call="account_financial_risk.financial_risk_info">
|
|
6
|
+
<t t-set="partner" t-value="order.partner_id" />
|
|
7
|
+
</t>
|
|
8
|
+
</xpath>
|
|
9
|
+
</template>
|
|
10
|
+
</odoo>
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: odoo-addon-website_sale_financial_risk
|
|
3
|
+
Version: 16.0.1.0.0.3
|
|
4
|
+
Summary: Website Sale Financial Risk
|
|
5
|
+
Home-page: https://github.com/OCA/credit-control
|
|
6
|
+
Author: Tecnativa, Odoo Community Association (OCA)
|
|
7
|
+
Author-email: support@odoo-community.org
|
|
8
|
+
License: AGPL-3
|
|
9
|
+
Classifier: Programming Language :: Python
|
|
10
|
+
Classifier: Framework :: Odoo
|
|
11
|
+
Classifier: Framework :: Odoo :: 16.0
|
|
12
|
+
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: odoo-addon-account-financial-risk<16.1dev,>=16.0dev
|
|
15
|
+
Requires-Dist: odoo<16.1dev,>=16.0a
|
|
16
|
+
|
|
17
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
18
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
19
|
+
:alt: Odoo Community Association
|
|
20
|
+
|
|
21
|
+
===========================
|
|
22
|
+
Website Sale Financial Risk
|
|
23
|
+
===========================
|
|
24
|
+
|
|
25
|
+
..
|
|
26
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
+
!! This file is generated by oca-gen-addon-readme !!
|
|
28
|
+
!! changes will be overwritten. !!
|
|
29
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
30
|
+
!! source digest: sha256:5027bfc1e62613133899da76ce9738eccc5b24d0b85a7c575771fc4ade4f46d7
|
|
31
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
+
|
|
33
|
+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
34
|
+
:target: https://odoo-community.org/page/development-status
|
|
35
|
+
:alt: Beta
|
|
36
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
37
|
+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
38
|
+
:alt: License: AGPL-3
|
|
39
|
+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github
|
|
40
|
+
:target: https://github.com/OCA/credit-control/tree/16.0/website_sale_financial_risk
|
|
41
|
+
:alt: OCA/credit-control
|
|
42
|
+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
43
|
+
:target: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-website_sale_financial_risk
|
|
44
|
+
:alt: Translate me on Weblate
|
|
45
|
+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
46
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=16.0
|
|
47
|
+
:alt: Try me on Runboat
|
|
48
|
+
|
|
49
|
+
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
50
|
+
|
|
51
|
+
If a customer has sufficient credit, they can complete their purchase by paying with a
|
|
52
|
+
specific payment method. In this case, the order is automatically confirmed.
|
|
53
|
+
|
|
54
|
+
**Table of contents**
|
|
55
|
+
|
|
56
|
+
.. contents::
|
|
57
|
+
:local:
|
|
58
|
+
|
|
59
|
+
Configuration
|
|
60
|
+
=============
|
|
61
|
+
|
|
62
|
+
Activate the ‘On credit’ payment provider and publish it on the website so that it is
|
|
63
|
+
available in the order payment process.
|
|
64
|
+
Set a credit limit and configure financial risk settings as described in the
|
|
65
|
+
account_financial_risk module.
|
|
66
|
+
If the configuration has been set to display credit information on the portal,
|
|
67
|
+
this information will also be displayed during the checkout process.
|
|
68
|
+
|
|
69
|
+
Usage
|
|
70
|
+
=====
|
|
71
|
+
|
|
72
|
+
Place an order in the online store. If you have credit available and the order
|
|
73
|
+
amount does not exceed the available credit, you can place the order by selecting
|
|
74
|
+
credit as the payment method.
|
|
75
|
+
|
|
76
|
+
Bug Tracker
|
|
77
|
+
===========
|
|
78
|
+
|
|
79
|
+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/credit-control/issues>`_.
|
|
80
|
+
In case of trouble, please check there if your issue has already been reported.
|
|
81
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
82
|
+
`feedback <https://github.com/OCA/credit-control/issues/new?body=module:%20website_sale_financial_risk%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
83
|
+
|
|
84
|
+
Do not contact contributors directly about support or help with technical issues.
|
|
85
|
+
|
|
86
|
+
Credits
|
|
87
|
+
=======
|
|
88
|
+
|
|
89
|
+
Authors
|
|
90
|
+
~~~~~~~
|
|
91
|
+
|
|
92
|
+
* Tecnativa
|
|
93
|
+
|
|
94
|
+
Contributors
|
|
95
|
+
~~~~~~~~~~~~
|
|
96
|
+
|
|
97
|
+
* `Tecnativa <https://www.tecnativa.com>`_:
|
|
98
|
+
|
|
99
|
+
* Pilar Vargas
|
|
100
|
+
|
|
101
|
+
Maintainers
|
|
102
|
+
~~~~~~~~~~~
|
|
103
|
+
|
|
104
|
+
This module is maintained by the OCA.
|
|
105
|
+
|
|
106
|
+
.. image:: https://odoo-community.org/logo.png
|
|
107
|
+
:alt: Odoo Community Association
|
|
108
|
+
:target: https://odoo-community.org
|
|
109
|
+
|
|
110
|
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
111
|
+
mission is to support the collaborative development of Odoo features and
|
|
112
|
+
promote its widespread use.
|
|
113
|
+
|
|
114
|
+
This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/16.0/website_sale_financial_risk>`_ project on GitHub.
|
|
115
|
+
|
|
116
|
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
odoo/addons/website_sale_financial_risk/README.rst,sha256=b32mb_nYbF1X4J9sUcpJXHMDn_eV14hEHphT5DUXq1Y,3838
|
|
2
|
+
odoo/addons/website_sale_financial_risk/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
|
3
|
+
odoo/addons/website_sale_financial_risk/__manifest__.py,sha256=TYRCRlJZFhWjsJC7CiyLdS2hEJJ02cnv1XrUKkhMs1o,761
|
|
4
|
+
odoo/addons/website_sale_financial_risk/controllers/__init__.py,sha256=4KFqEP2QHFbPN66eQJMdGsmNz2v7ywWv_FR1pW_kkLk,19
|
|
5
|
+
odoo/addons/website_sale_financial_risk/controllers/main.py,sha256=pJsqUp5rhLtb42s6ivJyntE8quOTvOVF_9guEc929do,538
|
|
6
|
+
odoo/addons/website_sale_financial_risk/data/payment_provider_data.xml,sha256=o0o30hxX4Oj9A2Y1hlhQoirvNopw5HC0ztF8jkiVIwQ,1403
|
|
7
|
+
odoo/addons/website_sale_financial_risk/i18n/website_sale_financial_risk.pot,sha256=l9F0JpzIk95shIknbh3KMa1xo7xd2-b-MLkE6aKXWYc,2918
|
|
8
|
+
odoo/addons/website_sale_financial_risk/models/__init__.py,sha256=ZZCEkfYq4J0OZV8cUMtt1TmiZCx5RlyyMB9qfYNYKWw,65
|
|
9
|
+
odoo/addons/website_sale_financial_risk/models/payment_provider.py,sha256=NRdNqTcI4ZNzq_mCc3T6-LdX05VaOTAgfkyESZrXND0,1100
|
|
10
|
+
odoo/addons/website_sale_financial_risk/models/payment_transaction.py,sha256=fWHIjmqwI7GI39O5dWdB6dqeQWNlqz0_y5SBWu1aKGE,1567
|
|
11
|
+
odoo/addons/website_sale_financial_risk/readme/CONFIGURE.rst,sha256=vM1ZRJZo4TSq3olXexMrTNfyMZV7qKeXJy96Wg5UVzc,391
|
|
12
|
+
odoo/addons/website_sale_financial_risk/readme/CONTRIBUTORS.rst,sha256=W-UTYedJnZueE-LuaYEA1Yxtllcx1ydacMch1JKLDUE,64
|
|
13
|
+
odoo/addons/website_sale_financial_risk/readme/DESCRIPTION.rst,sha256=eUeNF2HohKQ0ZkS1bvyTlgfFY-TxKcrWVwSg_uer6WU,164
|
|
14
|
+
odoo/addons/website_sale_financial_risk/readme/USAGE.rst,sha256=Qh9i565cwhmBGguneZyc819ZHtFBsBl29o-svoELkV0,193
|
|
15
|
+
odoo/addons/website_sale_financial_risk/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
16
|
+
odoo/addons/website_sale_financial_risk/static/description/index.html,sha256=4KHFweolOd2QiEXTZUCDrTFmuMEtB7LlZRk4DDnWlRU,13566
|
|
17
|
+
odoo/addons/website_sale_financial_risk/static/img/icon.png,sha256=9_com__GVUtFKCdy8DQKf-JJmxB2fFDnV044m0E71qE,7018
|
|
18
|
+
odoo/addons/website_sale_financial_risk/static/img/icon.svg,sha256=NiEv--2cehv6AyUPhbH3NIDirv9CdTRlWq73XlAVb1o,6105
|
|
19
|
+
odoo/addons/website_sale_financial_risk/static/src/js/post_processing.js,sha256=qvyplnsyYQY4FAQ5D90e3zmp8SLZ9RTf8IzVEAaWC3M,1231
|
|
20
|
+
odoo/addons/website_sale_financial_risk/templates/payment_custom_templates.xml,sha256=DZaAwCcJ6No91EoW6bYt8Ia6Y3KyZyGzksnKNxqcSc8,250
|
|
21
|
+
odoo/addons/website_sale_financial_risk/templates/website_sale_templates.xml,sha256=Q1Rp0iV59QU0QH6uvLM-BeApIBlpu6PkIckgUviNJMw,382
|
|
22
|
+
odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/METADATA,sha256=KdBLfIANksiOJ1AqoZT-uGTbnJGwuO-iOUbN1OGsCc4,4437
|
|
23
|
+
odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
24
|
+
odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
25
|
+
odoo_addon_website_sale_financial_risk-16.0.1.0.0.3.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
odoo
|