Questions tagged [odoo-12]

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.

934 questions
2
votes
1 answer

Model not found in odoo 12

so I made a custom hospital module, but an error occurred when the module was upgraded, resulting in an error like this. Error: Odoo Server Error Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py",…
Admaja
  • 49
  • 6
2
votes
1 answer

Make invisible a field when one of the options is true in Odoo

I want to make invisible a field if one of those options are true, I don't know if this is possible. I try:
Azarpar
  • 23
  • 2
2
votes
1 answer

open ir.actions.report in new window

as mentionned in the title, I need to open a report in a new window. I know that we can do so using target with act_window but I am stuck on how implement that to open a report.
Bashir
  • 2,057
  • 5
  • 19
  • 44
2
votes
2 answers

Odoo 12: How to send a Inbox message to Specific User?

I need to send a inbox message when I call this function, but I just get error ... from odoo import models, fields, api, _ class MyModel(models.Model): _inherit = ['mail.thread'] def inbox_message(self): notification_ids =…
Keiko Mori
  • 157
  • 2
  • 15
2
votes
1 answer

Odoo fixed checkbox

i'm creating fixed value to be view in my checkbox First i create new model containing those value request = fields.Selection( [('t1', 'Test1'), ('t2', 'Test2'), ('t3', 'Test3'), ('t4', 'Test4'), ('t5', 'Test5'), …
mira
  • 45
  • 6
2
votes
2 answers

Domain filtre doesn't have effect (odoo12)

I try to do this: When an invoice is created, if the customer is "x" some journals must be restricted in "Register Payment" form This is my .py model from odoo import api, fields, models class AccountPayment(models.Model): _inherit =…
2
votes
1 answer

How to get currently using module/App name in ODOO 12

I want to get the name of the currently used module in ODOO. suppose there are different module named A,B,C,D. And each module has the same models like accounts, crm, hr, payroll, etc. so I want to make changes in the payroll model of A module…
Shahal
  • 115
  • 1
  • 12
2
votes
1 answer

Cant figure out how to import one2many and many2one models

Here's the code of a custom model i made, the first class is a model of stocks and general information. The second class contains the daily prices of each of the stocks in the first class for 10 days. The relational field that connects the two is…
Adam778
  • 23
  • 3
2
votes
1 answer

Why am I getting "Error while validating constraint None"?

I'm developing a new module to Odoo 12. I made the respective wizard and I know it's fine because I've install the module with no problems until here. But, now I made the view for this model (it's a wizard form), but when I try to update the model,…
southernegro
  • 384
  • 4
  • 20
2
votes
1 answer

How to open a FORM VIEW by using Server Actions?

Can I open a FORM VIEW via a button defined by using Server Actions?
Leon Nguyen
  • 187
  • 1
  • 16
2
votes
1 answer

how can we make a form in the website editable odoo 12? (edit/save in form using js/jquery)

I've created a form view in the website for the portal user. I'm fetching the datas from a model A. What I'm trying to do here is, a user can see the already fetched data using (t-field in span) and the user needs to edit and save the resulting data…
Raihan
  • 193
  • 2
  • 21
2
votes
1 answer

Call qweb template inside odoo data template

I am trying to make an OTP service for login and registration. So I made a module for otp service that is working fine. But here for UI, I made and template that should be called inside the login page to visible the otp box and otp send button.…
Almabud
  • 152
  • 2
  • 9
2
votes
1 answer

Filter employees by project in odoo 12

I'm customizing the Odoo project module, in the module, we have Projects that have tasks assigned to employees, I need to have a dropdown of employees based on the project selection, but because there isn't a direct relation I have to search all the…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
2
votes
2 answers

Odoo12ce domain problems with self and Many2oe field

I am currently developing an odoo12ce module which must contains a table with dogs registers and its father and mother of the dogs (something like a purebred). In the field father_code I want to get just the male dogs and the ones who live in the…
Jorge
  • 61
  • 3
2
votes
1 answer

Odoo: on create save current ID in a many2one field of another model

what I'm trying to do is I'm creating a custom.modify.price model for products, where I'm able to choose a certain criteria to result in a selection of products, then I fill in a percentage that affects the prices of all the previous selection. I…