[IMP] account_move_name_sequence: split too long context definition

Split the context definition in sequence_id and refund_sequence_id
fields into multiple lines to improve readability.
This commit is contained in:
Andrea Gidalti
2023-10-28 00:04:55 +00:00
committed by Moises Lopez - https://www.vauxoo.com/
parent 87642b3537
commit ae0c69f91e

View File

@@ -16,7 +16,14 @@
<field
name="sequence_id"
required="1"
context="{'default_name': name, 'default_company_id': company_id, 'default_implementation': 'no_gap', 'default_padding': 4, 'default_use_date_range': True, 'default_prefix': (code or 'UNKNOWN') + '/%%(range_year)s/'}"
context="{
'default_name': name,
'default_company_id': company_id,
'default_implementation': 'no_gap',
'default_padding': 4,
'default_use_date_range': True,
'default_prefix': (code or 'UNKNOWN') + '/%%(range_year)s/'
}"
/>
</field>
<field name="refund_sequence" position="after">
@@ -24,7 +31,14 @@
name="refund_sequence_id"
invisible="type not in ('sale', 'purchase') or not refund_sequence"
required="type in ('sale', 'purchase') and refund_sequence"
context="{'default_name': name, 'default_company_id': company_id, 'default_implementation': 'no_gap', 'default_padding': 4, 'default_use_date_range': True, 'default_prefix': 'R' + (code or 'UNKNOWN') + '/%%(range_year)s/'}"
context="{
'default_name': name,
'default_company_id': company_id,
'default_implementation': 'no_gap',
'default_padding': 4,
'default_use_date_range': True,
'default_prefix': 'R' + (code or 'UNKNOWN') + '/%%(range_year)s/'
}"
/>
</field>
</field>