mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] sale_payment_web: migrate from 14.0 to 15.0
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
'name': 'Sale Payment Web',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'category': 'Sales',
|
||||
'version': '14.0.1.0.0',
|
||||
'version': '15.0.1.0.0',
|
||||
'description':
|
||||
"""
|
||||
Sale Payment Web
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<field name="model">account.payment</field>
|
||||
<field name="inherit_id" ref="account.view_account_payment_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='move_id']" position="after">
|
||||
<xpath expr="//field[@name='destination_journal_id']" position="after">
|
||||
<field name="sale_order_id" attrs="{'invisible': [('state', '!=', 'draft'), ('sale_order_id', '=', False)], 'readonly': [('state', '!=', 'draft')]}" groups="account.group_account_readonly"/>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
context="{'dont_redirect_to_payments': True}"
|
||||
string="Register Payment"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='amount_total']" position="after">
|
||||
<xpath expr="//field[@name='tax_totals_json']" position="after">
|
||||
<field name="manual_amount_remaining" widget="monetary"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
|
||||
@@ -116,7 +116,7 @@ class AccountPaymentRegister(models.TransientModel):
|
||||
'currency_id': self.currency_id.id,
|
||||
'partner_id': self.partner_id.id,
|
||||
'partner_bank_id': self.partner_bank_id.id,
|
||||
'payment_method_id': self.payment_method_id.id,
|
||||
'payment_method_line_id': self.payment_method_line_id.id,
|
||||
'sale_order_id': self.sale_order_id.id,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user