Comments (5)
I've no idea, can you let an example of your definition view, what do you mean by 'you pass the correct context'? I wonder if the context is forwarded to the popup and if it should be retrieved in the same way as a form view. Did you try to add context on the one2many field that open the popup?
from web.
@pedrobaeza normally this case is covered...can you explain What you mean by "correct context" ? and where do you add it?
from web.
Thanks for your replies.
Yeah, I tried both. Let me draft one quick example (the one where I tried was on MRP routing line sub-sub-screen, so it's very difficult to see full example with that):
<record id="..." model="ir.actions.act_window">
<field name="res_model">main.model</field>
<field name="context">{'readonly_by_pass': True}</field>
...
</record>
<record id="..." model="ir.ui.view">
<field name="model">main.model</field>
...
<field name=arch>
<form string="...">
<field name="submodel_one2many_field"
context="{'readonly_by_pass': True}"/> <!-- I have tried also this -->
</form>
</field>
</record>
<record id="..." model="ir.ui.view">
<field name="model">sub.model</field>
...
<field name=arch>
<form string="...">
<field name="readonly_field" readonly="1"/>
</form>
</field>
</record>
from web.
@pedrobaeza
The right place to set the readonly_by_pass attribute is into the context of the action.
But with some missing args into Odoo, it appears that the options dictionary is not well passed.
So I propose an added value with this #258
hope this solves this issue
-jne
from web.
Solved already, so I close.
from web.
Related Issues (20)
- [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
- [16.0] web_refresher: Refresh action returns to create a new record when already has been created the record HOT 3
- [16][web_responsive] Bold doest whows as normal text in HTML fields 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.