12,875 questions
0
votes
1
answer
253
views
Odoo: Updating on hand quantity in stock.quant
I created a server action where when the user clicks it, it will decrement the user's onhand quantity but it won't force save
for record in records:
location = record.x_studio_stock_location
...
0
votes
1
answer
59
views
What is the name of the XML file that generates the PDF invoice report and how can I know it?
I am trying to add a new column (Number of Members) to the PDF invoice and hide the tax column. When I generate the PDF file, no change happens. I want to know which XML file generates the invoice.
...
1
vote
1
answer
120
views
TypeError: Many2many fields res.partner.supplier.channel_ids and res.partner.channel_ids use the same table and columns
I am developing a simple module for Odoo 18.
I have created the following Model (like shown in docs):
class Supplier(models.Model):
_name = "res.partner.supplier"
_inherit = "...
1
vote
1
answer
92
views
Export/Import Issue: "Root articles must have internal permission"
I'm looking to export Knowledge articles out of Odoo 17 and import them into Odoo 18. When testing before performing the actual import, I receive the following error message:
The file contains ...
1
vote
1
answer
488
views
Odoo 17, Problems with the soft argument in the post_ method
I made a development that runs on the _post method of Odoo 17, while I was developing it there was no problem, it was not until I installed it on a new base when this error started to occur at the ...
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
28
views
Odoo is keeping loading an overridden field as defined from the core
In one of my customizations, I have a field ProjectProject.company_id as not required, but for some reason when Odoo is upgrading modules, it loads the core module Project and set the value again (...
0
votes
1
answer
39
views
Error in Odoo 8 module: Missing Error what is the solution?
Good afternoon, I have an error in my Odoo 8 module, the error is like this: MissingError
One of the documents you are trying to access has been deleted, please try again after refreshing.
Screenshoot ...
1
vote
0
answers
54
views
How to Add Custom Report Button to Sale Order in Odoo?
I'm currently working on a custom Odoo module in Odoo where I want to add a custom report button called "Order Product Summary" to the Sale Order form. The goal is to create a summary report ...
0
votes
4
answers
267
views
How can I hide a menuitem at odoo
I'm trying to hide a menuitem for all the user at crm module in odoo 17, with id res_partner_menu_customer, this is located at crm/views/crm_menu_viewls.xml
This is the original xml code
<menuitem
...
0
votes
1
answer
424
views
How can I add a custom snippet?
I'm trying to create a custom snippet on Odoo (version 18, it's important). I'm following this example. The source code is here
Unfortunately, I'm unable to make the snippet appear on the version 18 ...
1
vote
1
answer
118
views
Passing Custom Field Values from Sale Order Line to Stock Moves in Multi-Step Delivery Processes in Odoo
I have created two custom fields, one in sale.order.line and another in stock.move. When a sale.order is confirmed, it creates a stock.picking with product details in stock.move. I want to pass my ...
0
votes
1
answer
59
views
How to Select a Dynamically Generated Dropdown Item in an Odoo12 Tour Test Using JavaScript?
I've been working on a custom Odoo12 tour test, and I’m running into an issue with selecting items from a dynamically-generated dropdown. Here’s a breakdown of the steps I'm trying to implement:
In a ...
1
vote
0
answers
36
views
Progressbar in form view displaying integer values instead of percentage
I want the progress bar in the form view to display integer values, like 20/50, instead of showing a percentage (e.g., 40%). Please provide a simple solution.
I tries different widgets but not getting ...
1
vote
1
answer
301
views
Add an xlsx report to the print button Odoo 17
I am trying to add a custom report in xlsx format (for excel) and I want it to be accessible from the print button on my purchase orders.
I understand that in other versions it is possible, but many ...
0
votes
1
answer
113
views
Odoo 17 using many2many to select all employee
I want using many2many fields to select all employee in my own custom module called racing teams. Every employee will have different tier in their own team.
Model
class RacingTeams (models.Model):
...
0
votes
0
answers
102
views
Problem to get the correct URL on odoo 15 webpage
I'm having problems to get the correct parameter values when accessing a webpage on my Odoo server. the URL came with only only one parameter ID, the first time the correct value get is get with ...
1
vote
0
answers
123
views
How to Create a Lead in Odoo 17 Using Only API Key for Authorization (No Session ID)
I'm trying to create a lead in Odoo 17 by sending a POST request with an API key in the Authorization header (Bearer <API_KEY>). However, I keep getting a "Session Expired" error ...
0
votes
1
answer
57
views
How to execute unit test with limited privileges
In my Odoo module I Am trying to build an unit tests and perform an action with limited user privileges. The matter is that in Odoo all unit tests are executed with superuser privileges.
In the ...
0
votes
1
answer
41
views
Is it possible to activate second or third notebook page instead of the first one, based on some conditions?
Is it possible to activate second or third notebook page instead of the first one, based on some conditions?
For example, If boolean field A is checked then activate or focus on second page and if ...
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 ...
1
vote
1
answer
52
views
Automated action for report filtering in odoo V17.4
I need to perform an automated action in odoo V 17.4 (ONLINE) to obtain a custom view of a production order report, I tried to place this code but it is not working and now the original report fails
# ...
1
vote
1
answer
70
views
Odoo tests with forms: AssertionError: field_name was not found in the view
When making tests for a form in Odoo, when assigning a value to a field let say field_name,
my_form = Form(self.env['my.model'])
my_form.field_name = 'test'
inmmediately throwns error:
AssertionError:...
1
vote
1
answer
64
views
How can I install multiple Odoo modules at once using a single custom module?
I’m working on an Odoo project where I frequently need to install both the contacts and hr modules. Is there a way to create a "wrapper" module that, when installed, automatically installs ...
1
vote
2
answers
111
views
View inheritance by multiple modules
I need to inherit the point of sale orders search view to add a custom filter. The view is defined like this
<record id="view_pos_order_filter" model="ir.ui.view">
&...
0
votes
0
answers
133
views
How to add Selection field in odoo17 with options depending on value of other field
I need the selection field options to be dynamically updated immediately when the value of a certain field changes.
I tried it this way, but it didn't work
class SomeModel(models.Model):
field1 = ...
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
104
views
Odoo 17 Getting attributes from custom component
I have a custom component called my_widget. I add it inside a form:
<field name="my_field" widget="my_widget" depends="field_a, field_b" />
Where depends should be ...
0
votes
0
answers
624
views
Activating an Application in Odoo 18 Gives Model Not Found Error
I have a Model not found: meeting.management for this particular code snippet below and I do not understand why. I am using Odoo 18. So the error comes up after the application/module has already been ...
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 ...
2
votes
1
answer
392
views
How do I access the fields in a QWeb report? Odoo 17
I have this Python model to get the data I want to work with.
Actually all this code works fine, maybe there is room for improvement but it gets the data I need, I have already tested and everything ...
2
votes
1
answer
205
views
Remove path in url: from mycompany.com/en to mycompany.com
I'm using Odoo 16.0 and 18.0 (Community Edition) and Nginx as reverse proxy.
Odoo natively implements the multilanguage function like this:
www.mycompany.com/en - for English
www.mycompany.com/it - ...
1
vote
0
answers
55
views
Fill a field inside dialog after return of method call
I want to fill the Conclusion field after I click on Copy Notes button. How to do this in Odoo? I tried using the value property in the returned data but nothing happened.
@api.multi
def copy_notes(...
0
votes
1
answer
192
views
wkhtmltopdf (Odoo) wrong characters seen even if they're escaped but good on html source
I have to make a report on Odoo from scratch, not using the standard layout. I have some lines of the report that shows the currency symbol €. But the PDF is showing strange symbols. I tried to escape ...
-2
votes
1
answer
327
views
Create Invoice Attachment using API call in Odoo 17
I am currently working on sending invoices via email using the Odoo 17 API from a Node.js server. I've managed to handle most of the tasks, but I encountered an issue when trying to send an invoice ...
0
votes
0
answers
42
views
How do I add logic to a QWeb report?
I want to create a somewhat sophisticated report with invoices, but I have never worked with QWeb.
Is there any way to implement python logic to the xml?
Such as comparing dates, as in this example.
&...
0
votes
0
answers
299
views
Why my Odoo extra-addons app doesn't show up?
I've been developing an odoo for my interest on my server with a Docker and when I try to add an extra-addons app to odoo for testing, it's not showing up.
Here's what I've done:
I've add my extra-...
0
votes
1
answer
99
views
how can I code in odoo with full control?
I'm currently working on a website using Odoo. It has a drag-and-drop system for building the UI, but the design and customization options are quite limited for my needs.
I would like to know if there ...
2
votes
1
answer
387
views
How to add button to customer portal: Odoo17
I want to add a button to the customer portal:
I added this view
<template id="portal_my_home" name="Show Blogposts" customize_show="True" inherit_id="portal....
1
vote
0
answers
69
views
odoo 17.0 'always_reload' don't exists, what's the equivalent in this verison?
I have an issue with the delivery address. I want to show the partner address on the stock.picking.batch.form. Right now, the content (a part of) of the view is like this:
<xpath expr="//...
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 ...
2
votes
1
answer
144
views
odoo v17 render one2many field on crm kanban card
I have added a custom one2many field in crm.lead model:
class CrmLead(models.Model):
_inherit = 'crm.lead'
quote_ids = fields.One2many('insurance.quotes', 'crm_lead_id', string='Quotes')
...
1
vote
1
answer
106
views
Odoo Save and New Wizard form remember fields data
I need it when adding one2many records in form not in tree.
When you click save & new save the fields and keep some fields not to be cleared to add a new record.
Make one2many modal remember ...
1
vote
1
answer
303
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 ...
0
votes
0
answers
86
views
I want to inherit the event view to my customer model in odoo but this error was appear how can i solve it?
I want to inherited event view to my customer model in ODOO but this error was appear the error is:
File "/home/abdalrahman/odoo_apps/odoo.15/15/odoo/tools/convert.py", line 748, in ...
1
vote
2
answers
98
views
remove purchase order PurchaseDashBoard in odoo17
how can i remove purchase order PurchaseDashBoard
in odoo 17
<templates>
<t t-name="purchase.PurchaseKanbanView" t-inherit="web.KanbanRenderer" t-inherit-mode="...
2
votes
1
answer
178
views
Invalidate OWL field to prevent save data in Odoo 17
I'm taking the email widget called EmailField to add new features I need.
This email field didn't validate the format and it allows you to save the data without validation.
So my question here is ...
1
vote
1
answer
328
views
Import whole module error on odoo 17 because Access Right cannot read the model
I get this error while import the module:
Error while importing module 'pos_margin_sale'.
Module loading pos_margin_sale failed:
file /tmp/tmp5bby2hp9/pos_margin_sale/security/ir.model.access.csv ...