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

Odoo Unit Test is not running

I am running the following command inside docker container of odoo image 16 and it doesn't run the unit-test: odoo -i custom_fields_mapping -d odootest8 -p 8001 --db_user=odoo --db_password=11111111111 --db_host=localhost --log-level=test…
KostasC
  • 1,076
  • 6
  • 20
  • 40
2
votes
0 answers

How to use threads in Odoo?

I am trying to use threads in Odoo 14 for the first time and I would like to ask for some basics and common pitfalls. I found surprisingly little on this topic online. Even official docs basically say: don't do this unless you are 1000% sure you…
xixo222
  • 157
  • 2
  • 9
2
votes
1 answer

How to pass Many2one field from purchase order line to account move line

I tried to get the same field from purchase_order_line to account_move_line class PurchaseLine(models.Model): _inherit = 'purchase.order.line' task_id = fields.Many2one('project.task', string='Rubriques', store=True) And i tried to override…
RIzu
  • 21
  • 3
2
votes
1 answer

Predefine data in HTML field from XML in odoo

I have a HTML-field in my model.py like this: from odoo import models, fields class TestModel(models.model): _name = 'test.model' content = fields.HTML() To display the data of my model I used in the…
2
votes
1 answer

Chart in qweb pdf report - odoo 14

Is there a way to print a bar chart within a qweb report? I'm trying to use the t-raw property, but this doesn't seem to run javascript (I'm trying to embed Char.js) This is what I did, but it just prints it, it doesn't run the javascript before…
Legna
  • 460
  • 6
  • 19
2
votes
1 answer

How to add a csv file with multiple parent_id to odoo

When adding the CSV file with multiple parent_id to the hr.profession.category model this error appears: Exception: Module loading ptplus_hr_payroll failed: file ptplus_hr_payroll/data/hr.profession.category.csv could not be processed: No matching…
2
votes
1 answer

How to prevent buttons getting double clicked in Odoo?

There are several occasions that users try to click a button multiple times in a row for whatever reason. I want to disable or hide a button for a few seconds after it is clicked, so that it will not be clicked again temporarily. By buttons here I…
holydragon
  • 6,158
  • 6
  • 39
  • 62
2
votes
1 answer

action.url doesn't seem to run

I have this action server: def obtener_todos_los_adjuntos_en_un_zip(self): tab_id = [] for invoice in self: tab_id.append(invoice.id) base_url =…
Legna
  • 460
  • 6
  • 19
2
votes
1 answer

How to hide chatter to a specific user group odoo 14?

I need to hide the chatter from the form view of the crm module for a specific group of users. How can I do this?
oigna
  • 121
  • 7
2
votes
1 answer

Where are Odoo Attachment Files is Stored in Odoo 14

I'm planning doing some migration and I need to know where all the attachment files is stored. In this forum, there are some answers, but the binary value for column ir_attachment.db_datas is set to null for every record.
NM Naufaldo
  • 1,032
  • 1
  • 12
  • 30
2
votes
2 answers

How to use self.env.commit() properly?

Could someone please explain to me how self.env.cr.commit() works, when to use it and some good practices? From Odoo documentation seems the use of cr.commit is very dangerous. This is my first time using it and I am not sure how to use it properly…
xixo222
  • 157
  • 2
  • 9
2
votes
1 answer

Odoo Multiline Config File

One of the parameters in the config file has a long value and I want to put the separated value by a comma in the new line From addons_path = C:\My\Odoo\addons1, C:\My\Odoo\addons2, C:\My\Odoo\addons3 To addons_path =…
NM Naufaldo
  • 1,032
  • 1
  • 12
  • 30
2
votes
0 answers

Display google map for multiple locations

Sales person will visit different locations in a day and coordinates will store with location name in a model. I want to display google map for a sales person showing all location on map along with complete path. enter image description here
2
votes
3 answers

Odoo - Can't Change Default Currency Company

I want to change the company currency by opening Setting->Companies->Currency. But when I already change the currency and hit save button, I get this warning dialog You cannot change the currency of the company since some journal items already…
NM Naufaldo
  • 1,032
  • 1
  • 12
  • 30
2
votes
1 answer

Running odoo in Debugging VSCode and found error ModuleNotFoundError: No module named 'stdnum' - - -

i using VSCode as my IDE for development odoo and for now run using Start > Debugging ( F5) While running at web browser localhost:8069 ( default ) then appear Internal Server Error and in terminal VSCode there are errors : Traceback (most recent…
teguhteja
  • 33
  • 7
1
2
3
39 40