Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

new addon created chases when accesing in list view #333

Open robert2206 opened 7 years ago

robert2206 commented 7 years ago

FATAL EXCEPTION: main Process: com.odoo, PID: 18381 java.lang.NullPointerException at com.odoo.core.utils.OControls.setGone(OControls.java:61) at com.odoo.addons.products.ProductsTemplate$2.run(ProductsTemplate.java:119) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method)

pathob commented 7 years ago

Too few information...

robert2206 commented 7 years ago

I've created a addon for product template following this tutorial http://mobile.odoo.co.in/v2/getting-started/working-with-odoo-mobile/components/addons.html#creating-addon-with-odoo-mobile, then unistalling app and compile a new version from android studio, i launch app and i see new module created in sidebar but when i accessing chash app.

robert2206 commented 7 years ago

I debug my app, and what I could see is that here is the problem, but I do not know why captura de pantalla de 2017-07-24 08-45-33

pathob commented 7 years ago

First of all, you are not using the latest version of the framework, which makes it harder to help you.

But basically, the method OControls.setGone(...) only contains the following two lines:

View view = parent_view.findViewById(resource_id);
view.setVisibility(View.GONE);

So either the parent_view you are passing to this method is already null or more likely, this parent_view does not contain a view with the given resource_id.

robert2206 commented 7 years ago

I clone the master branch from this repository https://github.com/Odoo-mobile/framework.git, this is not a latest version?, thanks for all @pathob

pathob commented 7 years ago

So either the parent_view you are passing to this method is already null or more likely, this parent_view does not contain a view with the given resource_id.

You should concentrate on this... one of your views is null...

euroblaze commented 6 years ago

Did you fixed your problem? I have the same crash issue when i start the app after creating new addon

naitikvithlani commented 6 years ago

@euroblaze ,

I have added many addons in this, it works very good. (Find attached screen shots)

image

euroblaze commented 6 years ago

Hello @naitikvithlani , Can you help me add too ?

naitikvithlani commented 6 years ago

Sure, Please send me an email about your requirement and the issue you facing.

haithem7 commented 6 years ago

can you please help me to make my application synch module entrepot!! dahechhaithem7@gmail.com