Cannot access Odoo Studio after "messed up" in properties / widget - odoo

In Odoo studio, I "played" around in the widget where there is a selection of data type such as "float".
I mistakenly changed the type from "float" to something else.
Which now I cannot access into Odoo Studio to changed back the setting
I would like to know how to resolve this error
Thanks a lot!
Odoo 14.0+e (Enterprise Edition)
Error as follows
Traceback:
TypeError: Cannot read properties of undefined (reading 'digits')
at Class._render (https://mycompany.odoo.com/stock/static/src/js/forecast_widget.js:34:124)
at https://mycompany.odoo.com/web/static/src/js/fields/abstract_field.js:209:25

To change it back you can open the view which you modified in studio for example if you modified sale order form, open any sale order in form view and enable developer mode and then from debug icon select Edit view: Form, the form view will be shown go to inherited views tab and you will find many views but you will find view with name start with Odoo Studio click on it and then the the inherited view will be opened and from Architecture tab you will see the xml code so you will look into it and comment the widget change using <!-- --> or delete it.
You can check this YouTube Video

Related

SAP HANA "take over" option grayed out

After opening a Calculation View, SAP HANA Studio sometimes shows the warning "The object is currently opened in read-only mode. Object belongs to multiple workspaces ..."
If you need to modify the Calculation View it is often possible to take over ownership via a button. But unfortunately this time it is grayed out.
How to fix this?
Work-around / fix:
Check out the file / folder
Edit in Project Explorer view
Activate in Project Explorer view

Update a template in TFS 2015 not working for the web interface

I have updated a template of a Work Item in TFS 2015 called User Story. I simply created a rule on a field to set a default value.
To default the field I did the following :
On visual Studio, on the Main Menu, click on Tools / Process Editor / Work Item Types / Open WIT from server.
Browse to the Work Item (User Story in this exemple) Then click OK.
Double click on the field to edit. On the Rules tab. Add a new rule : DEFAULT. From: Value and Value: My Text here.
I can see the change on the user story when I use Visual Studio but not on the Web Portal.
Is there anything that I need to do for the web portal to get get this change?
Could that be a bug ?
Any idea ?
Thanks
I've tested in my TFS 2015.4, and got correct behavior.
Here are my steps for your reference:
Add a new field and make it available on work item form.
Add a DEFAUL rule, the XML looks like:
<FieldDefinition name="test" refname="test.test" type="String">
<DEFAULT from="value" value="mytext" />
</FieldDefinition>
Check this custom field in VS:
Check this custom field on web portal:

Skin theme designer issue (vb.net express 2015)

I'm using custom theme (Net seal by Aeon Hack).
I opened a form, dragged NStheme from toolbar to the form. Project builds successfully.
But when I simply close form and then try to open it in designer mode, I get error:
To prevent possible data loss before loading the designer, the
following errors must be resolved:
The designer cannot process the code at line XX, please see the Task
List for details. The code within the method 'InitializeComponent' is
generated by the designer and should not be manually modified. Please
remove any changes and try opening the designer again.
What am I doing wrong?
I managed to get it working on Visual Studio 2012

User control type not defined

I'm having trouble adding user controls to my project.
I right-click on my project and select Add -> User Control...
I then click Add
I drag a label onto the new user control, and save it.
I build the project, go back to my main form, and drag the control from the Components tab in the Toolbox onto the form.
I see the control, but I get an error:
Type 'crm.UserControl1' is not defined.
If I do this with a blank project, it works. I'm not familiar enough with vb.net or visual studio to understand what's going wrong.
If I double-click the error, it brings me to this line in the generated designer code for the form:
Me.UserControl11 = New crm.UserControl1()
and says that crm.UserControl1 is not defined. If I change it to Global.crm.UserControl1, it works, but obviously this code is overwritten when I fiddle with the designer.
Any ideas, or pointers to get me started in the right direction? Thanks in advance.
My main form had the same name as the root namespace. This is what caused the problem.
Kind of late to the party with this one but I had this problem and I think that the issue was due to the controls being built in a more recent framework than the one that I was using.
Basically my custom controls were built in 4.7, but my project was being built in 4.5.1
Once I changed the current build so that they both were the same it compiled happily.
As far as I know, it is kind of accessibility issue because you are able to solve the issue when you try to access the object globally. I think when you drag and drop the control, the definition codes of the control in the designer class automatically generated with private accessibility but I don't know why. You could try to change it as public. I hope this will work.
Way late to this party. I fixed it by referencing it in the aspx page with the following as it was missing.
<%# Register Src="~/Controls/mycontrolname.ascx" TagPrefix="ucControl" TagName="MyControl" %>

Can't see or add Website Data Sources in RDLC report in ASP.NET MVC

In the RDLC report, in Design view in Visual Studio 2008, we don't see anything in the Website Data Sources tab and the button to Add New Data Source is grayed out. Only the Refresh button is enabled, and clicking it doesn't do anything. Our business logic layer returns Lists of business objects and the business logic and business object projects are both referenced by the MVC project. This is an MVC app, so there is no App_Code folder.
How do we get our business objects to appear in the Website Data Sources list so we can drag and drop fields from the object onto our RDLC report?
I think I suffered the same problem as this.
I solved this by closing all open VS windows, cleaning, rebuilding the solution then adding a new WebForms page (yes I know its MVC) but it then seemed to trigger a refresh in something and the data sources showed up when we reopened and editted the rdlc file.
I have also been frustrated by this, using VB.NET, but this should fix it:
In addition to the reference to:
Microsoft.ReportViewer.Winforms or
Microsoft.ReportViewer.WebForms
You need to also add a reference to:
Microsoft.ReportViewer.Common
The Data Sources panel is still blank, but when you select Add Dataset, you'll see the correct options.
Try this...
https://msdn.microsoft.com/en-us/library/yft2c9ad.aspx
On the menu bar, choose View, Other Windows, Data Sources (or choose the Shift+Alt+D
I had the same problem in Visual Studio 2008. The solution I accidently found was to do the following:
1 - Launch VS 2008
2 - Open Solution
3 - Open report file (rdlc) and make sure "Website Data Sources" pane is showing
4 - Close VS 2008 (with the rdlc "having focus"
5 - Launch VS 2008
6 - Open Solution
You should now see the data in the Website Data Sources pane
One of the problems I had was that my DataSource class didn't have a parameterless constructor...after the parameterless constructor was added "the class" showed up in the DataSource list.
Small detail, but lost some time to figure it out. :)