Skip to content

Commit 3a1bd4c

Browse files
[IMP] sale_financial_risk: Extend _get_financial_risk_lines to include sale financial fields
1 parent d86d851 commit 3a1bd4c

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

sale_financial_risk/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Sale Financial Risk
1111
!! This file is generated by oca-gen-addon-readme !!
1212
!! changes will be overwritten. !!
1313
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14-
!! source digest: sha256:e3f2bf368b4b5f14c903f833ca7fd6048f5a8d41a45034f618db87b6464ee8a0
14+
!! source digest: sha256:e01c8b7e6ffe45c71c56e0b59574a8cfb43644087f75958793cd0a2244e82fac
1515
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1616
1717
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

sale_financial_risk/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Sale Financial Risk",
66
"summary": "Manage partner risk in sales orders",
7-
"version": "18.0.1.0.5",
7+
"version": "18.0.1.0.6",
88
"category": "Sales Management",
99
"license": "AGPL-3",
1010
"author": "Tecnativa, Odoo Community Association (OCA)",

sale_financial_risk/models/res_partner.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,14 @@ def _get_field_risk_model_domain(self, field_name):
7070
return "sale.order.line", self._get_risk_sale_order_domain()
7171
else:
7272
return super()._get_field_risk_model_domain(field_name)
73+
74+
def _get_financial_risk_lines(self):
75+
lines = super()._get_financial_risk_lines()
76+
lines += [
77+
(
78+
self.risk_sale_order_include,
79+
self.risk_sale_order,
80+
self._fields["risk_sale_order"].string,
81+
)
82+
]
83+
return lines

sale_financial_risk/static/description/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ <h1>Sale Financial Risk</h1>
372372
!! This file is generated by oca-gen-addon-readme !!
373373
!! changes will be overwritten. !!
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375-
!! source digest: sha256:e3f2bf368b4b5f14c903f833ca7fd6048f5a8d41a45034f618db87b6464ee8a0
375+
!! source digest: sha256:e01c8b7e6ffe45c71c56e0b59574a8cfb43644087f75958793cd0a2244e82fac
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377377
<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/18.0/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-18-0/credit-control-18-0-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&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>Extends Partner Financial Risk to manage sales orders.</p>

0 commit comments

Comments
 (0)