Package Details: odoo-nightly 17.0-14

Git Clone URL: https://aur.archlinux.org/odoo-nightly.git (read-only, click to copy)
Package Base: odoo-nightly
Description: Odoo. Open Source Apps To Grow Your Business.
Upstream URL: https://odoo.com/
Licenses: LGPL-3.0-only
Conflicts: odoo, odoo-17, openerp
Replaces: odoo, odoo-17, openerp
Submitter: HLFH
Maintainer: HLFH
Last Packager: HLFH
Votes: 2
Popularity: 0.083544
First Submitted: 2024-05-12 10:04 (UTC)
Last Updated: 2024-05-14 07:43 (UTC)

Latest Comments

« First ‹ Previous 1 2

HLFH commented on 2024-05-12 19:29 (UTC)

Fixed as well, and I fixed the stop for the systemd unit.

SamWhited commented on 2024-05-12 15:06 (UTC)

Note that ExecStartPre=/bin/bash -c '. /var/lib/odoo/.venv/bin/activate' and the line in the post-install message about sourcing the venv aren't doing anything. They don't hurt either, but you're already calling odoo from within the venv which will already use the venv. Also IIRC the exec directives in systemd run in different sessions, so you're sourcing the venv, exiting, and then running the command. Doesn't hurt anything though, it's just unnecessary.

Thanks again for doing this, it's so nice to be able to run odoo locally again without having to manually install it!

HLFH commented on 2024-05-12 14:58 (UTC)

Fixed

SamWhited commented on 2024-05-12 12:02 (UTC) (edited on 2024-05-12 12:06 (UTC) by SamWhited)

Last note for now; this package doesn't appear to actually install odoo. When you do the install you need to use --prefix option, not destdir. Otherwise the existing prefix is still being used and destdir is being prepended so you'll install to $pkgdir/home/you/whateverbuilddir not to the actual build environment.

With prefix you'll want to specify the full path, so --prefix="$pkgbuild"/var/lib/odoo/.venv or wherever it's going.

If you're installing it into the venv, it might also be easier to just leave off this option which will install into the venv by default, then when you copy it over it's already in there.

SamWhited commented on 2024-05-12 11:27 (UTC) (edited on 2024-05-12 12:33 (UTC) by SamWhited)

Also, a few other nits:

I don't think this will start without postgresql so the service file should likely specificy:

Requires=postgresql.service
After=postgresql.service

You'll also need to change the admin_passwd in the config, so it might be worth showing a post-install message to tell the user about that. Also, I think before first run you'll need to manually run odoo with -i base to initialize the database (I think? Maybe if the admin password is already set it does this for you?). This should probably be included in any post-install message too, but should be experimented with first to make sure it's required, I don't know odoo stuff well enough to know.

SamWhited commented on 2024-05-12 11:04 (UTC)

The checksums are failing again; if this is a nightly package the check on the file that changes should be skipped. Thanks!