Questions tagged [odoo-12]

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.

934 questions
2
votes
1 answer

Modify existing record rule odoo

I want to put to existing record rule . so i added inherited it and added my addition .. but no effect:
omar ahmed
  • 635
  • 5
  • 19
2
votes
1 answer

It is possible to inherit a function and add a code line in JS

I'm trying to add a code line in a created JS function but I'm not able inject in in the middle of an event trying to inherit the function. For example, I had this variable: var my_new_var = $(this).val().toString(); This is the allready defined…
arevilla009
  • 429
  • 3
  • 18
2
votes
1 answer

Odoo Views Error: No default view of type ' form' could be found

When I click on the button I should see a list. There should also be the ability to create a new record. But when I click on the button I get: No default view of type ' form' could be found! How to fix it? If I go from the main menu, then there is…
Senarist01
  • 133
  • 1
  • 10
2
votes
1 answer

close wizard after clicking button in odoo 12

can you please help me regarding close wizard. i have created a wizard from xml when i add dates and click on xlsx button, xlsx generated and wizard close it self. it works fine. but when i click on pdf, pdf generate successfully but wizard remains…
kryptonian
  • 97
  • 1
  • 12
2
votes
2 answers

How to get the returned value of rpc query in odoo12

Hi im having trouble in getting the returned value in the rpc query in the .then() function here's my code initialize_qr_code:function(){ return rpc.query({ model: "pos.order", method:…
user9523333
  • 187
  • 18
2
votes
1 answer

send custom field from purchase order to receipt (stock) in odoo12

i have a custom field in purchase order (order_line), when i click on the confirm button that that field should pass to the receipt in stock along with all product information. how can i achieve this, like in sales we have…
kryptonian
  • 97
  • 1
  • 12
2
votes
1 answer

PayPal Refund Transaction Authorisation Issue

I'm working on Odoo version 12.0, developing the process of Refund Sale Transaction using their API. I've taken reference from the following link: https://developer.paypal.com/docs/api/payments/v1/#sale_refund But there is some authorization issue…
Avani Somaiya
  • 348
  • 2
  • 7
2
votes
3 answers

restrict access of tasks to assigned users only in odoo 12

I want to restrict access to assigned users in tasks. so, user can see only assigned tasks just now user can see all the tasks. I tried below thing but it's not working.
Megha
  • 23
  • 2
2
votes
2 answers

Form View hide button via CSS

On Form View i want to hide a button if Customer partner_id is False, i tried t-if with no luck i tied attrs but also didnt work. Check status of Customer partner_id: I want to hide the button Send Message: Any solution? I tried to run CSS to hide…
Fotic
  • 301
  • 5
  • 15
2
votes
2 answers

Computed field on a tree view in odoo 12

I'm trying to compute a value to be displayed in a tree view, the problem is that my private function never gets executed and not setting the value for my computed field. I've simplified the following code: class ProjectProject(models.Model): …
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
2
votes
2 answers

Odoo 12: AttributeError: 'int' object has no attribute 'get'

I have created a choice_student method in which I return an ID in the default of a many2one field related to res.users but I get the error : AttributeError: 'int' object has no attribute 'get' This is my code : student_id =…
Abdoulaye BARRY
  • 737
  • 1
  • 7
  • 16
2
votes
2 answers

Split Purchase Order according to Product Category

I wanna split the Purchase Order according to Product Category. My Code so far: _inherit ='purchase.order.line' split = fields.Boolean(string='Split') _inherit ='purchase.order' def btn_split_rfq(self): flag = [] for…
Fotic
  • 301
  • 5
  • 15
2
votes
0 answers

Odoo integration with Mobile applications

I have a web application in Odoo. Need to Implement the same in the mobile application. Is it API's available for developing a mobile app or need to install any plugins to develop applications? I'm in new to odoo development with the mobile…
Naveen J
  • 63
  • 13
2
votes
1 answer

Odoo 12 I can't change the value of the calculated field

I have created a module and a calculated field that allows you to retrieve a value from the database. Since the field is calculated I can't use the field to make conditions. I get the error "Non-stored field rdv.rdv.nb_rdv cannot be searched.". To…
Abdoulaye BARRY
  • 737
  • 1
  • 7
  • 16
2
votes
2 answers

Search domain : multiple condition in odoo

How to convert this expression : ((A & B) | ( C & D)) | (( E & F) | (G & H)) in OpenERP domain syntax PostgreSQL query is : SELECT * FROM calendar_event WHERE ( (start_datetime <= '2020-01-07 09:00:00' and '2020-01-07 09:00:00' <=…
user7575848