Questions tagged [odoo-15]

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.

503 questions
2
votes
1 answer

How can i fetch data from tree view made by one2many fields and set it as an onchange function for another field in odoo 15?

I have inherited res.partner model and added my own one2many fields which is shown below : from odoo import api, fields, models class CustomContacts(models.Model): _inherit = "res.partner" x_brand_ids = fields.Many2many('res.partner.line',…
2
votes
2 answers

How to register payment for invoice from python in Odoo v15 CE

I am trying to make a single action on a sales order in Odoo v15 CE that creates an invoice for the sales order and immediately posts it and registers a payment for it. The way I'm doing so is through a wizard method that looks like this: def…
Greg KP
  • 23
  • 5
2
votes
2 answers

ValueError: External ID not found in the system: website.assets_frontend

I am in the process of upgrading from Odoo V13 to V15 and I am getting an error when building my staging branch because of a custom module I wrote to change some styling. How can I fix the following errors File…
ghan
  • 525
  • 11
  • 24
2
votes
2 answers

odoo.tools.convert.ParseError when restarting odoo-bin

I am working through the developer tutorial here. I have added two action buttons to a tree view. Everything worked fine until I restarted the server after adding the button tags to the XML view. I then received the following error: Traceback (most…
kpg
  • 7,644
  • 6
  • 34
  • 67
2
votes
1 answer

web.assets_backend external id not found in odoo 15

when i tried inherit external id web.assets_backend odoo says that external id not found here's the error log: Traceback (most recent call last): File "/opt/odoo/sources/odoo/odoo/tools/cache.py", line 85, in lookup r = d[key] File…
wahyu aldika
  • 25
  • 1
  • 4
2
votes
2 answers

Field does not exist in model "res.config.settings"

I would like to add configuration for a custom Odoo module. However, whenever I try to install the module, I get the following error. It seems that the custom model that I create is not being seen by Odoo. odoo.exceptions.ValidationError: Error…
dloy
  • 33
  • 5
1
vote
1 answer

How to override mail.model js class function in odoo?

in file "addons/mail/static/src/models/message_action_list/message_action_list.js" there is a js class: /** @odoo-module **/ import { registerNewModel } from '@mail/model/model_core'; import { attr, many2one, one2one } from…
Wald Sin
  • 158
  • 11
1
vote
0 answers

In Odoo, How to develop a custom condition when creating or updating a record from any model?

There is company_id field in res.partner model. I also have a relational field named 'property_account_payable_id' property_account_payable_id = fields.Many2one('account.account') property_account_payable_id field is related to 'account.account'…
Shoaib Ahmed
  • 43
  • 1
  • 6
1
vote
0 answers

Customize ODOO 15 POS Receipt

I'm trying to add some new fields that are stored in the pos.order into the POS receipt. However, I don't know how to add them to the JS, I've tried to create a model, followed several tutos but I could not resolve my issue. My main issue is that in…
maxlbs
  • 11
  • 2
1
vote
2 answers

How can I add a chatter for many2many fields (tags) in Odoo 16?

I want to add chatter for Tags. But odoo does not support tracking of many2many fields. What should i do? Any Suggestions. I tried to put tracking=true on tag_ids field but it does not work. I am stuck here. Please give your suggestions.
1
vote
1 answer

search method optimization for searching field area in odoo15

I have a function def test(self): tech_line = self.env['tech_line'] allocated_technician = self.env['allocated_technician'] users = self.env['res.users'] tech_line = tech_line.search( …
Sidharth Panda
  • 404
  • 3
  • 17
1
vote
2 answers

How can i update One2many field on Create method?

class DownloadReport(models.Model): _name = "santex.download_report" agency = fields.Many2one("res.partner", string="Agency", domain="[('is_company', '=', True), '|'…
1
vote
3 answers

How to render a qweb template by action button?

I have Qweb template like this: