[MIG] sale_payment_web: migrate from 14.0 to 15.0

This commit is contained in:
Cedric Collins
2022-07-21 11:40:30 -05:00
parent 3f67c80dd6
commit 23d4af55ce
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
'name': 'Sale Payment Web', 'name': 'Sale Payment Web',
'author': 'Hibou Corp. <hello@hibou.io>', 'author': 'Hibou Corp. <hello@hibou.io>',
'category': 'Sales', 'category': 'Sales',
'version': '14.0.1.0.0', 'version': '15.0.1.0.0',
'description': 'description':
""" """
Sale Payment Web Sale Payment Web

View File

@@ -6,7 +6,7 @@
<field name="model">account.payment</field> <field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form"/> <field name="inherit_id" ref="account.view_account_payment_form"/>
<field name="arch" type="xml"> <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"/> <field name="sale_order_id" attrs="{'invisible': [('state', '!=', 'draft'), ('sale_order_id', '=', False)], 'readonly': [('state', '!=', 'draft')]}" groups="account.group_account_readonly"/>
</xpath> </xpath>
</field> </field>

View File

@@ -13,7 +13,7 @@
context="{'dont_redirect_to_payments': True}" context="{'dont_redirect_to_payments': True}"
string="Register Payment"/> string="Register Payment"/>
</xpath> </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"/> <field name="manual_amount_remaining" widget="monetary"/>
</xpath> </xpath>
<xpath expr="//div[@name='button_box']" position="inside"> <xpath expr="//div[@name='button_box']" position="inside">

View File

@@ -116,7 +116,7 @@ class AccountPaymentRegister(models.TransientModel):
'currency_id': self.currency_id.id, 'currency_id': self.currency_id.id,
'partner_id': self.partner_id.id, 'partner_id': self.partner_id.id,
'partner_bank_id': self.partner_bank_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, 'sale_order_id': self.sale_order_id.id,
} }