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
get value of field from an existing module in odoo 15
every product in odoo should have quantity minimum
i have created product and i set the quantity min to it in reordering rule
what i want to do is get the product name and it's quantity min in python
this is my python file
from odoo import…

Zoro
- 47
- 5
1
vote
0 answers
How we add or change formula for debit and credit in account.move file (odoo14)
I want that the debit and credit value is calculated from subtotal directly not from quantity * price_unit, so I will change its formula by this code..
def _get_price_total_and_subtotal(self, price_subtotal=None, quantity=None, discount=None,…

Muhammad Usman
- 11
- 2
1
vote
1 answer
how to make migration for custom module from odoo 15 to 16?
i try to make migration for a custom report from odoo 15 to 16 i have now error on view side and thier is now bugs but when press the buttoun i got this message :
AttributeError: 'stock.picking' object has no attribute 'move_lines'
i tried to make…

a.hussin
- 11
- 2
1
vote
0 answers
How can I connect Amazon in Odoo?
Hi developers I have a problem, I have tried to sycronize Amazon with Odoo but when I link an Amazon account I mark this error
"An error was encountered while synchronizing Amazon orders. ForbiddenRequestBlocked: Developer is blocked from making…

Andres Briseño
- 21
- 2
1
vote
1 answer
Why compute method is throwing error only in tree view?
I'm using compute method to add records to the one2many field and it's working fine in form view but not in tree view. Can anyone help?
@api.depends("odoo_product_id")
def _compute_offers(self):
for rec in self:
if rec.odoo_product_id:
…

Ravi Singh
- 307
- 2
- 13
1
vote
1 answer
Odoo 15 Find tax_ids Inside the account.move.line (Invoice) Model
Good day, hope everything's well.
I'm trying to find the value of tax_ids (Many2many field) inside the account.move.line model but i can't seems to find anything. I already access the psql of the database but i cant find tax_ids too.
I accessed that…

altela
- 306
- 2
- 13
1
vote
2 answers
How to limit quantity of lines in a notebook [Odoo 15]
I want to limit the quantity of "Order lines" to 2 products only (When 2 products are loaded, I want the "Add a Product", "Add a section" and "Add a note" buttons to disappear automatically).
I tried to use an @api.constrains but it only validates…

odoo newbie
- 179
- 10
1
vote
1 answer
i can't add select options to an existing selection field odoo 15
i have declared two selection fields
x = fields.Selection([('x A','x A'),('x B','x B')],string='X')
y = fields.Selection([('0','0')],string='Y')
then i tried to add selection options to y field on onchange
@api.onchange('x')
def…

Zoro
- 47
- 5
1
vote
0 answers
FIX Calculation error on currency - Invoice | Odoo
I uploaded some invoices in bulk to odoo, and I have a problem with the currency. Currently the currency is in USD but the values are being calculated with MXN. The lines of the invoice are in USD but the total appears with MXN. To correct it I can…

Legna
- 460
- 6
- 19
1
vote
1 answer
pyproject.toml error: I am trying to install odoo 15 on ubuntu
I was trying to install Odoo 15 on ubuntu device. I followed the steps in this link (https://www.cybrosys.com/blog/how-to-install-odoo-15-on-ubuntu-2004-lts-server), but I got the above error in step 7.
Preparing metadata (pyproject.toml) ... error
…

CoolProgrammer
- 11
- 1
1
vote
1 answer
Field x does not exist in model "res.partner" Odoo15
i would like to know why im recieving this error even thought my source code is correct.
the error :
Field "contact_prenom" does not exist in model "res.partner"View error
context: {'file': '/opt/odoo15/custom-addons/om_/views/x.xml',
'line': 3, …

Zoro
- 47
- 5
1
vote
1 answer
Show related field from product template on account move
I'd like to show intrastat_id field that is on product form in account move (when creating invoices)
I'm inheriting it like this
class ProductTemplate(models.Model):
_inherit = 'account.move.line'
product_template_id =…

Matija Amondi
- 59
- 5
1
vote
2 answers
Migration odoo, Style error Could not get content
I upgraded the database to Odoo 15 but I still got this error:
Style error
The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.
Could not get content for…

m3asmi
- 1,252
- 1
- 16
- 36
1
vote
1 answer
Run code After write function (override) in odoo
I've made a module to run code when Save (write) action is made when editing products (product.template). The purpose is to request an external URL to update this product in my website (a script that updates website using API).
The odoo function…

pauet
- 25
- 1
- 8
1
vote
2 answers
Odoo many2many checkboxes domain not working
I have these models
The model event.booth always has a halle_id
The model order.wizard has an event_booth_id and event_booth_ids
Now, in the view form order.wizard in the many2many checkboxes widget from event_booth_ids I only want to show the…

unnamed-dev
- 165
- 8