mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[MIG] account_payment_order_tier_validation: Migration to 12.0
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"name": "Account Payment Order Tier Validation",
|
"name": "Account Payment Order Tier Validation",
|
||||||
"summary": """Extends the functionality of Payment Orders
|
"summary": """Extends the functionality of Payment Orders
|
||||||
to support a tier validation process.""",
|
to support a tier validation process.""",
|
||||||
"version": "14.0.1.0.0",
|
"version": "12.0.1.0.0",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "Escodoo,Odoo Community Association (OCA)",
|
"author": "Escodoo,Odoo Community Association (OCA)",
|
||||||
"maintainers": ["marcelsavegnago"],
|
"maintainers": ["marcelsavegnago"],
|
||||||
|
|||||||
@@ -9,5 +9,3 @@ class AccountPaymentOrder(models.Model):
|
|||||||
_inherit = [_name, "tier.validation"]
|
_inherit = [_name, "tier.validation"]
|
||||||
_state_from = ["draft"]
|
_state_from = ["draft"]
|
||||||
_state_to = ["open"]
|
_state_to = ["open"]
|
||||||
|
|
||||||
_tier_validation_manual_config = False
|
|
||||||
|
|||||||
@@ -97,6 +97,6 @@ class TestPaymentOrderTierValidation(common.SavepointCase):
|
|||||||
with self.assertRaises(ValidationError):
|
with self.assertRaises(ValidationError):
|
||||||
po.draft2open()
|
po.draft2open()
|
||||||
po.request_validation()
|
po.request_validation()
|
||||||
po.with_user(self.test_user_1).validate_tier()
|
po.sudo(self.test_user_1).validate_tier()
|
||||||
po.draft2open()
|
po.draft2open()
|
||||||
self.assertEqual(po.state, "open")
|
self.assertEqual(po.state, "open")
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
ref="account_payment_order.account_payment_order_form"
|
ref="account_payment_order.account_payment_order_form"
|
||||||
/>
|
/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<button name="draft2open" position="before">
|
<xpath expr="/form/header/button[last()]" position="after">
|
||||||
<button
|
<button
|
||||||
name="request_validation"
|
name="request_validation"
|
||||||
string="Request Validation"
|
string="Request Validation"
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
attrs="{'invisible': ['|',('review_ids', '=', []),('state','not in',['draft'])]}"
|
attrs="{'invisible': ['|',('review_ids', '=', []),('state','not in',['draft'])]}"
|
||||||
type="object"
|
type="object"
|
||||||
/>
|
/>
|
||||||
</button>
|
</xpath>
|
||||||
<header position="after">
|
<header position="after">
|
||||||
<field name="need_validation" invisible="1" />
|
<field name="need_validation" invisible="1" />
|
||||||
<field name="validated" invisible="1" />
|
<field name="validated" invisible="1" />
|
||||||
|
|||||||
Reference in New Issue
Block a user