Questions tagged [odoo-14]

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.

591 questions
2
votes
1 answer

'base.document.layout' object has no attribute 'header' odoo14 - trying to display custom fields in report

with a custom module, I have added the two fields header and footer to every res.company object. These are fields of the type binary. I now want to display them in my document layout in qweb. Unfortunately, odoo tells me 'base.document.layout'…
unnamed-dev
  • 165
  • 8
2
votes
1 answer

Odoo - How to Modularize XML Field

I have a nested field in my XML file and I want to modularize it. For example, I have a model with the field One2many. When I call the One2many field in XML, I need to provide the form & tree view.
NM Naufaldo
  • 1,032
  • 1
  • 12
  • 30
2
votes
1 answer

Odoo 14 field does not get added to res.company

I simply want to add two new Binary fields to the res.company model To achieve this, in my module, I have added a "company.py" file in the module/models folder from odoo import models, fields class Company(models.Model): _inherit =…
unnamed-dev
  • 165
  • 8
2
votes
0 answers

How to translate address labels in partner form in Odoo 14?

In Odoo 14, the res.partner form view has the following code to set a label for the address div:
forvas
  • 9,801
  • 7
  • 62
  • 158
2
votes
1 answer

Custom field doesn't respect access rights

I have created a new field (signature image) to be shown in the My Profile section by inheriting the (res.users) module. _inherit = 'res.users' signature_image = fields.Binary() Now, the user can change everything in the profile section (including…
Ehab
  • 566
  • 6
  • 24
2
votes
0 answers

How to conditionally hide rows in One2Many field tree in a form view?

I have a form view, which contains a tab in notebook page. The models are customized. This is the example code.
holydragon
  • 6,158
  • 6
  • 39
  • 62
2
votes
0 answers

Odoo webcontroller routes conflict - how to solve that case? Odoover.12, 13, 14, 15

I have questions for experienced developers: I am trying to create new custom web controller route. But I do find some troubles here. Let me put down the example. Image this situation: custom controller: @http.route(['//'],…
Krys.
  • 21
  • 3
2
votes
0 answers

While parsing modifiers for field city: for modifier "readonly": Unknown field type in domain

Working on a module for Odoo 14 CE My module depends from another module called "base_locations" base_locations extends the functionalities related to inserting data about cities and regions in the standard Odoo but it's distributed by the Odoo…
user1632812
  • 431
  • 3
  • 16
2
votes
3 answers

How to Hide Filters in Odoo 14

How can I hide a filter in Odoo, I know I can use a record rule but in my case I can't. This is not working. Please Note: This is not the filter I want to hide.
2
votes
2 answers

How to create backorder in Odoo with XMLRPC in python?

I am an odoo beginner and I am currently developing an inventory mobile app for accessing odoo remotely with XMLRPC. I am able to set "qty_done" field for each stock.move.line in delivery order (stock.picking) and when order is complete I am able…
xixo222
  • 157
  • 2
  • 9
2
votes
0 answers

Odoo 14 update/load language during (automatic) module update

I know how to add translations to my custom module (with .po-files in \i18n-folder). I also know how to force Odoo.sh to automatically update my custom module during build, with updating the version-number. This works fine for data, views, and so…
BerDev
  • 1,457
  • 1
  • 8
  • 16
2
votes
1 answer

Odoo 14 header customization

In Odoo 14 I would like to edit my invoice. I've been sitting on it for a few hours now and can't get any further. Many header customization are described for Odoo 12 or below and do not give me a concrete answer. I want to have my company address…
AkMarcel94
  • 21
  • 3
2
votes
1 answer

How can I unshrink column headers of one2many tree view in odoo 14?

Odoo shrinks the column header based on datatypes and when there are many fields in one2many tree view. the columns are shrinked. When I checked the file list_editable_renderer.js under web folder There are these constants for column width const…
Shravy
  • 656
  • 1
  • 23
  • 61
2
votes
1 answer

How to create 2 fields that use and change each other's value?

I want to create 2 fields in model namely field_a, and field_b such that: when field_a's value is changed, change value of field_b using value of field_a in the calculation when field_b's value is changed, change value of field_a using value of…
holydragon
  • 6,158
  • 6
  • 39
  • 62
2
votes
2 answers

Alternative to render_qweb_pdf in odoo-14

I want to save my pdf report as attachment so I can make a zip file of some attachments from that report. pdf = self.env.ref('module_name..report_id').render_qweb_pdf(self.ids) b64_pdf = base64.b64encode(pdf[0]) # save pdf as attachment …
Evan rianto
  • 19
  • 1
  • 7
1 2
3
39 40