[IMP][16.0] mis_builder: add possibility to dynamically hide a period depending on instance date#629
[IMP][16.0] mis_builder: add possibility to dynamically hide a period depending on instance date#629AnizR wants to merge 1 commit into
Conversation
|
Hi @sbidoul, |
84156ee to
aa976ee
Compare
|
This PR has the |
|
|
||
| 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.
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.
It tried to improve it, what do you think?
| 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.
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.
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)
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
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
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.