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

How to add another discount to subtotal in Quotation Order?

There is a subtotal (price_subtotal) field in Quotation Order Line. I have added a new field extra_discount. I have tried this code but to no avail. @api.depends('product_uom_qty', 'price_unit', 'extra_discount') def compute_all(self): …
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
0 answers

Save template for exporting in Odoo 14

I'm searching how to store an export template via module by doing programming, I came across this post, I searched the same base module (base_export_manager) in 14 but I haven't found it yet. I understand that could be an XML record that can be…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
1
vote
1 answer

odoo 14 multi company - change company_id on account.move

I have a multi-company setup in my odoo environment and I am trying to make a module which alows a draft invoice to be moved to a different available company however when setting the new company_id I get an error. my code: self.company_id =…
1
vote
1 answer

How to extend search record to also look at custom Many2Many field(s)?

In this image, there is a product search record that will search for name and default_code. I need to make it so that it will also look at my custom Many2Many field. This is the field in the inherited model. product_list =…
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
1 answer

recaptcha in odoo 14

I have tried to access recaptcha feature in odoo 14 by configuring it using site key and secret key which i got from google recaptcha page but didn't get recaptcha image in my login page. Here are the steps that i followed:- visited this url :…
Gautam Bothra
  • 565
  • 1
  • 8
  • 23
1
vote
1 answer

Postman authentication for Odoo 14

How to use postman to test odoo 14.0 controller methods that require authentication? I used to have a simple request for authentication: url: http://localhost:8014/web/session/authenticate method: GET headers: Content-Type: application/json body: { …
Obay Abd-Algader
  • 1,079
  • 12
  • 25
1
vote
2 answers

ValueError: Invalid field on model 'res.config.settings' odoo 14

I'm getting an error issue every time I try to save a setting in my odoo environment: ValueError: Invalid field 'expense_extract_show_ocr_option_selection' on model 'res.config.settings' I've been looking a the Odoo base code and I can't find that…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
1
vote
0 answers

How to achieve record-based access control in odoo 14?

We have a requirement to add multiple user roles to an object in odoo. Current requirement is with Partner Model. Odoo Partner Record can have multiple users assigned from organization with different roles. Based on the role individual can Create,…
1
vote
0 answers

How to make internal transfer between two journal odoo14

In v13, we can choose internal transfer and then fill destination_journal_id and make transfer.In v14, how to make transfer between two journal.
Neural
  • 376
  • 3
  • 12
1
vote
1 answer

How to inherit Owl.js Listener?

I am trying to inherit/override listener of Point of Sale's ProductScreen. Owl.js is new for me I Spend many hours but can't find any solution. Here is the code of listener event of point of sale module useListener('click-product',…
1
vote
1 answer

Odoo 14: Domain filter in a One2many field second argument to Function.prototype.apply must be an array

I had this code in Odoo 12 and running fine once we migrated to Odoo 14 gives an error when clicking the Roles field. Code Error Traceback: Error: second argument to Function.prototype.apply must be an array First View view Stacktrace error…
Ron
  • 91
  • 8
1
vote
2 answers

Default values for a dropdown when forms loads in odoo 14

I'd like to have a dropdown filtered based on another value of the form when the forms load, I've been trying to do it in the default_get method, the fields receive the correct data but the dropdown seems not to update @api.model def…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
1
vote
1 answer

Odoo: Price List - How to archive through API

I'm new to Odoo and I'm building a python backend which should create products and price lists in Odoo through API calls. Everything went fairly easy until I tried programatically setting a Price List as archived. From my research I found that the…
Macaret
  • 797
  • 9
  • 33
1
vote
2 answers

Error when trying to list users in odoo 14

When I go to settings in users I'm getting the following error: Invalid field 'documents_account_settings' on model 'res.config.settings' I've been looking at the base code and it seems like the field documents_account_settings is not in the model…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
1
vote
0 answers

Odoo 14 field filter

I haven't been able to enable end_date field to be filtered in account.out.invoice.tree view with NO CODING but through ir.model.fields form. I tried copying end_date from account.move.line model to account.move with no success. I have done a…