We are trying Odoo Repo on Ubuntu, we wanna make some custom addons. We read the documentation and we achieved to create some models and views. The main issue is that drop-down “many2one” fields show at first hiding. The only way to make it work its to click on the area of the form. We don’t know if we are
Tag: odoo
fields_view_get does not exist in Odoo 16
I was testing the modules of Odoo 15 that I developed in Odoo 16, I was using a lot of the method fields_views_get to have some behaviors to inject domain and context, before to render the component, but currently I can not find this method. Someone here knows what will be the alternative to achieve some behavior in runtime (modify
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. Now that I got the result from Odoo. I want to call methods and query some records. So, I tried to get some records from DataSet search_read first. Here is what I tried. It gave
Odoo14 action_set_won_rainbowman is not a valid action on crm.lead.result
I’m building a custom module to include tree view inside crm.lead that can insert few data inside, but when i try to install it i got the following issue. action_set_won_rainbowman is not a valid action on crm.lead.result as my view looks like and my module looks like can anyone help me what i missed in that? “i need only to
How to override js method in Odoo 15?
Can anyone give me minimal code so that any method I can override for JS method? Answer You need to extend in-place a class in the registry, it is documented in the point of sale ClassRegistry. Example
how to remove or hide rows in odoo tree if field is 0
I have a tree where in the “jumlah” column there is a value of 0, so I want the rows that in the “jumlah” column have 0 not to be displayed in the tree. here’s a picture of the tree I have. and here is the xml view of the table above edited: sorry I still don’t really understand, I
How to make odoo progress bar use decimal?
So I am learning odoo right now, and I want to make the progress bar that use decimal to determine it’s percentage. so for example if I input a 0.5, the progress bar will show 50%, so I don’t have to input 50 to get 50%. I tried using options like below PY XML but the output is either 0/1
Override create method to Restrict user from creating a new record based on condition Odoo13
I want to restrict the user from creating a new record on a model based on a specific condition. for instance, I have two fields in the model both of them is Integer (move_item_count,item_number ) and they are computed field I compute their values. If their move_item_count != item_number I should prevent the user from creating the record and raise
Create a new record with one2many
I want to create a new line in stock.picking, which will contain the date and the quantity: There’s no error,but the line is not created,SO I tried with There I have an error : only 2 args, 4 given. Is there another way to create a line of one2many Answer myRec.pack_lot_ids.create({‘id’: my_id,’qty’: myQty}) : this is correct you need to
Odoo14 – AttributeError: ‘tuple’ object has no attribute ‘cache'” while evaluating
I have a model in Odoo to register some logs(Log) and a helper class(Helper) with async function to receive some data ad register on Log, this _job_function is called by a Cron Job like this: This is the helper class: For debugging propuser i have override the create class, to check if i’m sending wrong data. When the job is