Comments (6)
This is odoo's standard behavior, to change this, we'd have to put {'active_test': False}
into the context by default. I dont think this is a good idea, because then we'd also see objects that are inactive for good reasons.
from web.
I'm not convinced it's right to accept and extend Odoo's default behavior in this case.
The behavior users expect is that the main model is filtered on "Active=True", not the related models.
i.e. when a partner is inactive, you can still find it's related invoices.
The problem is that, as it is now, the implicit criteria "active=True" makes the "user experience" inconsistent.
For example:
- search for invoices in period X => finds results for all partners
- search for invoices in period X and partner "in selection (category = 'ABCD')" => finds results for only the active partners in the category ABCD
Would you be kind enough to reconsider your position?
from web.
I agree with @clonedagain about the reasoning on the feature, but I think that there's a technical problem to implement this correctly. @hbrunn, is this correct?
from web.
In most cases, it should be enough to put active_test: False
in the context, analyze the current search domain if it contains the active field, the model if it has an active field, and finally add ('active', '=', True)
if all this checks go right.
But still, we'll run into subtle weirdnesses as described in odoo/odoo#3939 - especially the explanation linked in the second last post.
I simply don't think there's a general way to exclude inactive records we actually don't want to see while including other active records we do want to see, and making this explicit doesn't seem like a big issue to me, so from my side, I won't invest time in addressing this. If somebody else will, I'll be happy to review.
from web.
Well, looking at the issue, this is only due to the child_of operator and the partner hierarchy implementation, which is not one of the allowed in the advanced search, so I still think that we can provide this facility in the module, and 99% of cases will be correctly treated.
from web.
wontfix for reasons stated above
from web.
Related Issues (20)
- Clarification on the Necessity of web_responsive in Odoo 17 HOT 3
- [12.0] web_drop_target
- [16.0_
- [16.0] preview issues pdf on customer invoice/vendorbill in combination with addon web_responsive HOT 2
- [15.0] web_pivot_computed_measure question HOT 1
- [web_dialog_size] Reports re-generated on window size change
- [16.0] web_reponsive: the HTML styling toolbar doesn't appear when composing messages from chatters HOT 11
- Missing web_widget_text_markdown for newer versions HOT 3
- I would really like to get this module on version: 14.0 HOT 1
- causes a problem where the toolbar does not appear when text is selected in the editor within a popup window. web_responsive.scss file, specifically in lines 373-377. HOT 5
- [16.0] web_remember_tree_column_width: issues with HTML fields HOT 1
- [16.0] web_company_color: not working if not all colors are filled HOT 4
- [16.0] web_chatter_position: Button to switch between sided and bottom views HOT 2
- [16.0] web_responsive: document_url module is not working properly when installed
- [17.0] web_responsive: Main document preview is activated by default HOT 4
- [17.0]Can this module be migrated to the 17.0 version ?? HOT 6
- column width in tree view HOT 2
- [11.0] error install web_responsive module HOT 1
- [16.0] web_advanced_search bug HOT 7
- [16.0] web_responsive: The web responsive will revert back to odoo base behaviour when we reload the page from website. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web.