[STYLE] order fields by technical name
This commit is contained in:
parent
3dc9a6cca0
commit
c4d0cc5189
@ -102,9 +102,9 @@ class ContractWizard(models.TransientModel):
|
|||||||
self.contract_id = self.env.context.get('active_id')
|
self.contract_id = self.env.context.get('active_id')
|
||||||
|
|
||||||
contract_context_values = self.env.ref(
|
contract_context_values = self.env.ref(
|
||||||
'client_contracts.action_get_context').with_context({
|
'client_contracts.action_get_context').with_context(
|
||||||
"onchange_self": self,
|
{"onchange_self": self}
|
||||||
}).run()
|
).run()
|
||||||
|
|
||||||
self.transient_field_ids = [ # one2many
|
self.transient_field_ids = [ # one2many
|
||||||
(
|
(
|
||||||
@ -114,7 +114,7 @@ class ContractWizard(models.TransientModel):
|
|||||||
"value": value,
|
"value": value,
|
||||||
}).id,
|
}).id,
|
||||||
0,
|
0,
|
||||||
) for field, value in contract_context_values.items()
|
) for field, value in sorted(contract_context_values.items())
|
||||||
]
|
]
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user