Odoo is a suite of open-source business apps written in Python and released under the LGPL license since version 9 (previously AGPL). It is used by 2 million users worldwide to manage companies of all different sizes. The main Odoo components are the server, 260 core modules (also called official modules) and around 4000 community modules. ODOO 12 is the newly updated version so far in the ODOO series.
Questions tagged [odoo-12]
934 questions
-1
votes
1 answer
How to get field value from string python expression in python 3.5
for example,my string python expression is:
res = ''
for item in object.order_line:res = res + item.product_id.name + ','result = res[:-1]
so i want to get the value of product_id.name while execute my python expression,
-1
votes
1 answer
Odoo 12 python write xls File fails (PermissionError: [Errno 13] Permission denied:)
I generate xls file from odoo, the code works in my laptop but in server machine it doesn't
i tried the both commands:
1- sudo chmod -R 777 /usr/local/lib/python3.6/
2-sudo chown -R 777 /odoo/
but nothing has changed
Thanks for help
File code of…

MOHAMED
- 101
- 2
- 10
-1
votes
1 answer
How Can Display Receipt In Quotation in odoo 12?
I using odoo 12 , I need display receipt similar point of sale receipt in quotation in sale module

Beshoy Wageh
- 1
- 1
-1
votes
1 answer
From quotation to sales order by Paypal in ODOO 12
At the moment when someone buy something in the eCommerce website in ODOO and choose payment by pay-pal, the quotation goes to the sales order automatically. The sale order gets confirmed. Is it possible to do that quotation will stay as an…

Santhosh
- 209
- 2
- 16
-1
votes
1 answer
What is the use of this line of code with [0][1] index?
i cant find out what does name_get()[0][1]
display_name = product_id.name_get()[0][1]
if product_id.description_sale:
display_name += '\n' + product_id.description_sale

Adham Baquroun
- 19
- 2
- 8
-1
votes
1 answer
ODOO 12 : show field of model “purchase.order” in form view of “account.invoice”
I added commission field in purchase order model and i want to show it in account invoice when i click on "create bill". below is my code but it doesn't work, I hope somebody can help me. Many thanks in advance.
class ConfirmComm(models.Model):
…

myriam
- 15
- 4
-1
votes
1 answer
Odoo12 Cron Jobs Execute on specific days
I have written cronjobs in odoo12 and I want them to execute 6 days in a week with exemption of sundays since sunday is not a working day, how can i do that in odoo12/odoo11

herbert ichama
- 81
- 1
- 12
-1
votes
1 answer
How to edit variable Odoo
When a user orders a subscription we want to update their price list.
The ID of the current price list of the user that ordered a subscription is this:
env['res.partner'].search([['id', '=', record.partner_id.id]]).property_product_pricelist.id
But…

Daan Seuntjens
- 880
- 1
- 18
- 37
-1
votes
2 answers
How to create dashboard view in Odoo 12?
I want to create a dashboard view in Odoo 12 that contains specific data. Can someone guide me to a tutorial that will help me to achieve this or show me how I can handle a dashboard view?

omas
- 69
- 1
- 12
-1
votes
1 answer
What does the path /shop/get_suggest mean?
I found a module that autocomplete search in a Website e-commerce with high-light match words and image. But I did not really understand what each command do .
Can you please explain to me how this code work, and why they did…

omas
- 69
- 1
- 12
-1
votes
1 answer
how to fix this error "External ID not found in the system: sales_team.menu_sales"
i want to add new menuitem under management menu in accounting module, so what is the wrong with mine??
this is my xml file
cash.flow.forecast

asya
- 1
- 1
-1
votes
1 answer
How to use a many2one field in Odoo 12?
I have two class in python file (odoo version is 12):
class Module_procede(models.Model):
_name = 'moduletest.procede'
pr = fields.Char("firstname", default='???', required=True)
mp = fields.Char("lastname", required=True)
class…

Programmer LiLi
- 147
- 5
- 27
-1
votes
1 answer
How to call salary rule in python code odoo
I want to use salary rule in python code for some calculations.
Anyone please tell me how can I do it?
Thanks in Advance.

M Tahir Noor
- 443
- 2
- 10
- 31
-2
votes
2 answers
RecursionError: maximum recursion depth exceeded odoo 12
While editing notes and saving, I got error as:
self[a[0]] = a[1]
RecursionError: maximum recursion depth exceeded
Code:
notes = fields.Text('Terms', compute="_default_terms",inverse="_inverse_terms")
@api.multi
def…

Shahal
- 115
- 1
- 12
-2
votes
1 answer
Inserting bulk data into odoo.com. using python
hello i am new to odoo platform.
I have few scripts which extracting data from some websites and i want to modify all by adding functionality that data will be directly uploaded to odoo shop or odoo website.
i want to know that is there any way by…

Yagnesh
- 3
- 5