This question has been flagged
1 Reply
1660 Views

(v11 CE) I have a number of comma-separated paths in my addons_path setting in odoo-server.conf that I would like to list on separate lines for clarity of reading. For example:

addons_path = [

    /odoo/odoo-server/addons,

    /odoo/odoo-server/custom_one,

    /odoo/odoo-server/custom_two,

    ]

Of course, I've tried the above and it did not work (also { } did not work either). Any thoughts?

Avatar
Discard
Best Answer

Yes, you can do this but it should be formatted with out [ ] and no comma on the last line.

addons_path =/odoo/odoo-server/addons,
    /odoo/odoo-server/addons,
    /odoo/odoo-server/addons/custom_one,
    /odoo/odoo-server/addons/custom_two

Avatar
Discard
Author

So much easier to read -- thank you!