Show authorization ranges for draft sequences
Publicar paquete PyPI / publish (push) Successful in 1m17s
Publicar paquete PyPI / publish (push) Successful in 1m17s
This commit is contained in:
@@ -363,6 +363,19 @@ class NCFManagerSequences(Workflow, ModelSQL, ModelView):
|
||||
'invisible': Eval('sequence_mode') == 'create',
|
||||
}), 'get_effective_sequence_values')
|
||||
|
||||
# Tree-specific values must remain visible for both assisted draft lines
|
||||
# and lines backed by an activated strict sequence. The effective fields
|
||||
# above retain their form-only visibility rules.
|
||||
tree_from_number = fields.Function(
|
||||
fields.Integer('Authorized From'), 'get_effective_sequence_values')
|
||||
tree_until_number = fields.Function(
|
||||
fields.Integer('Authorized Until'), 'get_effective_sequence_values')
|
||||
tree_number_next = fields.Function(
|
||||
fields.Integer('Next Number to Issue'),
|
||||
'get_effective_sequence_values')
|
||||
tree_expiration_date = fields.Function(
|
||||
fields.Date('Expiration Date'), 'get_effective_sequence_values')
|
||||
|
||||
invoice_type = fields.Selection([
|
||||
('invoice_customer', 'Customer Invoice'),
|
||||
('invoice_supplier', 'Supplier Invoice')
|
||||
@@ -437,6 +450,10 @@ class NCFManagerSequences(Workflow, ModelSQL, ModelView):
|
||||
'effective_until_number': 'until_number',
|
||||
'effective_number_next': 'number_next',
|
||||
'effective_expiration_date': 'expiration_date',
|
||||
'tree_from_number': 'from_number',
|
||||
'tree_until_number': 'until_number',
|
||||
'tree_number_next': 'number_next',
|
||||
'tree_expiration_date': 'expiration_date',
|
||||
}
|
||||
for record in records:
|
||||
sequence = record.ncf_sequences
|
||||
|
||||
Reference in New Issue
Block a user