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

Odoo 13 - Search method - use of 'order' attribute for the model's related fields

I have 2 models more like the example below Model 1 - invoice invoice_num = fields.Char(String='Invoice Number') payment_method = fields.Char(String='Payment Method') payment_date = fields.Datetime(String='Invoice Payment Date') paid_by_id =…
2
votes
1 answer

psycopg2.OperationalError: connection to server on socket "/tmp/.s.PGSQL.5432" failed: fe_sendauth: no password supplied(Mac Bigsur)

Using Custom config file to run Odoo 13 but can't initiate database. ./odoo-bin --addons-path=odoo/addons -d odoo_codingdodo --save --config=.odoorc_codingdodo I have updated all of my Homebrew packages, reinstalled Postgres but it's not helping me…
2
votes
1 answer

How can show wizard call from python code?

I want to show a wizard, I try with this, but it does not show the wizard. Someone can help me. if self.move_id: view = self.env.ref('modified_pos.pos_assign_manual_quants_form_view') wiz = self.env['pos.assign.manual.quants'] return { …
2
votes
0 answers

What are usage and filter fields for in actions of type ir.actions.act_window in Odoo?

When you create an action to open a view in Odoo (ir.actions.act_window) there is a set of fields you can use to customize the way in which the views are shown. There is a couple of fields, usage and filter, that I don't understand very well. The…
forvas
  • 9,801
  • 7
  • 62
  • 158
2
votes
1 answer

Unable to create database in Odoo 13.0

I've been trying to create a database in Odoo 13.0 Community edition on a local Linux based server using the database manager in localhost:8069, but for some reason I always get the same error. Image of the error in Odoo Here's my Odoo log…
asanme
  • 25
  • 5
2
votes
2 answers

How to set a sequence for Odoo smart buttons?

I am adding a new button inside the button_box div of products. To do that I wrote the following code: product.template.common.form
forvas
  • 9,801
  • 7
  • 62
  • 158
2
votes
1 answer

Precision Rounding must be positive

So i want to convert my code from Odoo12 to Odoo13 and i'm stuck on this part : #digits_rounding_precision here is 0.0 digits_rounding_precision = self.currency_id.rounding if float_is_zero(self.residual_amount,…
Yasmine
  • 123
  • 8
2
votes
1 answer

Unescaped '<' not allowed in attributes values

I am trying to add an XML attrs attribute that contains a < character: But I am getting this…
Omprakash Yadav
  • 107
  • 1
  • 3
  • 12
2
votes
0 answers

AttributeError: 'website' object has no attribute 'get_active_website_setting' in odoo 13

I am new to odoo. And I had successfully imported a copy of the dump database to PostgreSQL. After importing dump database the following error occurs. **Traceback (most recent call last): File "/opt/odoo13/odoo/odoo/addons/base/models/qweb.py",…
Deepak Raj
  • 316
  • 1
  • 10
2
votes
1 answer

How to send email notifications for every log note of a record

I would like to implement a way to send an email notification (containing content of a log note) to all followers of a record for every log note of that record. I would also like to implement a way for email-replies to said email notifications to…
ITJ
  • 144
  • 1
  • 13
2
votes
1 answer

Cant figure out how to import one2many and many2one models

Here's the code of a custom model i made, the first class is a model of stocks and general information. The second class contains the daily prices of each of the stocks in the first class for 10 days. The relational field that connects the two is…
Adam778
  • 23
  • 3
2
votes
1 answer

How to show product default code (internal reference) in Pos Receipt (Odoo13)

I want to show product default code in pos receipt. Can I inherit or edit in models.js or from other ? Thanks. export_for_printing: function(){ return { ... default_code: this.get_default_code(), }; …
Ing
  • 551
  • 7
  • 20
2
votes
1 answer

How to find translation fields for specific product in odoo 13

I'm trying to update product name translation using jsonRPC , i tried to watch the post request from chrome's network section i found that the requests arguments are : params: {args: [[576104], {value: "Nilson Cadre Touran 01 Module Encastré."}],…
Bilel_a
  • 163
  • 1
  • 3
  • 8
2
votes
1 answer

Is it possible to control/change state of statusbar in model 1 via a button in model 2? (Odoo 13)

Can I control/change the state of statusbar in model 1 via a button in model 2? My model 1: bao_hiem.py like this: name = fields.Many2one('hr.employee', string="Người lao động", > required=True) statea = fields.Selection([ ('moi', 'MỚI'), …
Leon Nguyen
  • 187
  • 1
  • 16
2
votes
1 answer

Odoo 13 - Computed Fields - not working as expected

I have a Model ks.register has a field meter_ids which is a computed field added in XML notebook tag as a Page. Computed field be like: meter_ids = fields.One2many('ks.meter', string='Meters', compute="_get_register") Below is the computed method…
aru
  • 71
  • 1
  • 10
1 2
3
41 42