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
1
vote
1 answer

Make employee field readonly from configured fields(many2many field)

I am using odoo version 16, earlier I am using odoo version 11 and i want to upgrade my code from v11 to v16. I am stuck at one method where I want to make some fields read-only from defined configured fields(many2many field in setting) for a…
Pawan Kumar Sharma
  • 1,168
  • 8
  • 30
1
vote
2 answers

Dynamic domain for many2one field without onchange

I need to add dynamic domain for many2one field based another(bool) field without onchange function .. my code below doesn't work .. is_bus_registered = fields.Boolean( string='Bus Registered', required=False) def _domain_att_policy(self): …
omar ahmed
  • 635
  • 5
  • 19
1
vote
1 answer

How to use the value of standardFieldProps in an Odoo Owl component?

I am trying to use a new owl component in an existing Odoo app, following the tutorial here:. I want to display the contents of the field in the view but the field actually contains some JSON so I want to process it in the Javascript of the…
kpg
  • 7,644
  • 6
  • 34
  • 67
1
vote
1 answer

How to add a search domain to an existing search filter in Odoo?

I added a new title field to a Sales Order. Now I want to also be able to search by that field in the sales order list view. If I run the following code, it works, but it seems like an overkill:
MrWater
  • 1,797
  • 4
  • 20
  • 47
1
vote
1 answer

Remove pricelist button odoo16

I cannot find where to remove the pricelist button on my website. In Odoo 15 there was an option to remove it, but in odoo 16, I've only figured out to remove it by taking it out of the html/css code. Is there any other way? I thought it could be…
Sebby
  • 11
  • 1
1
vote
0 answers

error when trying to change language ODOO

I tried to change the language from English to Portuguese and now the pages do not render. I tried to use "regenerate asset bundle" ", but it didn't work. got the following problem: I tried to use "regenerate asset bundle"
1
vote
1 answer

Adding an Owl component to an existing view in Odoo 16

I have an existing Odoo 16 application with a working view that contains the following inside a Form view:
kpg
  • 7,644
  • 6
  • 34
  • 67
1
vote
1 answer

Odoo 16 - Website editor - I cannot edit on my website

I use Apache as reverse proxy, I'd installed Website on Odoo 16 and when I try to go to Editor it doesn't resolve the page. At developer tools of my browser appears this error: Mixed Content: The page at…
eperezs
  • 11
  • 5
1
vote
0 answers

How to substract Commission amount from the total price in sale.order.form in odoo16

I want to substarct commission 8 from total amount12. How to do this in odoo16. which function should need to override to achive this. I overridden _compute_amounts() method. but the it donot reflect in the sale.order.form. Help me to solve this.
1
vote
1 answer

How to patch JS function that doesn't belong to a class

I'm a complete JS n00b and I'm really struggling to figure this out. I'm trying to change the default colors used in graphs. There's a 'getColors' functions in web/views/graph/colors.js that simply returns an array of colors that are used for this…
dwyatt
  • 111
  • 1
  • 6
1
vote
1 answer

Element cannot be located in parent view: Why im getting that error?

Hi I am trying to call a function from xml view using function tag. Im getting the next error and I dont get it: Element '' cannot be located in parent view. Any help would be apreciated. XML…
Andrew
  • 23
  • 5
1
vote
1 answer

Create an odoo order and invoice it via external API

I'm trying to integrate an third party application with odoo, the application should create the order and confirm it, to generate the invoice, the order creation works perfectly, when executing the create_invoices nothing shows and no errors…
1
vote
0 answers

Odoo - redirect to external link without modifying source code

A friend of mine has an Odoo website linked to many other functionalities but that I don't think are relevant for the case. His problem is that he would like to change the URL of one of the button on its website to an external link. I looked around…
mdc123
  • 196
  • 1
  • 10
1
vote
1 answer

Using invisible attribute with '&' in Odoo view

I am trying to make a button in an Odoo view invisible when two conditions are both met.I am able to make the field invisible when either of the conditions are met like this: attrs="{'invisible': [('status', '!=', 'validated'),('api_result', '!=',…
kpg
  • 7,644
  • 6
  • 34
  • 67
1 2
3
12 13