Use this tag for version specific questions about Odoo 15 - the suite of open-source business applications written in Python. When using this tag also include the more generic [odoo] tag where possible.
Questions tagged [odoo-15]
503 questions
1
vote
1 answer
TypeError: Many2many fields library.book.partner.channel_ids and res.partner.channel_ids use the same table and columns
I'm trying to develop simple library app with Odoo but I get an error with manytomany relationship.
Here are classes:
class Book(models.Model):
_name = "library.book"
publisher_id = fields.Many2one(comodel_name="library.book.partner",…

Alioune
- 11
- 2
1
vote
1 answer
internal server error in customized receipt
I am working on odoo version 15;
trying to customize receipt in POS module ;
but I have an internal server error (500) ..
My code as following :
manifest.py
...
"license": "OPL-1",
"depends": [
'base',
'point_of_sale',
],
…

user1261494
- 139
- 1
- 10
1
vote
1 answer
Odoo v15 - Print a report with an Automated Action
I am trying to use an automated action and a python expression to print a report which features a package's barcode when that package is initially created. I have my report setup with the barcode and other information I need. I have tried several…

Brendan Cariota
- 21
- 1
1
vote
1 answer
Odoo: error 98 Adress already in use, how to fix?
Odoo 15, installed on ubuntu server in docker container
i didnt installed it myself, admin tell me that he cant solve this problem
site1@site1:/var/docker/odoo$ docker exec -it odoo bash
odoo@f6740a7479b8:/$ odoo
2022-07-22 20:23:53,743 59 INFO ?…

Wald Sin
- 158
- 11
1
vote
2 answers
What is the best way to deploy Odoo with Docker?
I am deploying Odoo 15 with Docker, and I am using the docker-compose.yml recommended in https://hub.docker.com/_/odoo. As you can see, the following volumes are created for the web service:
volumes:
- odoo-web-data:/var/lib/odoo
-…

forvas
- 9,801
- 7
- 62
- 158
1
vote
2 answers
Odoo: is it possible to color Many2Many field by function?
i want to colorize this cells, module is "Calendar".
also, this place in views:
i can do this with adding
options='{"color_field":"color"}'
to field parameters, but it need to calculate color by checking, is attendee accepted or declined. If…

Wald Sin
- 158
- 11
1
vote
1 answer
Getting id from URL to filling wizard form, Odoo
I want to get id from url when i click the button.
This is URL, id is 69:
http://localhost:8069/web#id=69&cids=1&menu_id=385&action=507&model=inventory.menu&view_type=form
I need to get this id in many2one field.
This is my wizard py file:
from…

Enes Kara
- 81
- 6
1
vote
0 answers
Odoo15 : Displaying different views in different contexts
I'm trying to display a form view of a model returned by an action in a menu and display another form view of the same model in a different context ( by clicking on a button) but I'm getting the two different views displayed side by side.
First, I…

Ka_
- 181
- 1
- 2
- 8
1
vote
2 answers
Odoo: how to set default field for many2many field by id?
i want to set default value in many2many field for example:
that field in models.py:
# alarms
alarm_ids = fields.Many2many(
'calendar.alarm', 'calendar_alarm_calendar_event_rel',
string='Reminders', ondelete="restrict",
…

Wald Sin
- 158
- 11
1
vote
2 answers
Odoo: How to rename "New" label, in odoo module, in new object form?
when i create a new meeting in calendar module, it shows like "New"
i want rename that label, for example, to "New meeting"
is it possible? and where can i find this place in code?

Wald Sin
- 158
- 11
1
vote
2 answers
How can I add an icon for my third-party Odoo app
I have developed an app that I want to publish in the Odoo App Store. The issue I am now facing is how to add an Icon for it that will be seen in the Apps tab once the app is installed.

kpg
- 7,644
- 6
- 34
- 67
1
vote
1 answer
How to add Binary file to email attachment in Odoo 15
Good day,
I have a binary field that holds an xml file which i generate with etree.Element
batchfile = fields.Binary("XML Batch File", readonly=True)
So i want to attach this Binary file so that I email it, but how can I do this?
def…

Abraham Kalungi
- 45
- 1
- 10
1
vote
1 answer
Calculate leaves days in Odoo CE
using HR Payroll Community.
Trying to fix this Code.
The code of Calculating leaves in Payslip:
@api.model
def get_worked_day_lines(self, contracts, date_from, date_to):
"""
@param contract: Browse record of contracts
@return: returns a…

Bill S.
- 23
- 3
1
vote
1 answer
Install addons on Odoo V.15 with Docker
I am trying to install custom modules from OCA GitHub to my initial setup which is installed via Docker container.
I am quite lost on how to perform to install the modules in my environment.
I have done my initial odoo setup up and running via…

jakarina
- 13
- 1
- 6
1
vote
1 answer
How to extend/inherit form_view.js in odoo 15
Am using Odoo15 customized in file web\static\src\js\views\form_view.js as below method:
form_view.js
odoo.define('web.FormRenderingEngine', function (require) {
"use strict";
process_group: function($group) {
…

kinjal birare
- 33
- 4