You can modify/extend the Parent View with mode=primary. This creates a brand new View. In order to use this View you need to reference it somewhere in Odoo. Without referencing it, it will never be used.
(edited comment) Thanks Ray for your 2 amazing clarifications
Two way to fix the issue:
1. (recommended) Completely remove the 'mode' field, as it is not needed in our context. 2. Change the value of the 'mode' field from 'primary' to 'extension'
Care should be taken when we copy an example from outside. Before reusing it, we should carefully understand the meaning of each field.
So we would use 'primary' mode for a new view that would however be based on another view. In this case, reference of the new view should be used to render the new content. That was not the case here, this is why the 'additional_filter' was not rendered in the parent view.
You can modify/extend the Parent View with mode=primary. This creates a brand new View. In order to use this View you need to reference it somewhere in Odoo. Without referencing it, it will never be used.
(edited comment)
Thanks Ray for your 2 amazing clarifications
Two way to fix the issue:
1. (recommended) Completely remove the 'mode' field, as it is not needed in our context.
2. Change the value of the 'mode' field from 'primary' to 'extension'
The documentation on the mode field is available here https://www.odoo.com/documentation/18.0/developer/reference/user_interface/view_records.html
Care should be taken when we copy an example from outside. Before reusing it, we should carefully understand the meaning of each field.
So we would use 'primary' mode for a new view that would however be based on another view. In this case, reference of the new view should be used to render the new content. That was not the case here, this is why the 'additional_filter' was not rendered in the parent view.