Merge PR #1052 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2023-03-03 12:41:37 +00:00
2 changed files with 3 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ class AccountPaymentMode(models.Model):
_name = "account.payment.mode"
_description = "Payment Modes"
_order = "name"
_order = "sequence, name"
_check_company_auto = True
name = fields.Char(required=True, translate=True)
@@ -68,6 +68,7 @@ class AccountPaymentMode(models.Model):
)
active = fields.Boolean(default=True)
note = fields.Text(translate=True)
sequence = fields.Integer(default=10)
@api.onchange("company_id")
def _onchange_company_id(self):

View File

@@ -46,6 +46,7 @@
<field name="model">account.payment.mode</field>
<field name="arch" type="xml">
<tree>
<field name="sequence" widget="handle" />
<field name="name" />
<field name="payment_method_id" />
<field name="payment_type" />