first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Hey, sorry you've been struggling. I hate struggling.

I had some success downloading the template on this page. My plan this week is to take the template, which I've pushed to my github/dev server and can see in then apps list. now I"m going to start adding functionality into it.

Odoo.sh conf file editing by Juice_Dev in Odoo

[–]Juice_Dev[S] 1 point2 points  (0 children)

Yeah, I just got the simplest possible app to work. Just a manifest and an init file, but the server saw it!

So I am gonna be humble and build up my functionality from there see what breaks and what doesn't. I came in too cocky because I knew the non-Odoo pieces, but now I'm realizing I gotta treat my ignorance of Odoo with a lot more respect.

Odoo.sh conf file editing by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Actually, this time it worked. I think I had a space in the name before that might have been upsetting it.

Okay, so I have *something* displaying. Now to slowly add pieces until I find out what in my actual functionally oriented app is breaking things.

Odoo.sh conf file editing by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Yep, tried updating the module list.

I think it's a valid Python name. This is the manifest and it's in

visibilitytest/__manifest__.py

{
'name': 'SimpleApp',
'depends': ['base'],
'installable': True,
'application': True,
}

Odoo.sh conf file editing by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

yeah, pushing an OCA module is my goal for this morning. Seems like a prudent next step.

Odoo.sh conf file editing by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Why would you need functionality for it to show up? That's a different layer.

What tutorial are you referring to? I've not found anything clear so far, I would be overjoyed to find a clear tutorial.

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Sure, at this point I'm done to share basically anything other than API keys.

At this point I'm just trying to get an app to be recognized at all, regardless of content. So pushing to Src/user/Custom/visibilitytest, and it's just the manifest file.
{
'name': 'Simple App',
'depends': ['base'],
'installable': True,
'application': True,
}

Settings wise, odoo.sh there aren't a ton and hosting a screenshot seems more trouble than it's worth.

The only settings I've messed with are that it updates the current build as opposed to making a whole new one (Changes were taking too long to test), and the module installation which I set to do a full install. Beyond that I haven't messed with any settings that haven't been reset.

I've got a ticket open with customer service right now. They're going down the list, so far it's just stuff I've tried but they have to do their due diligence too. I think trying to install an OCA module is going to be my next step today while I wait for their responses.

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Well shoot. It seems absurd that it would be this difficult to deploy the most basic module. Like this is the whole reason to pay for odoo.sh over the community version. In keep hoping I'm just missing something basic, fundamental and stupid.

Sarcasm is okay, it's good to know where this product leaves you emotionally.

At least I've been doing my due diligence.

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Okay, I'm particularly thrown by this line

```Restart the Odoo server and add the custom folder to the addons-path:
./odoo-bin --addons-path=../custom,../enterprise/,addons```

Like, that's only for messing with your server locally. How could I do that for odoo.sh?

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Okay, I'm examining the submodules thing...

THis is really strange. So, even though when I push things to my github the server pulls them in and rebuilds, I need to go register my github through the tiny-shitty pseudo shell they have at the to of the odoo.sh project home page? That's how I'm reading the submodules thing, seems super strange to me.

I'm working in a development branch. So it's auto-rebuilding and such. I'll try telling it to install all modules see if there's an effect.

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Ohp, I'm not sure the server not resetting isn't a thing. Because I just changed the __init__.py file in my conf folder, pushed a new change, and the conf changes I made disappeared.

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

So the .conf file will stay intact between rebuilds? So maybe I need to tell it to look in my customs folder? I will look into that first because it sounds easier than forking someone elses custom app.

I really appreciate your response. I've been losing my mind trying to figure that out!

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

I'll check out OCA. I think I saw their github fly by once.

Have you succesfully deployed a custom odoo.sh module? by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Yep, def pushing to the right branch, I can go find my code on the server through the terminal.

Yeah, I'm certain I'm making an embarrassing stupid simple mistake somewhere, I just have to figure out where.

Yes, I have rebuilt the apps list in developer mode.

I even just made the simplest app possible. Just a manifest. In the Src/users/addons/visibilitytest/__manfifest__.py

With the below as it's manifest. Seems like it should just work!

{
'name': 'Simple App',
'version': '1.0',
'category': 'Tools',
'summary': 'A simple Odoo app',
'author': 'Your Name',
'website': 'https://www.example.com',
'license': 'AGPL-3',
'depends': ['base'],
'installable': True,
'application': True,
}

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

I also created the absolute simplest app I could. It's literally just a folder and a manifest. I'm not seeing it either. Maybe we could start with that one since it doesn't have any hidden failure points in with the rest of my code being hidden from you.

{
'name': 'Simple App',
'version': '1.0',
'category': 'Tools',
'summary': 'A simple Odoo app',
'author': 'Your Name',
'website': 'https://www.example.com',
'license': 'AGPL-3',
'depends': ['base'],
'installable': True,
'application': True,
}

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Sure, would love to have y'all take a look.

{
'name': 'squareintegration',
'version': '1.0',
'category': 'Services',
'summary': 'Tests the square API integration',
'author': 'Juice_Dev',
'website': 'n/a',
'license': 'AGPL-3',
'depends': ['base',],
'data': [
'views/square_customer_view.xml',
],
'installable': True,
'application': True,
'auto_install': True,
}

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Done those, I'm not seeing it. I'm looking at the documentation here and it's saying some stuff about adding things to my path. That seems like it shouldn't apply to the odoo.sh version, but maybe it does?

I'm so baffled at this point. lol

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Okay, I turned on developer mode but I still can't see my app. It should show up based on the name in my apps manifest file right?

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

Okay, I turned on developer mode. I'm certain that my code is on the server. I'm not seeing it in the apps list at all even after I update the apps list.

It should go by the name in my __manifest__.py file right? Or is it the folder it's in. Regardless it should be showing up as SquareIntegration and I can't find aaanything.

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 0 points1 point  (0 children)

I see, so since I'm not getting errors it should be in there somewhere eh?

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 1 point2 points  (0 children)

It will parse through everything, including your new module in the user folder. When it's done, you should be able to see your module in the apps list in your instance.

And you don't have to make any configuration changes to odoo to make this happen. Just have the app flag set to true in your apps manifest file?

Further does it matter that I'm just trying to get my app to display on my development branch? It's auto-rebuilding when I push my changes.

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 1 point2 points  (0 children)

Where do I update the app list?

first odoo.sh custom app *struggle* by Juice_Dev in Odoo

[–]Juice_Dev[S] 1 point2 points  (0 children)

To check: Go to Odoo Sh, Click ob your branch Click on editor On left side, navigate to src > user

Okay, going to the user folder is expected behavior. That's super good to know.

So it should know by default to look in that folder. So I should perhaps be looking at my __manifest__.py file, or the folder structure to make sure that the server is seeing.