Odoo is a suite of open-source business apps written in Python and released under the LGPL license since version 9 (previously AGPL). It is used by 2 million users worldwide to manage companies of all different sizes. The main Odoo components are the server, 260 core modules (also called official modules) and around 4000 community modules. ODOO 12 is the newly updated version so far in the ODOO series.
Questions tagged [odoo-12]
934 questions
-1
votes
1 answer
How to get the sum of spcific fields in odoo 12
I am trying to get the sum of loan_amount fields for all the requests of the employee and then subtract it from the limitation,
I get the sum and employee_id using this query:
self._cr.execute("SELECT sum(h.loan_amount) AS amount ,h.employee_id …

jenan
- 1
- 2
-1
votes
1 answer
How to make Wizards take a variable value from a model?
I have a problem which I'm not finding the solution to. I have a module which works on property management. I have three files that work together, one with infom one a wizard and the other the invoice view. The wizard takes some info and places to…

Jugert Mucoimaj
- 339
- 1
- 2
- 14
-1
votes
1 answer
How show only two decimals from a function
I have a function that give me a quantity from a product but it displays 3 decimals and I want to show only two
I tried this:

Oscar Vardela
- 67
- 5
-1
votes
2 answers
Hide Row in tree View Odoo
enter image description here
In this Case , How can I remove all the rows not containing "Achat" values .
and thanks.
Just this tree view is in the form view

Koussay Abdouli
- 1
- 3
-1
votes
1 answer
Context for type of fields Referance
I have a question which has no relation to this video content at all.
I want to make a context of field of type reference
The field in module quality_control of oca (odoo 12)
The field is
( object_id = fields.Reference(string='Reference',…

guettaoui hakim
- 1
- 1
-1
votes
1 answer
Can not Integrate Advance Search Tree View to Module Odoo 14
I'm Odoo Beginner
I try to integrate third party app (Advance Search View ver 12) to my Odoo ver14. But after install app I can not see any change in my Module. Expect as below
https://i.stack.imgur.com/y11DS.png
Please let me know where should I…

Luan Truong
- 1
- 2
-1
votes
1 answer
Missing sql table mail_thread in Odoo DB
I keep seeing this error in my log file: Odoo Server 12.0:mydb:
ERROR:odoo.sql_db:bad query: INSERT INTO "mail_thread" ("id") VALUES (nextval('mail_thread_id_seq')) RETURNING id#012
ERROR: relation "mail_thread" does not exist#012
LINE 1: INSERT…

techdude56
- 1
- 1
-1
votes
1 answer
Odoo: updating related field without changing it's original value
I am trying to update field price in model custom.sale.line that's related to field product_id.sell_price in model custom.price but without affecting the original value of the latter (in other way i want the cashier to able to change the value on…

Ahmed Abd El Latif
- 233
- 6
- 20
-1
votes
1 answer
how to build odoo-12.0 for windows as an executable software?
enter image description hereI want to use odoo-12.0 locally, but I don’t want to install the python environment, so I want to package odoo-12.0 into an exe executable file. When I use pyintaller to package it into an exe, and copy odoo, addons,…

xhaihui
- 1
- 1
-1
votes
1 answer
How to pass res_id:
I have a button in my form view from which a pop up window is open for a particular employee..on this pop up window.. i have a new button for employee salary detail. which brings detail about salary of employee on line level...but when i open pop up…
-1
votes
1 answer
odoo12 how to show success message without break
everybody, please help
in odoo, i know that the error message showing was use raise UserError(), but this function will break the function and rollback in database, what i want to do is just simplely show the successful message to user without…

Tony Tang
- 3
- 2
-1
votes
3 answers
in odoo can i relate Many2one relation to a specific field apart from _rec_name
class College(models.Model):
_name = 'module2_college'
_description = 'College Info'
_rec_name = 'clg_name'
clg_name = fields.Char("College")
stream = fields.Many2one('module2_course',"Course")
class Course(models.Model):
_name =…

Abhishek S
- 27
- 6
-1
votes
1 answer
Create item in Odoo V12 action dropdown
I'm trying to create a new item in this dropdown list for Odoo V12, but I'm nos sure how to define the template/record ... I need to generate a new option for calling a python function.
The model of the view is the next one: education.group
The…

arevilla009
- 429
- 3
- 18
-1
votes
2 answers
Odoo Server Error when i try to install my module
I'm new on python and odoo and i'm trying to build a module ,
i had this error when i try to install my module
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 656, in _handle_exception
…

Hello_world
- 65
- 1
- 3
- 17
-1
votes
1 answer
How to use redis lock to prevent asynchronous Job in Python
Currently I am using Redis to perform the QueueJob(Priority Queue) in Python code(Odoo) and I meet the asynchronous problem (There will have some jobs doing the same task - update/delete in the same record at the same time).
As I read from Redis…

Quan Bui
- 1
- 1
- 4