Questions tagged [odoo-16]

Use this tag for version specific questions about Odoo 16 - the suite of open-source business applications written in Python. When using this tag also include the more generic [odoo] tag where possible.

187 questions
0
votes
1 answer

How to pass an instance variable from a class to another in odoo

from odoo import api, models, fields, tools from odoo.tools.misc import formatLang class SaleOrder(models.Model): _inherit = 'sale.order' commission = fields.Float(compute='_compute_commission') @api.depends('user_id.commission') def…
0
votes
0 answers

How to make fields editable only that are selected in configuration(Odoo16)?

I have a many2many field defined on model "ir.model.fields" set in configuration screen. Where manager can select fields that should be editable by user. Now , my complete form is readonly but I want to make only that fields editable which are…
0
votes
1 answer

How to replace button "powered by odoo" in web.login_layout odoo v16?

I want to replace the button which is standard in odoo. In earlier versions, for example in 14, it was possible to do it in the way that I show below. However, it doesn't work now, and I still don't know how to properly remove the button and replace…
0
votes
1 answer

Odoo 16 - Uncaught Promise > Invalid props for component 'ProjectTaskFormController': unknown key 'model'

I am getting this error when trying to open a Task from the Map view of Tasks (in a Project or otherwise). See attached screenshot. I have extended the project.task model and some of its views in my own code so I am willing to accept that it might…
kpg
  • 7,644
  • 6
  • 34
  • 67
0
votes
1 answer

How can I prevent 't-out' from escaping my Html code?

How can I prevent t-out from escaping my Html code? I am trying to display an Html code on my Website. In older Odoo versions I used t-raw and it worked fine. Now in Odoo 16 t-raw is deprecated and t-out is the way to go. But t-out always escapes my…
alex_pdc
  • 1
  • 1
0
votes
2 answers

How to change field input border color in odoo 16.0?

In the 16th version of Odoo, for some reason, my input field became transparent. It can be found if you know approximately where it is located and click on it with the mouse, and then only the lower border of the stroke of this field will…
0
votes
1 answer

Update records on one2many fields in wizard for odoo16

Geting Issue 'TypeError: unhashable type: 'dict' for insert values in one2many field from onchange method in odoo16 My code is below: class EmployeeAddWizard(models.TransientModel): _name = 'employee.add.wizard' line_ids =…
Pawan Kumar Sharma
  • 1,168
  • 8
  • 30
0
votes
0 answers

Track last made changes in html field and make highlight with different color for last updated changes in odoo16

I want to track last updated changes in a html field and highlight the changes with different color. Below is what I have tried: content = fields.Html() Form
Gautam Bothra
  • 565
  • 1
  • 8
  • 23
0
votes
1 answer

Odoo Error.: "Inherited" field is not exist

First of all, everything i make is working on my local computer but this error happen when i tried to update this module inside of a server. I add some fields to res.company class InheritAccountMove(models.Model): _inherit = 'res.company' …
Selman
  • 274
  • 2
  • 4
  • 17
0
votes
1 answer

How can i make a "Download PDF" button inside of Odoo?

I have a api and this api returning a binary pdf. This pdf is changing everytime when a request come and i don't want the store it. Simply i want the create a button and this should trigger a function. Function should be take my api response (binary…
Selman
  • 274
  • 2
  • 4
  • 17
0
votes
0 answers

Odoo v16e selected Partners break up on a customised report

I'm customizing a report through configuration->Management->Accounting Reports and I need a breakup of a few specific partners' balances not all. I tried putting desired partner's Id into the domain but I get the error "AttributeError: 'bool' object…
0
votes
1 answer

Getting this error while upgrading website_sale on Odoo v16

Element '' cannot be located in parent view View error context: {'file': '/home/developer/Documents/odoo_16/Odoo/addons/website_sale/views/templates.xml', 'line': 1, 'name': 'Sort-by…
0
votes
1 answer

Why can't I modify my shop page in Odoo 16

I can not seem to figure out how I can modify the styling of the shop page on my Odoo website. I've been trying to look it up online but I do not see anyone else mention it and I do not see how I can modify it in the documentation or on the…
Sebby
  • 11
  • 1
0
votes
1 answer

Odoo 16 (Fresh Install) - Error while trying to create a new contract for any employee

Today, I have installed a fresh copy of Odoo 16 community version. After setting up basic things in accounting module I have started setting up Employees module. After defining departments and job positions, I have started adding employees.. Then I…
Hammod
  • 21
  • 2
0
votes
0 answers

How to export "extra variant media" from odoo website module

I dont see any way to export those extra images. what is the id of those images, i would prefer to use an api to scrape the images
Tony
  • 76
  • 6