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
1 answer

Getting id from URL to filling wizard form, Odoo

I want to get id from url when i click the button. This is URL, id is 69: http://localhost:8069/web#id=69&cids=1&menu_id=385&action=507&model=inventory.menu&view_type=form I need to get this id in many2one field. This is my wizard py file: from…
Enes Kara
  • 81
  • 6
1
vote
2 answers

React Native call Odoo API via Axios struggling with CORS

I am using React Native, and trying to call Odoo APIs using Axios. This is how I successfully call authenticate on my local Odoo instance. const authenticate = await axios.post('http://localhost:8069/web/session/authenticate', { params:…
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
1 answer

How to refer to payments from Odoo invoice?

I am trying to loop through payments (account.payments) recorded for Odoo invoices (account.move). I would like to get display_name, payment_reference and amount from account.move. How should I construct my search domain to match exactly the…
Ossi Mantylahti
  • 68
  • 1
  • 10
1
vote
1 answer

How to add Binary file to email attachment in Odoo 15

Good day, I have a binary field that holds an xml file which i generate with etree.Element batchfile = fields.Binary("XML Batch File", readonly=True) So i want to attach this Binary file so that I email it, but how can I do this? def…
Abraham Kalungi
  • 45
  • 1
  • 10
1
vote
1 answer

Unable to signup user from custom mobile App

Please guide. Creating a new mobile app, not able to signup! Returns some error while tryting to call /web/signup and also while directly calling res.users create as sudo. Please see the error message The above exception was the direct cause of the…
1
vote
2 answers

How to update a record from another function

I'm trying to update the body field from the payrun_chatter_log() but it won't update. any idea on how to do this? This is what I did: def payrun_chatter_log(self): subtype = self.env['mail.message.subtype'].search([('id','=', '2')]) …
Kai Ning
  • 159
  • 9
1
vote
1 answer

How to pass Note from Sale Order Line to Transfer (Detailed Operation Line)?

In Sale Order Line, there is an option to write down some notes in the lines as "note". When the Sale Order is confirmed, the data is sent to stock.picking (Transfers) and the lines from Sale Order Line appear in Detailed Operations in the Transfers…
holydragon
  • 6,158
  • 6
  • 39
  • 62
1
vote
2 answers

Odoo 14 style error immediately after running

I installed Odoo 14 on Windows. but when I run my localhost server I face this error: The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made. Could not execute command…
Faeze Shakori
  • 11
  • 1
  • 4
1
vote
1 answer

visual representation of a 3 level hierarchy in the same view in odoo 14

In Odoo (14) it's very common that a one to many relationship is represented in a view as a box containing a list of rows, each row representing one record in the linked entity (table) The common behavior is that these rows can be clicked on and a…
user1632812
  • 431
  • 3
  • 16
1
vote
1 answer

How to call function when page loaded odoo-14

I was trying to call a function when the page is loaded, I made some changes to the XML but none worked, for example: action = env['res.config.settings'].set_values() I didn't find any viable method for odoo 14, does…
arleite
  • 101
  • 6
1
vote
1 answer

How to update a value from a field without refreshing the page Odoo

I'm creating a new sector on the settings page of my module, where I have a value and an update icon, which aims to update the field value when I click on the icon. But when I call the function to execute the function, the page is reloaded and I…
arleite
  • 101
  • 6
1
vote
1 answer

Custom name for pdf print in Odoo 14?

Hi all i am trying to change the file name of pdf print. I tried below two methods.
KbiR
  • 4,047
  • 6
  • 37
  • 103
1
vote
0 answers

Exist any way to create a new country state without popup a form in Odoo

I have a Many2one field of the res.country.state model and when I try to create a new record it always shows me a popup with the form view, Is there any way to prevent this and just create the new record Code in the view
1
vote
3 answers

How to override the unlink method of 'res.partner' model? Odoo 14

I want to remove the condition that generates the UserError in unlink method of 'res.partner' model: def unlink(self): running_sessions = self.env['pos.session'].sudo().search([('state', '!=', 'closed')]) if running_sessions: raise…
K.ju
  • 541
  • 5
  • 20
1
vote
1 answer

Not possible to unreserve more products than you have in stock - Odoo 14 stock forecasting/reserve issue

Odoo v14E While an order is open,delivery is waiting & some stocks are partially reserved. Consider following Current stock: Product On Hand A 50 B 30 DO(Awaiting): Product Demand Reserved To Do A 20 20 20 B 50 30 30 Now,…
user18220420