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

How do I inherit a qweb report template and replace a t element in odoo

I want to replace the t element and every data under it in my payslip qweb report. That is the t element and everything that comes under it
A.Sasori
  • 385
  • 3
  • 20
2
votes
1 answer

What is context_today?

Does anyone know about context_today? I have seen it on sales module. sale.py file. record.remaining_validity_days = (record.validity_date - fields.Date. context_today (record)). days + 1
2
votes
1 answer

How to convert an existing related field into a computed one in Odoo 13?

I have this existing field: picking_code = fields.Selection( related='picking_id.picking_type_id.code', readonly=True, ) And I want to inherit it, remove the related parameter and add a compute one to set its value depending on some…
forvas
  • 9,801
  • 7
  • 62
  • 158
2
votes
1 answer

Getting "odoo.exceptions.ValidationError: ('Posted journal entry must have an unique sequence number per company'" when changing invoice stat

I'm trying to change the state of a created invoice from 'draft' to 'posted' using the Web APIs (Python) by referring to this documentation : https://www.odoo.com/documentation/13.0/webservices/odoo.html I'm updating the invoice as follows : def…
Ahmad Sabeh
  • 526
  • 5
  • 18
2
votes
1 answer

My schedule action does not work Odoo 13 why?

I don't understand : scheduler_demo/data/sheduler_data.xml : Demo scheduler
Brenda
  • 33
  • 4
2
votes
1 answer

Is using Javascript in odoo.fields.HTML possible?

I want to integrate Adobe Captivate Content (Export: index.html, along with src-folder) into ODOO Community Edition v13 e-Learning Module (website_slides). The slide.slide model already offers slide_type 'webpage' alongside the field…
Lars Trey
  • 93
  • 7
2
votes
1 answer

Odoo 13 how to run a action via api?

url = "ip" db = "dbname" username = "user" password = "admin" common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url)) uid = common.authenticate(db, username, password, {}) actions = models.execute_kw(db, uid, password, 'ir.cron',…
apexprogramming
  • 403
  • 2
  • 14
2
votes
0 answers

Odoo13 - Does caching /web/content makes sense?

Typical Odoo installation guide suggests to configure Nginx to cache paths like this: /web/static And they are skipping paths that look like this: /web/image /website/static /web_sale/static I would guess that they should also be cached. But what…
AnJ
  • 581
  • 1
  • 6
  • 29
2
votes
2 answers

how to hide odoo 13 point of sale kanban droplist/drop menu?

I tried this code but nothing happened: #view.xml pos.config.inherit pos.config
2
votes
1 answer

How to programmatically create a sale order line (Odoo 13)

I have a sales record models.execute_kw(db, uid, password, 'sale.order', 'create', [{ 'partner_id': 10, 'order_line': [(0, 0, {'product_id':1,'product_uom_qty':2}), I need to be able to create…
apexprogramming
  • 403
  • 2
  • 14
2
votes
1 answer

what does attachment=True do odoo 13

I created a custom module in which I have this field record_file = fields.Binary(string='file', attachment=True, help='Upload the file') from what I understand attachment=True should save my images or pdfs to ir.attachment but am not seeing any…
Moaz Mabrok
  • 697
  • 10
  • 32
2
votes
0 answers

JS is not triggering when a user is not logged in odoo 13

I was developing an odoo theme but for some reason my js is not triggering when a user is not logged in odoo.define('n_theme.jq_website', function (require) { 'use strict'; alert('on_website'); $(".nav.navbar-nav").after('
Moaz Mabrok
  • 697
  • 10
  • 32
2
votes
2 answers

how to add product to sale.subscription order line using the create function odoo 13

can't figure out how to add a line to sale.subscription using the create function from another model subscription_pak = self.env['product.template'].search([('name', '=', pak_name),('recurring_invoice', '=', True)], limit=1) subscription_info…
Moaz Mabrok
  • 697
  • 10
  • 32
2
votes
2 answers

Precision rounding error in Odoo 13 free edition

I'm new to Odoo. I have product with BOM that I manufacture from supplies in my inventory. When I try to produce it, I get this error: Odoo Server Error Traceback (most recent call last): File "E:\odoo\Odoo 13.0\server\odoo\http.py", line 624, in…
MathewP
  • 45
  • 5
2
votes
2 answers

How to add QR code image in Odoo's POS receipt

I'm trying to add a QR image to the POS's receipt. The code I used in a normal invoice that worked was the following one: For…
Simon Capriles
  • 143
  • 2
  • 21