mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[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:
committed by
Moises Lopez - https://www.vauxoo.com/
parent
87642b3537
commit
ae0c69f91e
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user