296 questions
2
votes
1
answer
73
views
Portal users can`t see product model
On the website, I want to show users sales orders and products.
The problem I encountered is that Odoo does not want to display both (sales orders and products).
Therefore, I added recording rules and ...
1
vote
1
answer
74
views
Error migrating custom module view from odoo15 to odoo16
I designed a module in Odoo 15 and now I am migrating it to Odoo 16. Throughout the migration, I have encountered a series of problems, but I have been able to solve them. This time, I have come ...
0
votes
0
answers
29
views
odoo 16 community version. website restriction
I am using odoo16 community version and i have a lots of websites and users. I want to restrict some users to edit some parts of the website like header, footer, menu... In order to keep the standard ...
0
votes
1
answer
64
views
How to dynamically change company name based on login domain in Odoo?
I want to change the company name displayed in Odoo dynamically based on the domain used for login.
For example:
If a user logs in via company_1.com, it should display Company 1.
If a user logs in via ...
0
votes
1
answer
432
views
Inheriting POS Self Order Product Card Template in Odoo 18: Custom Fields Not Showing
I am working with Odoo 18 and have added custom fields to the POS self-order product card. Specifically, I added **preparation_time **and **short_description **fields to the product.template and ...
1
vote
1
answer
149
views
Odoo 16, How to change report name after .report_action() call, or how to use data object to extract name in report.xml
I have a problem where I cannot get my filename to be a custom one when passing in a data object to .report_action() in Odoo 16.
If I use it as expected [something].report_action(rec,{}), it'll be all ...
1
vote
1
answer
72
views
Odoo 16 External ID not found in the system: website.assets_frontend
I'm kinda new to Odoo and I want to make my own odoo module snippet. But when I try to activate my snippet, I'm getting this error:
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
...
1
vote
0
answers
203
views
Odoo not working - no CSS on login page and blank screen post-login
I cloned a project from GitLab that uses Docker to set up multiple services, including Odoo 16, PostgreSQL, a FastAPI backend, and a Next.js frontend.
The project works perfectly on my colleague's ...
2
votes
1
answer
54
views
Why a JS method in Odoo 16 works only sometimes with similar environments?
I'm working with Odoo 16. I've installed the Enterprise Barcode app, and I've made a generic development over it.
The Barcode app has a menu which shows pickings in a kanban view. What I'm doing with ...
0
votes
0
answers
41
views
Odoo autocomplete feature on mobile number creates issue while creating contacts
I had locally setup the odoo project on my machine. I am working on a issue where I have to merge the duplicate contacts in an automated manner. But before I wanted to create few duplicate contacts on ...
2
votes
0
answers
118
views
Why is this._super undefined the first time Odoo goes into an inherited JS function?
I'm using Odoo 16 and I'm inheriting from a JS function this way:
/** @odoo-module **/
import { StockBarcodeKanbanController } from '@stock_barcode/kanban/stock_barcode_kanban_controller';
import { ...
2
votes
0
answers
73
views
Why does alternative DB cursor remain loading forever on commit?
I have a problem when using the l10n_es_aeat_sii_oca module. After a while I could locate the problem, and it is in this peace of code:
try:
...
except Exception as fault:
new_cr = Registry(...
1
vote
2
answers
94
views
How can I automatically add followers to a Task based on the employees selected in a Many2many field?
I have a Many2many field x_studio_many2many_field_Cv65K in the project.task model, linked to hr.employee. This field allows selecting employees as "Performers" for a task. I want these ...
1
vote
1
answer
31
views
How to make Event module tree,form views visible in a custom module?Tried inheriting & creating menuitems,but there's no action for the event views
In Odoo I have inherited many addons module in the custom_addons module, but in Event module I am facing issues, as to show the module we have to set the action in the <menuitem/>, and the ...
0
votes
0
answers
142
views
Dynamic many2one field domain in Odoo 17 based on callback function
I need to create a new Many2one field in Odoo 17, extending the standard res.partner model so that the domain of the newly created res_partner.settore_principale field and its possible values are ...
2
votes
2
answers
136
views
How to display 2 times an address field in form view Odoo 16
In the form view in Odoo 16, I have 2 times the same field, one to display only the name of the partner, and in another, I have the name and address.
In both cases, it displays the name and address.
...
0
votes
1
answer
104
views
Portal widget not working for public users
In Odoo v16 Template form, I have a selection field “Activity Type” that contains records from backend (like Many2many-tags widget but now in Portal), will be chosen by the user, and the user can ...
2
votes
1
answer
75
views
How to get a model's module
I need to get the module name where a model is defined
When I ran env['res.partner']._module inside an odoo shell, the output is snailmail_account_followup, but I expected it to report base
In odoo....
0
votes
1
answer
41
views
readonly with multiple nested conditionals
can someone help me please, in Odoo 16 I need to do a readonly with some complicated conditions, it would be this:
readonly if (v1=A and (v3=X or v3=Y)) or (v1!=A and v2!=B and (v3=X or v3=Y or v3=Z))
...
0
votes
1
answer
29
views
Odoo modue Event Registration duplicate key value violates unique constraint "utm_medium_unique_name"
Using the module Event (website_event_sale), there is an error occuring for some (few) of the customers in front office, when they click on the REGISTER-button that bring to the cart:
ERROR xxxxx-oerp-...
0
votes
1
answer
113
views
Events on field change
I am working on Odoo 16 and I am trying to add a confirmation alert when someone tries to change the stage of any record using the statusbar widget.
enter image description here
Basically, when you ...
2
votes
1
answer
551
views
Access Error for Base Users on ir.attachment in Odoo 17
I'm encountering an access error in Odoo when trying to allow base users to read attachments (ir.attachment). Specifically, the error states that the user (id=6) does not have 'read' access to certain ...
0
votes
0
answers
90
views
overding an async function in odoo js
so I'm working on POS I added a custom qr code to the receipt generated but now I'm getting an encoding error because the async function to decode the image is set to time 0 - I want to override that ...
1
vote
1
answer
146
views
How to avoid "Field does not exist in the model" error after deleting a field in code and view Odoo
Is there a way to avoid the field does not exist in the model error when deleting a field in both Code and XML? So my problem is that when I try to delete a field and already have an existing database ...
0
votes
1
answer
174
views
How to make custom QWeb report render on public URL in Odoo
In odoo we can access inbuilt object via token url like this:
http://localhost:8069/my/invoices/8336?access_token=96c52b2d-3604-4817-82be-4392aa8d051e&report_type=pdf
If I have designed custom ...
3
votes
0
answers
170
views
removing ghost js-asset in odoo 16
After having removed a js asset file (kanban_controller_zsb.js) from one of my custom module (event_xsb1) in odoo 16, it is still remaining and causes trouble to load new js assets of other custom ...
0
votes
1
answer
129
views
Odoo 16: Change the original write method
In odoo source code I have (hr.leave module)
def write(self, values):
if 'active' in values and not self.env.context.get('from_cancel_wizard'):
raise UserError(_("You can't ...
-1
votes
2
answers
189
views
type error: installing odoo 16 on ubuntu 18.04
I am installing odoo 16 on ubuntu 18.0 desktop version. I updated and upgraded ubuntu. I am getting this error message when I run this command:
sudo git clone https://www.github.com/odoo/odoo --depth ...
1
vote
0
answers
74
views
How to restrict access to a record based on one2many field access
In odoo 16, I have a request model that has a one2many line_ids field.
I want to restrict access to the request record if the user has no access on at least one line. How to do that?
Let's say the ...
1
vote
0
answers
117
views
Odoo snippet not visible in Website Builder after module installation
I'm developing a custom module for Odoo 16 that adds a BMI calculator snippet to the Website Builder. However, after installing the module, the snippet does not appear in the blocks section of the ...
1
vote
1
answer
302
views
Odoo: How to open record on new tab by clicking a link with icon
ers:
I want to open a record from a list view on a new tab.
I tried making a computed char field making an URL and put a widget="url" but it put the whole link as a text making the cell too ...
1
vote
0
answers
50
views
Odoo16 SearchPanel DEFAULT STATE configuration
Are there any Odoo16 developers? Does anyone know if it is possible to set a default value for searchpannel?
This is how it is initially set when we visit this page:
Expected result, set the default ...
2
votes
1
answer
107
views
Odoo Models linking issues "self.id" giving "_unknown(43,)"
I'm working with Odoo 16 and have encountered a problem with linking two models and handling _unknown values. Specifically, I have two models: nkap_custom_paiement and account.payment.register. The ...
0
votes
1
answer
286
views
Having trouble with Odoo 17 action.post
Error:Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\xmlrpc\client.py", line 1122, in __call__
return self.__send(self.__name, args)
^^^^^^^^^^^^^^^^^^...
0
votes
1
answer
41
views
How to set default_order_line when opening sale order form? something went wrong in 'default_order_line
def action_create_sale_order(self):
self.ensure_one()
if not self.product_ids:
raise ValidationError("Please select a product to create a Sale Order.")
return {
...
2
votes
1
answer
1k
views
How can I set all form fields readonly in Odoo 16 depending on a field?
In Odoo 16, I'm trying to make all fields from a form view readonly depending on the value of other field of the same form.
First I've tried the following:
<xpath expr="//field" position=&...
-1
votes
1
answer
100
views
POS add field in pos.config issue
When I try to add my custom added field restrict_create_customer to pos.config and inherit _loader_params_pos_config to add field in pos.session in odoo 16 it raises this error
my python code:
class ...
0
votes
0
answers
39
views
After a server restart, an Odoo 16 nested tree view displays a blank page initially, but the data only becomes visible after clicking on the page
I am implementing a tree view in a tree view to display data. In the job_description model. we have a details_id that links the job description to the job details stored in another table also included ...
0
votes
1
answer
178
views
Extend Calendar Popover View in Odoo 16
I’m trying to extend a calendar view in Odoo 16, specifically the “popover”. I’ve followed various steps and guides, but I keep encountering the following error:
odoo.tools.convert.ParseError: while ...
1
vote
0
answers
164
views
PyPDF2.utils.PdfReadError: Cannot read an empty file
I have this code below in Odoo 16. When I want to print a single document/download it works!
But if I want to print three or more documents, I get this error:
PyPDF2.utils.PdfReadError: Cannot read an ...
0
votes
1
answer
86
views
Odoo16: api.depends call order
In Odoo 16, I have 2 computed fields:
rec_name = fields.Char('Rec name', compute='_compute_rec_name', store=True, translate=True)
located_between = fields.Char('Located between', compute='...
-3
votes
1
answer
57
views
The computer to calculate the amount of each beef automatically does not work
I have a problem with 2 modules in Odoo, the first is my auxiliary module that stores the price per kilo of each beef:
enter code herefrom odoo import api, fields, models
class LivestockPrice(models....
1
vote
0
answers
159
views
Odoo 16: Context not passed correctly when creating a new contact
I am working on an Odoo 16 module and I'm facing an issue with context passing when creating a new contact from my module. Specifically, I have three custom fields that should only be visible when a ...
1
vote
1
answer
550
views
How to Integrate and Use Owl JS in Odoo 16 Website Module?
I am working on a custom website module in Odoo 16 and I would like to leverage Owl JS for some dynamic frontend functionality. However, I am not sure how to properly integrate Owl JS into my Odoo ...
0
votes
0
answers
303
views
Odoo v16 - Inconsistent loading of CSS on reports
We are experiencing some inconsistent loading of CSS on an Odoo database hosted on Odoo.sh. When sending invoices in bulk the CSS randomly fails to load for a few invoices and then loads fine again ...
0
votes
1
answer
125
views
How do I create a valid XRechnung without a VAT of the customer?
When validating an XRechnung created by odoo 16 (Odoo 16.0-20240522 (Community Edition)), I received the following (slightly misleading) message “Buyer electronic address MUST be provided (val-sch.2.1;...
1
vote
1
answer
189
views
How do I sort customer column by name?
Does odoo 16 offer the option of sorting the customer list alphabetically in ascending or descending order? In the module res.partner (view_type=list) I can sort the entries by all columns, but not by ...
0
votes
1
answer
112
views
Odoo: Outdated term is keeping on DB when translations terms on a related field if value changes
I have a field that is related to a translate = True, but when value changes from a form, it only changes the translated term. Old term is being keep on DB.
Let's say we have this model A:
class Main(...
3
votes
1
answer
106
views
Dynamic update of add_qty parameter in Odoo eCommerce product details page
I'm customizing an Odoo eCommerce website and I need to modify the add_qty parameter in the product details page dynamically via a URL parameter. I'm extending the WebsiteSale class to achieve this.
...
1
vote
1
answer
159
views
JavaScript Extension Not Triggering in Odoo 16 Tree View
I am working on an Odoo 16 module for insurance management and have encountered an issue with a JavaScript extension that is not being triggered as expected. My goal is for users to be redirected to a ...