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
0 answers

How we add or change formula for debit and credit in account.move file (odoo14)

I want that the debit and credit value is calculated from subtotal directly not from quantity * price_unit, so I will change its formula by this code.. def _get_price_total_and_subtotal(self, price_subtotal=None, quantity=None, discount=None,…
1
vote
0 answers

How to do profiling in standard code base?

I did some profiling procedures before. I used from odoo.tools.profiler import profile @profile def ... in my customized modules, and then update the module. The profile did show up as intended. However, now that I am trying to do the same thing…
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
1 answer

Odoo 15 Find tax_ids Inside the account.move.line (Invoice) Model

Good day, hope everything's well. I'm trying to find the value of tax_ids (Many2many field) inside the account.move.line model but i can't seems to find anything. I already access the psql of the database but i cant find tax_ids too. I accessed that…
altela
  • 306
  • 2
  • 13
1
vote
1 answer

odoo 14 connection to database failed

I do a clean Odoo 14 install and postgreSQL for a new Job, and I had this problem: This is the odoo log file: 2022-09-26 22:08:19,881 4564 INFO ? odoo.sql_db: Connection to the database failed 2022-09-26 22:08:19,883 4564 INFO ? werkzeug: 127.0.0.1…
1
vote
1 answer

Python constraint doesn't check edited value

I'm doing this official tutorial https://www.odoo.com/documentation/14.0/developer/howtos/rdtraining/11_constraints.html#howto-rdtraining-11-constraints in Odoo 14 docs and have trouble with Python constraint, which doesn't trigger if I change…
tscunami
  • 45
  • 5
1
vote
1 answer

How to use image map in Odoo?

I am trying to use image map in Odoo 14 CE. This is my attempt to do a proof-of-concept, which is not working (mapping does not happen in the image, and the in the client-side page does not contain usermap="#workmap" attribute).
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
1 answer

upgrade a module using windows powershell with odoo 14

Want to upgrade a custom module using windows powershell having odoo 14.. I have tried following code.but it shows FILEEXIST Error PS D:\odoo\server> D:\odoo\python\python.exe .\odoo-bin -c .\odoo.conf -d TEST -u custom_module I got following…
SAB
  • 31
  • 4
1
vote
1 answer

Odoo - hide / modify / append on generated fields

There are fields like campaign_id which i would like to hide, or append some other fields after them: But all my expression get fully ignored: like...
eXe
  • 662
  • 11
  • 26
1
vote
1 answer

Change field label/string

I'm trying to change field label/string on amount_by_group field that is showing total tax amount on Invoice form. Tried to do it like this - using field attributes
1
vote
1 answer

Show field based on value of another field

I've been trying to show order confirmation date in sale order tree view. To show it I used 'date_order' like this:
1
vote
0 answers

How to call JSONRPC to Odoo API getting data from multiple models in a single request?

I am calling JSONRPC from an application using this code: const res = await axios.post(server + '/jsonrpc', { "jsonrpc": "2.0", "method": "call", "params": { "service": "object", "method": "execute", "args":…
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
1 answer

Relative import user made module in Odoo 14

I am doing a refactor of our code base and was suggested we create a python module that will store functions that are used across different modules in Odoo 14 (sale, project for example), this is in a different file in the structure. My question is,…
Ron
  • 91
  • 8
1
vote
1 answer

How to hide Edit menu on certain state for every user?

I have a scheduled action that will run every now and then to process orders in a certain state, which I will call it processing status. I am looking for a solution to hide Edit menu to every user when the state is processing. However, the scheduled…
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
2 answers

How to access variable from a python function using qweb

How can I access the variable from a function? For example: def get_data(self): var = "I am a variable" Then I would like to get the data of var from that function and put it to my report. And this is what I did:
Kai Ning
  • 159
  • 9
1
vote
0 answers

Python Odoo can't find the file, even though clearly specified: OSError: cannot open resource

I keep getting the error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 640, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File…
unnamed-dev
  • 165
  • 8