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
Tag: odoo
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
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: class …
odoo PyCharm configuration / no module named ‘odoo’
I’m newbee in programming and I need some help. I have to work with PyCharm and Odoo, so my point is to configure PyCharm for Odoo debugging. First of all I made a module and a model, it perfectly …
How to log warning, error and other info in Odoo development? [closed]
Question: I want to log the warning in odoo logs if any warning or error comes up. Is there any way out of it? Thanks in advance.
What is the alternative of @api.one in Odoo 13?
Right now when I started coding on Odoo v13 I found that Odoo has been removed @api.one. What is the alternative of the @api.one in Odoo v13 ? Answer In odoo13 by default instance method will accept self as multi instance (multi-recordset). So for instance method, you should remove the @api.one and @api.multi decorator from […]