Questions tagged [odoo-13]

Use this tag for version specific questions about Odoo 13 - the suite of open-source business applications written in Python. When using this tag also include the more generic [odoo] tag where possible.

616 questions
2
votes
1 answer

Add client search criteria Odoo13's POS

I've added some custom field's to the res.partner's model and I want to add this fields to the POS's search criteria. The fields I've added in my models.js file can be appreciated in the following code: odoo.define('my_module.models', function…
Simon Capriles
  • 143
  • 2
  • 21
2
votes
1 answer

How I can get transaction reference in Odoo13

In Odoo11, I can get transaction reference by this way transaction = request.website.sale_get_order().payment_tx_id transaction.reference But in Odoo13, payment_tx_id field has removed from sales order,
Unknown
  • 401
  • 4
  • 15
2
votes
0 answers

How to get session id?

I'm doing a post request with axios getSessionId() { const endpoint = 'http://localhost:8069/web/session/authenticate/' axios.post(endpoint, this.user).then((response) => { this.cookie = response.headers console.log(response.headers) …
Nicolas Rondon
  • 115
  • 1
  • 9
2
votes
2 answers

Is Python 3 continue loop statement a problem in compute methods in Odoo 13?

I am migrating a module to version 13.0, which uses continue in a loop inside a compute method, and an error was driving me crazy for a while. I simplified the code to the minimum until I had this kind of nosense: @api.depends('move_lines',…
forvas
  • 9,801
  • 7
  • 62
  • 158
2
votes
1 answer

Validation on export data for one2many field column in Odoo 13

I want to show validation error when the user export records for state='draft'(in one2many field). I have done code for it and it's working fine. but when I put this code for one2many table then I unable to get a validation message. My code is…
Pawan Kumar Sharma
  • 1,168
  • 8
  • 30
2
votes
0 answers

UTC [38] ERROR: could not obtain lock on row in relation "ir_cron" (after Fetchmail Service action)

I have Odoo 13 comunity edition running locally in docker container (OS: Ubuntu 18.04.4 LTS). I have connected Incoming Mail Server (imap.gmail.com). Now every time after scheduled action "Mail: Fetchmail Service" this error apearing: web_1 |…
2
votes
1 answer

OSError: File not found Odoo 13

OSError: File not found: library_app\security\library_security.xml Im trying to upgrade my module but i'm getting this issue. This is my manifest { 'name': 'Library Management', 'description': 'Manage library book catalogue and lending', …
Nicolas Rondon
  • 228
  • 2
  • 10
2
votes
2 answers

Show validation for export action click on specific condition Odoo 13

I want to show validation on the 'draft' stage that the user can not export draft stage data. I know about 'def export_data(self, fields_to_export)' function but it works after select fields. I want that validation just when clicking on export…
Pawan Kumar Sharma
  • 1,168
  • 8
  • 30
2
votes
0 answers

Unbalancing error while create vendor bills in Odoo13

Recently I have been trying to create vendor bills in odoo13 by code by apparently every time I run the code I get a message "Cannot create unbalanced journal entry. Ids: [177] Differences debit - credit: [3.5]" 3.5 in my unit_price. My code is…
Pawan Kumar Sharma
  • 1,168
  • 8
  • 30
2
votes
2 answers

ir.attachment in diferent model can view diferent ways

I work with file storage module and need to upload files to module. In my definition i use class TestClass(models.TransientModel): _name = "module_name.test_class" attachment_id = fields.Many2one( comodel_name='ir.attachment', …
Umks
  • 55
  • 2
  • 8
2
votes
2 answers

Why values are disappearing?

I am working in Odoo13 I am calculating some taxes while creating my sale order and while doing this I am successfully calculating my respective taxes as following. But after saving my sale order or by confirming it all my custom tax fields…
Adam Strauss
  • 1,889
  • 2
  • 15
  • 45
2
votes
0 answers

How do I set invoice_payment_term_id required in Odoo 13?

I am trying to set invoice_payment_term_id field as required. Usually just adding required="1" should work but not here:
2
votes
1 answer

Where is src_model in ir.actions.act_window?

I have this code in odoo 12 that I want to migrate to odoo 13. But I don't know what is the equivalent of src_model in Odoo 13. Complete Pieces…
m0r7y
  • 670
  • 1
  • 8
  • 27
2
votes
2 answers

cannot import name '_has_surrogates' from partially initialized module 'email.utils'

I tried to use odoo 13 and i worked with python 3.8 , but this error python always appears ImportError: cannot import name '_has_surrogates' from partially initialized module 'email.utils' (most likely due to a circular import)…
Fares Izem
  • 177
  • 2
  • 2
  • 9
1
vote
1 answer

make download template excel in odoo

im using odoo13, and want try to make download excel file, heres my models odoo : class CustomExcel(models.TransientModel): _name = 'custom.excel' _rec_name = 'datas_fname' file_name = fields.Binary(string="Report", readonly=True) …
perl
  • 15
  • 4