-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP][16.0] mis_builder: add possibility to dynamically hide a period depending on instance date #629
base: 16.0
Are you sure you want to change the base?
Conversation
Hi @sbidoul, |
84156ee
to
aa976ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally it's correct.
This PR has the |
@@ -284,6 +284,10 @@ def _compute_dates(self): | |||
help="A domain to additionally filter move lines considered in this column.", | |||
) | |||
|
|||
hide_period_based_on_instance_date = fields.Boolean( | |||
help="Dynamically hide this period depending on the base date of the instance", | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By just reading the field name and help text I don't understand what this does. Can you propose something more explanatory ?
Is it not better to talk about pivot date rather than base date? Not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It tried to improve it, what do you think?
@@ -414,6 +414,7 @@ | |||
options="{'model': 'source_aml_model_name'}" | |||
attrs="{'invisible': [('source_aml_model_name', '=', False)]}" | |||
/> | |||
<field name="hide_period_based_on_instance_date" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this field should be hidden for some period types. For instance it does not make sense for comparison columns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've hide the field for comarison columns, is there any other case where I should hide this feature?
EDIT: I will do some changes #629 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments to handle.
bcbded6
to
384bace
Compare
I have to make some changes:
|
06b99ff
to
6ec757f
Compare
6ec757f
to
151cd99
Compare
151cd99
to
fff0139
Compare
a654214
to
4855ba5
Compare
… depending on instance date [IMP] mis_builder: make description of hide_period_based_on_instance_date mor 'explanatory' [IMP] mis_builder: cleanup code
4855ba5
to
b143553
Compare
Description
Related to issue: #617
This PR adds a boolean 'hide_period_based_on_instance_date' on periods of an instance.
When activated, the period will be shown only if the date of the instance is greater or equal to the end date of the period.