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 work with database(i can see and check it). I want PyCharm not to highlight word ‘odoo’, ‘models’ and ‘fields’ by red
Tag: odoo
How to log warning, error and other info in Odoo development? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question 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
odoo domain filter many2many?
i’am added a car field in product template which related to the car model that contains all cars, also i’am work in multi compny, and i’am also added a many2many relation with car model, all i need is to filter the cars in product template and display all cars that i have been assign in the company this is my
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 your methods. For a single
Odoo. Hide some options in field selection
I have some selection field in my model. Here example: In some cases I need hide specific options in selection(or radio buttons). How I can do this properly? Below screen from base calendar module which can more explain about my problem. Thanks in advance. Answer I found the solution. First of all we need to create custom widget for FieldSelection.
Value of custom field in sale.config.settings is not displayed in sales settings view
I try to add a new configuration field for sales configuration settings by inheriting the standard sales settings view/model using a custom module. Creating the field in the model works fine and a value entered in the view is also successfully written to the database. However, if I reload the view for sales configuration, the previously stored value is back