From Odoo8 to Odoo11: rmanage report_sxw - module

I update my Odoo8 to an Odoo11. Then I try to reinstall a custom module named probespoke ( https://drive.google.com/file/d/1tcmjwWvigBeVd6yWUHO3-2u0Ane24xvz/view?usp=sharing ) that I sent to you to reproduce the issue. This module use an old module named report which was use until Odoo10.
You can see in probespoke.py that it is import line 2
from openerp.report import report_sxw
and then use line 292
class pb_orders_products_report_parser(report_sxw.rml_parse):
I don't find much information about how to get around this issue.
Maybe there is a solution here (https://github.com/odoo/odoo/issues/24798) but as I am still a beginner in Odoo developpement, I don't really understand what they are doing.
Does someone has an idea?
Thank you very much.

Related

"AttributeError: unexpected attribute 'plot_width' to figure, similar attributes are outer_width, width or min_width " with pandas_bokeh

I am trying to use pandas_bokeh to create a line graph with a pandas dataframe I call bucketed_df
import pandas_bokeh
pandas_bokeh.output_notebook()
bucketed_df.plot_bokeh(kind='line')
for some reason I get the error
AttributeError: unexpected attribute 'plot_width' to figure, similar attributes are outer_width, width or min_width
Im not sure what this is or how toi fix it. I am using python 3.9 and jupyter notebooks
I have a matplotlib linegraph in a cell above it. I am thinking there could be some issue with that.
Also if anyone knows any interactive graphs that are better I am open to switching to a different library.
I'm getting a similar error on a recent install of bokeh==3.0.1.
The error goes away if I install version 2.4.3 (last release) with pip install --upgrade bokeh==2.4.3
It seems there was a breaking change in 3.0.0 that hasn't been addressed yet. If you have time, post this issue at https://github.com/bokeh/bokeh/issues.
temp way:
File ".../lib/python3.10/site-packages/pandas_bokeh/plot.py", line 439, in plot
Add
figure_options['width'] = figure_options['plot_width']
figure_options['height'] = figure_options['plot_height']
del figure_options['plot_width']
del figure_options['plot_height']
can be done like
p=figure(min_width=500, height=500)
or simply,
p=figure(width=500, height=500)
this may help.

ng-mocks giving error about imports with jest-preset-angular

Using ng-mocks 13.5.2 with jest-preset-angular 12 and #ngneat/spectator 11 I am getting the below error any time I try to use MockComponents or MockPipe in my spec file.
I'm not sure why this is happening.
Must use import to load ES Module: /Users/scott/ltr/ltr/node_modules/#angular/core/fesm2020/core.mjs.
at Runtime.requireModule (node_modules/jest-runtime/build/index.js:1011:21)
at node_modules/ng-mocks/webpack:/ng-mocks/webpack/universalModuleDefinition:3:36
at Object.WEBPACK_EXTERNAL_MODULE__8900 (node_modules/ng-mocks/webpack:/ng-mocks/webpack/universalModuleDefinition:10:19)
The issue was reported and fixed, please use the latest version of ng-mocks: 14.0.1 or younger.
The problem was triggered by the node's flag: --experimental-vm-modules, which forces to use imports instead of require, whereas ng-mocks hadn't provided an esm build.
The fix was implemented here:
https://github.com/ike18t/ng-mocks/pull/2848
https://github.com/ike18t/ng-mocks/issues/2846

angular 5 material MatTableDataSource

I updated from angular 4.4.6 and material beta 19 to angular 5 and material 5.0.0-rc0
The application compiles correctly, but executing on Chrome I get
"Uncaught Error: Unexpected value 'MatTable DataSource' imported by the module 'Material Modules'. Please add a #NgModule annotation."
Other material components work correctly, mat-icon, mat-card-content, mat-tab-group, mat-dialog-xxx ...
Could you help me?
MatTableDataSource, MatTable are already in MatTableModule, so no need to import it again in #NgModule.
Remove MatTableDataSource from your shared -> import
Only import it in your component as import { MatTableDataSource} from #angular/material;
Import the module and enter it in your #NgModule Imports section. This is probably in your something.module.ts.
I had similar issue after upgrading to Angular 5, updating all the dependency like typescript, corejs , angular-cli etc to latest version solved the problem.
MatTableDataSource is in the master branch but it isn't added to the current version.
I hope this link can help you to make your own data source with the Abstract class "DataSource" in the module "#angular/cdk/collections"
https://github.com/angular/material2/issues/6036

CRM 2013 Importing Action Failure : sdkmessage With Id = [GUID] Does Not Exist

I am trying to import a managed solution that is using Actions.
The import is failing when trying to create the SDK-message. The message is;
sdkmessage With Id = [GUID] Does Not Exist
I've tried re-creating everything but still get the same problem, has anyone had any success doing this?
More details on our problem:
We have exported a solution that contains an "action" workflow and plugin with SdkMessageProcessingStep registered on that action
When importing this solution to another environment, we recieve an error "sdkmessage with Id = Does Not Exist"
The GUID corresponds to SdkMessageId that the SdkMessageProcessingStep is referencing to in customizations.xml.
As far as I know this issue is not resolved yet. You can vote on Connect.
I assume you have this problem after installing rollup update 1 for SP1. When I installed RU1 and try to import solutions, I got the same error. This can be resolved by updating the organization. Goto deployment manager and select the organization and click Update. This will update the guid's and then the solution imports successfully.

FlashBuilder won't import

I am using FlashBuilder 4.6.
My relevant directory structure is as follows:
>src
+(default package)
pandorica.as
pandorica.mxml
+assets
+com
comBrowse.as
comBrowse.mxml
comLoad.as
comLoad.mxml
comSave.as
comSave.mxml
In the pandorica.as file I have the code:
import com.comBrowse;
import com.comLoad;
import com.comSave;
For some reason the compiler throws the errors:
1172: Definition com:comLoad could not be found.
1172: Definition com:comSave could not be found.
The files definitely exist and are in the exact same format as the com.comBrowse file (which the compiler sees).
Any suggestions as to what could be the matter??
Thanks for your constructive answers.
After playing around with this for FAAAAAAR too long I figured out a fix but still have no clue as to why it was happening. Flex was not allowing me to have the .as and .mxml files in the same directory. I ended up having to change the directories as follows:
>src
+(default package)
pandorica.as
pandorica.mxml
+assets
+com
+as
comBrowse.as
comLoad.as
comSave.as
comBrowse.mxml
comLoad.mxml
comSave.mxml