Is it possible hide button in odoo ir.model.access.csv security file.
For example on form I have two button (Button 1 and Button 2) admin can see both button, user only Button 1.
Any simple solution?
If these are buttons on a form view you can show Button 2 only for certain user groups for by adding a groups attribute on it, eg.:
<button string="Button 2" groups="base.group_system" name="..." type="..."/>
This will only show Button 2 to users belonging to the Administration -> Settings group.
Related
I have an editable Interactive Grid in a page. My page is read only on page load, and there is a separate button 'EDIT' in page, by clicking on which page becomes editable. At the moment, APEX$ROW_ACTION column of IG is visible on page load by default. I want to APEX$ROW_ACTION column only after user clicks on EDIT button.
NOTE : This EDIT button is not the default Edit button of IG
Sorry, but my Javascript is still too weak to solve this (I keep meaning to learn more!). How about going at this a different way?
What if you used 2 grids on the same page, one read-only and the other editable?
The page defaults to displaying the Read-only
They click the Edit button
That hides the Read-only and displays the Editable
This Apex Forum comment describes getting around the 1 IG per page limitation: https://community.oracle.com/tech/developers/discussion/comment/12587490#Comment_12587490
How to configure a save button in order to press it and the info that is entered on the screen to be saved in a specific database table?
When you double clicked your button in the layout screen, you will see and fcode area that you should give a function name.
Then in the screen PAI events user comment section, you can define the what button will do. You should modify your db table, under that button fcode name case.
Here is a tutorial about module pool development.
You can check these links for table control tutorials: 1, 2.
I have a tree view in my custom module. When user clicks on an item of tree view it takes user to the form view and user have to click edit button in order to edit the form. I want to open the form view automatically in edit mode. So, user didn't have to click specially on Edit button
Pls try with this in ir.actions.act_window:
<field name='flags'>{'initial_mode': 'edit'}</field>
Use this:
In form's ir.actions.act_window record add:
<field name='target'>inline</field>
I have a dropdown box for Class ID in a custom view. When I type new, non existent classID in the dropdown box, the dropdown shows options, one of which is Create new_class _id. However, when I click on Create '0078' for instance, no dialog window is launched and the new class is created. I don't know 100% if this is correct behaviour. Please see the picture. What I have to do to launch the window?
That will be created automatically , when you click on the Create "0078" ..... after click on that go to the button besides the Item Class field (that logo shows with arrow sign).... that will show you your created item and dialog window... :)
It will be true when there are no required field in the window that will be open for create new item. If you put more than one required field in dialog-box(form view), then it will pop-up. that you are asking.....!!
– Mischievous
I am programming a GUI in Haskell using the editor Glade with the gtk2hs bindings. Currently I am failing miserably at grouping the radio buttons. It will not let me select the group name. Can someone help?
Follow these steps:
select the desired radio button
click the ... button near the Group entry
Choose a Radio Button in this project dialog
select the desired row in Objects list
click the radio button at the left side of the row (it will be check)
press OK button
Slight more accurate / up to date, for each radio button in a group, except the one that you want to be initially active,
select the (not to be initially active) radio button,
under "Button Attributes" in the Group: field, enter the ID of the initially active radio button in this group (or click on the edit icon on the right and select it in the popup list by clicking on the radio button left of its name).
Click OK.
Repeat for all initially not active radio buttons that should be linked to the initially active one. Note that later you can change the initially active one by simply making a radiobutton Active by checking the Active Checkbox under "Button Attributes". If it is already marked active, first unmark it.