53 questions
0
votes
0
answers
69
views
How to display and edit a One2many field in a form view as an embedded form, not a list?
I’m trying to model a one-to-one relationship between two models in Odoo.
My approach was to use a Many2one + One2many, but on the form view Odoo always displays the One2many field as a list instead ...
3
votes
0
answers
83
views
How can I make a fields.Monetary keep 5 decimal places?
I need a monetary field to keep 5 decimal places (e.g. 12.34567), but Odoo version 18.0 enterprise keeps rounding to the currency’s precision (2 decimals for my company currency).
Here is my code:
...
0
votes
1
answer
71
views
Receiving error that field doesn't exist after upgrading module
When I add a new field in my .py class and then add to XML view, when upgrade the module Odoo says the field does not exist in the model XXX
in Python
class MyClass(models.Model):
_name = 'MyClass'...
0
votes
2
answers
135
views
How can use a post_init_hook to automatically check a checkbox in the settings of Odoo
I'd like to know how to automatically set a checkbox in the settings using a post_init_hook, I'm working on version 18 of Odoo.
I am installing a custom module and I want to have some checkboxes (like ...
2
votes
1
answer
84
views
How to add a CustomButton?
I'm running Odoo 18.0 on Ubuntu 24.04.
Tried lot of ways to add a custom button in the ControlButton section besides 'Action' button, I even fully copied a code from this yt video of version 18.0, yet ...
1
vote
1
answer
108
views
payment.transaction set to 'done' but payment not created and is_post_processed remains False while using custom online payment gateway
I am developing a odoo18 custom payment provider. After a successful transaction and return response to odoo. When it comes to update the transaction status to done using tx._set_done() this only ...
1
vote
1
answer
97
views
HTML5 <video> poster thumbnail not showing in Odoo — want to show thumbnail initially and play and load on hover only
I'm trying to implement lazy loading of videos in a dashboard view in Odoo 18.
My goal is to:
Show a thumbnail (poster) initially
Avoid loading/buffering any video on page load
Load and play the video ...
0
votes
1
answer
118
views
How to add multiple lines?
I am trying to add lines to Odoo pos order lines in pos_screen, but this only adds the first selected products somehow.
I am filtering selected orders from order.lines and copying all data from it. Is ...
1
vote
1
answer
210
views
How to add fields in res.users, and make it available to every module?
As the title said,
I need to add some fields that would be available on every modules, as default. They are phone number, room, and extension number. Almost all internal modules are using the phone ...
0
votes
1
answer
70
views
Odoo 18 (js): How to extend the native payment_paypal module to activate the PayLater feature?
I am trying to figure out how to extend the js class of the native module payment_paypal, so that the PayLater option, that i have activated in PayPal get activated.
In the native js code in /addons/...
1
vote
1
answer
634
views
Using Docker container for Odoo version 18 and Postgres 17
I tried to create a Docker container for my Odoo application. I wanted to have a customized password so I used this docker compose sample from Hub Docker for Odoo but changing the version to Odoo 18 ...
0
votes
1
answer
71
views
How to add WYSIWYG on website portal textarea?
In odoo18, i have customized the view of the frontend page /my/account by inheriting the view "portal.portal_my_details" to add a custom field wrapped into an HTML textarea. I have added the ...
0
votes
1
answer
102
views
How to dynamically adjust the selection?
I've been trying to do these, but as I've browsed the answers, most of these problem ended up with deprecated one, or simply no solution.
job_id = fields.Many2one('inw_asset.job_orders', string='...
0
votes
1
answer
63
views
How to compute on load?
I have a model like this:
# Calculated Fields
request = fields.Many2one('job.request', string='Request', required=True)
e_name = fields.Char('Nama Asset', store=False, compute="...
0
votes
0
answers
49
views
How to create a schedule action in Odoo?
I want to create a scheduled action in Odoo for archiving old job posts but unfortunately, I got some errors:
Here is my XML code for the action:
<odoo>
<data noupdate="1">
...