Odoo Shortcuts, Is there any Shortcut for Search more for many2many_tags widget? - odoo

We all know that in form view if we click on Alt+Shift+E form view Edit mode shall be opened, Alt+Shift+S is going to Save the Form.
Like this is there an shortcut for Search more... option of Many2one or Many2many Tags?

In ODOO i have seen only these key till now:
For Simple CURD Operation :
Create a Record:accesskey="Alt+Shift+C"
Edit a Record :accesskey="Alt+Shift+E"
Save a Record :accesskey="Alt+Shift+S"
Discard a Record :accesskey="Alt+Shift+D"
For Iterating the records :
Move To Prev Records:accesskey="Alt+Shift+O"
Move To Next Records:accesskey="Alt+Shift+P"
For Switching the view :
Switch to KanbanView="Alt+Shift+K"
Switch to FormView="Alt+Shift+F"
Switch to ListView="Alt+Shift+L"
There is no other sort key till date in base.xml.
Hope this help you.

Related

How to get value of field from wizard to qweb odoo?

I have defined a model to display a wizard which holds one many2one field and one selection field. This wizard will be displayed in inventory while clicking a custom defined menu comes under reporting menu. I created a button in wizard to print qweb.
What i need to do is, to fetch the value of that selection field in qweb.
Could anyone please help me to fetch value of fields from wizard in qweb odoo14?
Thanks in advance.
You have to use "context"
Here is an explanation:
https://www.odoo.com/es_ES/forum/ayuda-1/what-s-the-context-2236

Attach user form to UDF which is created in system form

I'm learning sap b1. I have created a field in marketing document. When I enter any value in this field and press on tab button, my user defined form should be open with the data from OITM table and find textbox and highlight the record with value which I entered in UDF.I already seen sample of SimpleForm but not getting anything from it. How can I achieve this?I'm using C# in VS. Plz help me with some examples/hints/code. I would be really grateful for your help!
Thanks.
You need to use choosefromlist controll, you should set Choosefromlist to item object 4, then in EditText properties choose this CFL and in the Alias field enter table filed which you want to filter when tab is pressed.

odoo button definition not working before setting value to a mandatory field

I have a button say 'calc_val' when I click on the button I had to pass values to a mandatory field.But my button definition is not working while the mandatory field is empty.Only if I put some values to the mandatory field and after when I click on the button , the button works.The whole thing is in a 'wizard'
Please help.Thanks in advance.
Because in odoo after clicking on any button create or write function called before executing the working function of your button and for create and write you have to fill mandatory fields thats why you have to fill mandatory fields before executing any button functionality.
Hello, vbt
You have to set some default value in that specific field.
After set default value, you can use that button behavior.
And if you want to change that value, they can change also.
May Help this answer.
Thank you.
I have done this by removing the mandatory field and then adding a validation while clicking on the final button in the wizard (For not keeping the mandatory field empty).
If any other answers are available,feel free to post.Thanks

Tosca: How to scan Dropdown textbox which disapper upon opening xScan

I have a problem in scanning a drop-down menu which disappears upon opening the xScan. I need to get the module id of the dropdown menu to verify some test steps.
Do you have any solution with this if it is not really possible to get the module id of the dropdown menu?
Open developer tools in your browser of choice (F12), navigate to the console and input the following code:
var fulldoc='';
var scrollX=0;
var scrollY=0;
document.addEventListener("keydown",function(event){
if(event.key=='q' && event.altKey){
fulldoc=document.body.outerHTML;
scrollY=window.pageYOffset;
scrollX=window.pageXOffset;
}
if(event.key=='w' && event.altKey){
document.body.outerHTML=fulldoc;
document.body.scrollTo(scrollX,scrollY);
}
});
When the window looks the way you would want to scan, press 'Alt + Q', then press 'Alt + W'.
Now your window will freeze and then you can scan your page.
To steer the objects you need to refresh your browser.
You can resolve the issue with below 2 steps
1 - Add some text in textbox which will populate the dropdown below it .
2 - Use Send Keys Module to scroll down and select the value.
I had a similar issue where we had a popup that only appeared when clicking on a text box. The solution we received from the Tricentis trainer was as follows:
Part One
1. Open your application in Chrome
2. Right click the inspect
3. In the inspector window, on the Elements tab, navigate to your html element where it should be (you can do that by clicking on the element and check that you can see the html in the element)
4. Use the debugger to add a break point there, this should pause it and you should be able to see the elements you need to steer it.
5. Once you found the element, you will need the type of element (e.g. div, span, etc), and the class name
Part two
1. Rescan your module and select any element that matches the criteria of your element selected in Part One #5
2. Identify it by only it's class name property and tag
3. Save and close
4. Edit the element in the module view by changing the class name. This should help you steer it
Note: if the element class name is not unique, you might need to use Explicit name.
Good luck

How to get button id and extract a part of it?

Table has many similar buttons. Each of them has different id number. By using Selenium IDE 2.5 I can place these buttons at the top left corner cell of table. I can press that button with selenium by using button class. The thing is - I need that button id number. Can I extract and store it?
For example, particular button id is SYS01_666 and button class is spark-InfoButton.
I need to extract numbers "666" and store it by locating button by it's class. Is it possible?
I'm not sure if it is clear, what is my problem, because I am not a programmer.
Store the id of the button in a variable(eg. ButtonId) using storeAttribute command.
And then to perform any sort of extraction operations on the variable use
Command : store ||
Target : javascript{storeVars['ButtonId']}.substr(x,y) ||
Value : a different variable to store the extracted text