mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] sale_payment_deposit: migrate to 15.0
H5924
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
'name': 'Sale Payment Deposit',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'category': 'Sales',
|
||||
'version': '14.0.1.0.0',
|
||||
'version': '15.0.1.0.0',
|
||||
'description':
|
||||
"""
|
||||
Sale Deposits
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from odoo import api, fields, models
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo.addons.sale.models.sale import SaleOrder
|
||||
from odoo.addons.sale.models.sale_order import SaleOrder
|
||||
|
||||
|
||||
def _create_payment_transaction(self, vals):
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
<xpath expr="//div[@id='modalaccept']/div/form/main/p/ul/li[2]" position="replace">
|
||||
<li><span>For an amount of:</span> <b data-id="total_amount" t-field="sale_order.amount_total"/></li>
|
||||
<li t-if="sale_order.amount_total_deposit"><span>Deposit today of:</span> <b data-id="total_amount_deposit" t-field="sale_order.amount_total_deposit"/></li>
|
||||
<li t-if="sale_order.payment_term_id.note"><span t-field="sale_order.payment_term_id.note"/></li>
|
||||
<li t-if="sale_order.payment_term_id.note.striptags()"><span t-field="sale_order.payment_term_id.note"/></li>
|
||||
</xpath>
|
||||
<!-- Display the Deposit when Paying -->
|
||||
<xpath expr="//div[@id='modalaccept']/div/div/main/p/ul/li[2]" position="replace">
|
||||
<li t-if="sale_order.amount_total_deposit"><span>For the deposit amount of:</span> <b data-id="total_amount_deposit" t-field="sale_order.amount_total_deposit"/></li>
|
||||
<li t-else=""><span>For an amount of:</span> <b data-id="total_amount" t-field="sale_order.amount_total"/></li>
|
||||
<li t-if="sale_order.payment_term_id.note"><span t-field="sale_order.payment_term_id.note"/></li>
|
||||
<li t-if="sale_order.payment_term_id.note.striptags()"><span t-field="sale_order.payment_term_id.note"/></li>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user