Improve Long and Short filter header

This commit is contained in:
2026-07-29 08:44:31 +02:00
parent 7dcb68ab69
commit e5b986efc5
2 changed files with 50 additions and 41 deletions

View File

@@ -342,12 +342,12 @@ class CTRMOpenPositionContext(ModelView):
('around_3m', 'Around 3M'),
('around_6m', 'Around 6M'),
('range', 'Range'),
], "Purchase Period")
purchase_period = fields.Many2One('product.month', "Purchase Period")
], "Purchase Filter")
purchase_period = fields.Many2One('product.month', "Exact Period")
purchase_period_from = fields.Many2One(
'product.month', "Purchase Period From")
'product.month', "From")
purchase_period_to = fields.Many2One(
'product.month', "Purchase Period To")
'product.month', "To")
sale_period_mode = fields.Selection([
(None, ''),
('all', 'All'),
@@ -356,12 +356,12 @@ class CTRMOpenPositionContext(ModelView):
('around_3m', 'Around 3M'),
('around_6m', 'Around 6M'),
('range', 'Range'),
], "Sale Period")
sale_period = fields.Many2One('product.month', "Sale Period")
], "Sale Filter")
sale_period = fields.Many2One('product.month', "Exact Period")
sale_period_from = fields.Many2One(
'product.month', "Sale Period From")
'product.month', "From")
sale_period_to = fields.Many2One(
'product.month', "Sale Period To")
'product.month', "To")
strategy = fields.Many2One('mtm.strategy', "Strategy")
counterparty = fields.Many2One('party.party', "Counterparty")
direction = fields.Selection([