Skip to content

Commit d908c55

Browse files
committed
[MIG] sale_advance_payment: Migration to 18.0
1 parent 43746f8 commit d908c55

6 files changed

Lines changed: 31 additions & 30 deletions

File tree

sale_advance_payment/README.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Sale Advance Payment
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/sale-workflow/tree/17.0/sale_advance_payment
20+
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_advance_payment
2121
:alt: OCA/sale-workflow
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_advance_payment
23+
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_advance_payment
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/sale-workflow&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -41,10 +41,10 @@ Usage
4141

4242
To use this module, you need to:
4343

44-
- Go to a sale order.
45-
- Click on "Pay Sale Advance".
46-
- Select the Journal and specify the amount of the advanced payment.
47-
- "Make Advance Payment".
44+
- Go to a sale order.
45+
- Click on "Pay Sale Advance".
46+
- Select the Journal and specify the amount of the advanced payment.
47+
- "Make Advance Payment".
4848

4949
When generating the invoice, the system displays the advanced payments,
5050
select those you want to add to the invoice.
@@ -62,7 +62,7 @@ Bug Tracker
6262
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
6363
In case of trouble, please check there if your issue has already been reported.
6464
If you spotted it first, help us to smash it by providing a detailed and welcomed
65-
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_advance_payment%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
65+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_advance_payment%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6666

6767
Do not contact contributors directly about support or help with technical issues.
6868

@@ -77,11 +77,11 @@ Authors
7777
Contributors
7878
------------
7979

80-
- Omar Castiñeira Saaevdra <omar@comunitea.com>
81-
- Daniel Reis <dreis@opensourceintegrators.com>
82-
- Nikul Chaudhary <nchaudhary@opensourceintegrators.com>
83-
- Manuel Regidor <manuel.regidor@sygel.es>
84-
- Urvisha Desai <udesai@opensourceintegrators.com>
80+
- Omar Castiñeira Saaevdra <omar@comunitea.com>
81+
- Daniel Reis <dreis@opensourceintegrators.com>
82+
- Nikul Chaudhary <nchaudhary@opensourceintegrators.com>
83+
- Manuel Regidor <manuel.regidor@sygel.es>
84+
- Urvisha Desai <udesai@opensourceintegrators.com>
8585

8686
Maintainers
8787
-----------
@@ -96,6 +96,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9696
mission is to support the collaborative development of Odoo features and
9797
promote its widespread use.
9898

99-
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/17.0/sale_advance_payment>`_ project on GitHub.
99+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_advance_payment>`_ project on GitHub.
100100

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

sale_advance_payment/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{
55
"name": "Sale Advance Payment",
6-
"version": "17.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"author": "Comunitea, Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/sale-workflow",
99
"category": "Sales",

sale_advance_payment/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Sale Advance Payment</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:413cfc7cdb058b13df5804127f9e387f5ee8ebad625a1fef6a1a1e6babb629f4
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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/sale-workflow/tree/17.0/sale_advance_payment"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_advance_payment"><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/sale-workflow&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<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/sale-workflow/tree/18.0/sale_advance_payment"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_advance_payment"><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/sale-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>The module allows to add advance payments on sales and then use them on
374374
invoices.</p>
375375
<p><strong>Table of contents</strong></p>
@@ -409,7 +409,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
409409
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
410410
In case of trouble, please check there if your issue has already been reported.
411411
If you spotted it first, help us to smash it by providing a detailed and welcomed
412-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_advance_payment%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
412+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_advance_payment%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
413413
<p>Do not contact contributors directly about support or help with technical issues.</p>
414414
</div>
415415
<div class="section" id="credits">
@@ -439,7 +439,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
439439
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
440440
mission is to support the collaborative development of Odoo features and
441441
promote its widespread use.</p>
442-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/17.0/sale_advance_payment">OCA/sale-workflow</a> project on GitHub.</p>
442+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_advance_payment">OCA/sale-workflow</a> project on GitHub.</p>
443443
<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>
444444
</div>
445445
</div>

sale_advance_payment/tests/test_sale_advance_payment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
from odoo import fields
55
from odoo.exceptions import ValidationError
6-
from odoo.tests import common
76

7+
from odoo.addons.base.tests.common import BaseCommon
88

9-
class TestSaleAdvancePayment(common.TransactionCase):
9+
10+
class TestSaleAdvancePayment(BaseCommon):
1011
@classmethod
1112
def setUpClass(cls):
1213
super().setUpClass()

sale_advance_payment/views/sale_view.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
</page>
2727
</notebook>
2828
<field name="tax_totals" position="after">
29-
<div class="oe_subtotal_footer_separator oe_inline o_td_label">
29+
<div class="oe_subtotal_footer_separator o_td_label">
3030
<label for="amount_residual" />
31+
<field
32+
name="amount_residual"
33+
nolabel="1"
34+
readonly="True"
35+
class="oe_inline"
36+
widget="monetary"
37+
options="{'currency_field': 'currency_id'}"
38+
/>
3139
</div>
32-
<field
33-
name="amount_residual"
34-
nolabel="1"
35-
readonly="True"
36-
class="oe_subtotal_footer_separator"
37-
widget="monetary"
38-
options="{'currency_field': 'currency_id'}"
39-
/>
4040
</field>
4141
<field name="tag_ids" position="after">
4242
<field name="advance_payment_status" readonly="True" />

sale_advance_payment/wizard/sale_advance_payment_wzd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _prepare_payment_vals(self, sale):
139139
"amount": self.amount_advance,
140140
"payment_type": self.payment_type,
141141
"partner_type": "customer",
142-
"ref": self.payment_ref or sale.name,
142+
"memo": self.payment_ref or sale.name,
143143
"journal_id": self.journal_id.id,
144144
"currency_id": self.journal_currency_id.id,
145145
"partner_id": partner_id,

0 commit comments

Comments
 (0)