Use this tag for version specific questions about Odoo 14 - 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-14]
591 questions
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), '|'…

Selman Faruk Yılmaz
- 23
- 4
1
vote
1 answer
What is the maximum character length limit of Char field with no specified size?
What is the default maximum character size limit of Char field with no specified size?
The field is created like this.
name = fields.Char(string='Name')
Odoo version 14, Community Edition

holydragon
- 6,158
- 6
- 39
- 62
1
vote
0 answers
Odoo 14 to 16 Duplicate Views not Upgrading
I have a duplicate view in Odoo 16 for the web.frontend_layout
One marked with the External ID 'web.frontend_layout' is the correct upgraded version.
Another is unmarked with the External ID, and is a stale outdated version.
If I try and delete the…

Anthony Taylor
- 101
- 1
- 3
1
vote
0 answers
Why images are not shown in production environment?
I'm developing a custom mailing template with Odoo docker image (Odoo 14), inheriting mass_mailing module. I placed a thumb image where you choose mailing template when you create a new mailing and also logo of the company in the mailing.
On my…

george
- 610
- 6
- 16
1
vote
0 answers
ERROR: could not serialize access due to concurrent update once trying to update data to the same records of parent in threaded function
I'm trying to apply some customize once stock.move done and make it run in background due to performance issue of validating picking so multi thread is solution. But I'm in trouble with updating data in the same row:
def _action_done(self,…

Phong Vy
- 369
- 5
- 19
1
vote
1 answer
How to set default search by name of Many2One field from action window or tree view?
I have a customized tree view that can be accessed from my customized action window.
I would like to set default search for a text "/Stock" in the Many2One field Location (location_id) of model stock.quant.
This is the desired result after clicking…

holydragon
- 6,158
- 6
- 39
- 62
1
vote
2 answers
How to make button in tree view clickable?
I have tree view added in wizard. I made wizard window wider due to higher number of fields.
I have added button to tree view according to these…

xixo222
- 157
- 2
- 9
1
vote
2 answers
How to change width of wizard popup window?
Is there a way to make the wizard popup window AND its content wider than the default size?
I need to change the selected single popup not all.
I have simple wizard form with tree view added in notebook page. My problem is, that the tree has quite…

xixo222
- 157
- 2
- 9
1
vote
0 answers
Odoo: Unable to use a closed cursor
I am trying to call a function after a response has been returned from a http request:
class SomeAPIEndpoint(http.Controller):
@http.route('/api', type='json')
def controller(self, **kwargs):
data = self.function1(request)
…

Pypax
- 83
- 10
1
vote
1 answer
How to solve ValueError: Invalid field 'example_field_name' on model '_unknown' when creating new record in one2many widget?
I have added a simple One2many field in product.template model and I also added one2many widget in product.template form view. I can see the widget, but when I try to add a new record I get this error: ValueError: Invalid field…

xixo222
- 157
- 2
- 9
1
vote
1 answer
How to get selected value of selection field odoo 15
i have this selection field
Fam = fields.Selection(selection=[('x1','x1'),('x2','x2')])
i want to get the selected value of Fam selection field and write the condition if no item is selected in Fam
i tried this code
@api.onchange('Fam')
def…

Zoro
- 47
- 5
1
vote
2 answers
How to install cryptography library on Docker container?
I develop our company website with Odoo 14. I installed Odoo on my local machine (macOS Monterey (12.5.1)) via Docker. I use Docker Desktop and I have created docker-compose.yaml taking official Odoo docker image page as reference.
version:…

george
- 610
- 6
- 16
1
vote
0 answers
How to know what the executed methods are when a specific button is clicked?
I am currently in a situation where I need to find what methods are executed when a specific button is clicked.
I have traced the method that binds to the button but there are too many places that it links to. Is there any way to list all of them;…

holydragon
- 6,158
- 6
- 39
- 62
1
vote
1 answer
How to add search other field in many2one?
HI I have a customer field and the default search is by name, and I want to add a search by barcode as well to the customer field
I have tried adding a barcode(partner_id.barcode) on the domain as below, but it still doesn't work (model =…

user20349495
- 15
- 5
1
vote
2 answers
Odoo Smartbutton access rights for different model
I have added smartbutton in res.partner form view header that opens the current partner helpdesk tickets (helpdesk.ticket model).
Smartbutton view (If i remove this code then button is removed and users can freely open partner form view)
…

xixo222
- 157
- 2
- 9