603 questions
0
votes
2
answers
119
views
I can't remove a title from a variable in a sales order in Odoo 14
I am working with Odoo 14, and I need to remove the CNPJ/CPF title from the sale.order PDF. I’ve managed to remove the data itself, but the title CNPJ/CPF: is still showing up.
Here is the XML code I'...
0
votes
1
answer
65
views
adding chatter on res.users
I'm curious how to add chatter to res.users in Odoo14.I keep trying but keep getting error.
from odoo import models, fields, api
class ResUsers(models.Model):
_inherit = ["res.users", &...
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
41
views
XPath doesn't take any effect without throwing any errors
I want to make a button in 2 of our views only visible to users of a specific group. In the sale.order view everything works as intended. There is similar view in the account.move model which I ...
1
vote
0
answers
27
views
Acces rights, record rules and notification and messages V14
i have kind of problem understanding access rights and maybe an issue resolving this, i'v created acces right for my model "tg_quart" , and add a record rule to the same model so that the ...
1
vote
1
answer
43
views
How to change variable inside Inspector app.config w/ Sanic
I've started to learn Odoo, but the error is baffling me. I've asking questions to ChatGPT and Gemini why the problem occurs, but every time I checked, the code are the same. I don't know why the ...
1
vote
0
answers
47
views
Way to unlink ir_attachment after download it by user
i have code thea create attachment and then allow user to download it, but to keep DB clean is there any way to delete attachment after user download it?
Here my code:
attachment = self.env["ir....
0
votes
0
answers
96
views
How to set an automated action to change Active status of a view on Odoo (v14)
I have created a view which creates a popup on our website. The idea is the show this popup when the company is closed due to the public holidays. I set the public holidays in the calendar and I would ...
3
votes
2
answers
393
views
Odoo 14 Binary field inside hr.employee.public
I have a problem with the hr.employee.public model. If I try to add a new field Char, Integer, Many2one, etc. I have no issues.
However, if I try to insert a Binary field like this employee_signature =...
1
vote
0
answers
28
views
How do I make an Odoo addon model field of type HTMLField, render the context's value passed to it when updated from the admin view (not template)
In a custom odoo addon, I have created a model called AgreementTemplate. This model has a field of type HTMLField that stores the template used to display information. The problem is that from the ...
0
votes
1
answer
483
views
Odoo 14 pdf layout problem when I print the invoice there is no styles
I have installed a odoo14 solution with docker.
all works fine, but when I print an invoice pdf, the content is printed but it is not like the layout configured in the configuration.
there is no ...
0
votes
0
answers
437
views
How to allow adding context in url parameters and get the data in model/view?
Odoo 14 Community Edition
Odoo normally allows accessing views via urls by specifying necessary properties for it. For example, {host}/web#id=23&action=985&model=product.template&view_type=...
1
vote
0
answers
196
views
Uncaught TypeError: trigger_up is not a function (Odoo 17)
I am trying to upgrade an Odoo module from v14 to v17 and I am getting the error "trigger_up is not a function".
// the code below is inside:
// export class OpenStreetMap extends Component ...
1
vote
0
answers
438
views
Implement Odoo Bus service for real-time communication
I am having difficulties in setting up real-time communication for my Odoo app.
I am still a newbie to javascript so I'm not sure if my javascript code is correct or not
This is my odoo code:
class ...
0
votes
0
answers
222
views
Wkhtmltopdf failed (error code: -9) when printing a report with a large number of records
Odoo Community Edition version 14 / Wkhtmltopdf version 0.12.6 (with patched qt)
When printing a report with a large number of records (for example, printing standard Sale Order report with more than ...
0
votes
0
answers
94
views
KeyError: 'stock_move_id'
I'm trying to update a custom module in Odoo14 whereby I want to introduce a new field or column in the account.move module that tells me which stock.move movement ID, if any, each line in account....
3
votes
1
answer
605
views
How to add sale_line_id field to all of the steps in delivery order?
Odoo 14 Community Edition
From what I understand, sale_line_id in stock.movemodel is added on creation only on the delivery order. Suppose I have 3 steps: pick,pack,out. Only out has a value in ...
0
votes
0
answers
36
views
How to customize module selection page?
Odoo 14 Community Edition
Here I captured the module selection page from Odoo demo that I searched from the web. (the version is different but shouldn't matter).
I am looking for a way to customize ...
2
votes
2
answers
1k
views
Odoo Add button at header in tree view using xpath
I am a junior odoo developer (v14).
I am trying to add a button at the header in a tree view, next to the 'Create' button.
I have to add the button from an inherit template, so I think that I will ...
0
votes
0
answers
74
views
How to close One2many form view after clicking to view its detail?
Odoo 14 Community Edition
I have a customized form view of a customized model.
Inside the model and the view, I have a One2many field. As simple as
<field name="one2many_field"/>
The ...
1
vote
2
answers
427
views
How to extend a templates xml:space="preserve" in Odoo 14
I am trying to inherit the slide.slide.quiz.validation in website_slides to change the label of a button of quiz page in eLearning. No errors are showing upon upgrading my custom module and the ...
1
vote
1
answer
261
views
Odoo 14 QWEB report page border
I need to generate a pdf report with a border all around the page.
I tried to add the border to the div "page" but it doesn't take the whole page, it is dynamic based on the height of the ...
0
votes
1
answer
243
views
Odoo14, how to modify the default query conditions of search views in custom modules
I want to filter the current year's data when entering the contact module dashboard view.
I tried using custom components to add default search criteria, but it didn't take effect.
enter image ...
1
vote
1
answer
783
views
How to allow/disallow create and delete on One2Many field tree?
Odoo 14 Community Edition
I have a One2Many field called lines. I display the field as a tree in a form view like this.
<field name="lines">
<tree editable="bottom">...
1
vote
1
answer
104
views
Create Delivery Operation From My Custom Module Odoo 15
I try to within action confirm I will pass data from my module to stock.move and stock.picking so I can create complete cycle from stock.move passing with stock.picking to stock.quant to decrease ...
1
vote
1
answer
124
views
Odoo14 Action Server Error - Unable to Call Python Method Correctly
I am facing an issue while trying to define an action server in Odoo14. The objective is to call a Python method that returns a window action because I need to access fields in the current model and ...
0
votes
0
answers
67
views
What is the method that updates the stock.move of the next stock.picking step on clicking validate button?
Odoo 14 Community Edition
I have been searching through the code base for the method that updates the stock.move of the next stock.picking step on clicking validate button. I cannot find where exactly ...
-2
votes
1
answer
225
views
How to convert float to int in odoo qweb?
i need help about odoo.
i want to convert float to int in Odoo14 qweb.
<tr class="border-black">
<td>
...
2
votes
1
answer
298
views
Add line (adding a related record)
I'm showing a related model by using the
related_model_ids
field in the model form view
The link for adding a record in the related model is
"Add a line" (in the attached image it's "...
1
vote
1
answer
398
views
How to make the client download a static file from a custom module on clicking a button?
Odoo 14 Community Edition
I have a custom module with a custom model inside it.
I created a custom view. It is working correctly.
Now that I need to add a button that let the client download a static ...
0
votes
1
answer
469
views
How do I specify database in odoo Controller
How do I specify database in odoo Controller rather than select it manually from the browser?
My code
@http.route('/test/', type='http', auth='public', website=True, db='test')
def index(self, **...
1
vote
1
answer
1k
views
How to force update a field from model?
I would like to know how to force update field price_subtotal in sale_order_line model. It is computed from several modules but I would like to be able to update it from my custom module. By clicking ...
0
votes
1
answer
983
views
How to create a customized login page that logs in to Odoo?
I am working on Odoo 14 Community Edition.
I would like to create a customized login page (I already know how to create a login page). However, what I need to know are:
How can I connect this ...
1
vote
2
answers
929
views
Is it possible to create alternate views to existing models in Odoo?
I have scoured the Odoo 16 documentation and searched Google for answers to this.
All I've found are examples of altering/modifying/overriding existing "tree, form, kanban" views. Nothing I ...
2
votes
1
answer
370
views
How to list blog posts filtered by a tag on Odoo (v14)
I use Odoo Blog module for adding news on our website with using tags. I would like to add block of last few posts in different pages, filtered by specific tag. Unfortunately, by default, there is no ...
-1
votes
2
answers
189
views
Change client information on invoice odoo 14
In the invoice template, i want to change the place of client information, I want the zip code after the street address directly, I can't find the source code of it.
where i can find the source code ?
0
votes
1
answer
103
views
How to restrict hours to specific period in odoo calendar
I want to change calendar time period with some user input field.
eg.: in week calendar, I want to show only business day (8AM - 5PM) not (0AM - 12PM)
2
votes
3
answers
195
views
Set 'city' field as mandatory base.view_partner_form (Odoo 14)
I'm creating a custom module to set 'city' field as mandatory on base.view_partner_form, in Odoo 14.
I have tried
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<...
1
vote
1
answer
102
views
empty recordset. Why?
In a Odoo 14 shell, I'm doing this
env['model_A'].search(['model_B_id', '=', '17' ])
I know for sure that there are several records in model_A with the field model_B_id set to 17
I get an empty ...
0
votes
2
answers
186
views
How can I assign a value to warehouse_id through a custom module in Odoo?
I'm using Odoo 14 community version to test some developments locally.
I want to create a custom module that assigns a specific warehouse when the Sale Order is created depending on a logical ...
0
votes
1
answer
121
views
Load extended field into POS from session doesn't work
I have a session:
class POSSession(models.Model):
_inherit = 'pos.session'
access_token = fields.Char(string="Access Token", readonly=True)
I'm trying to get access to the that ...
1
vote
1
answer
1k
views
Is it possible to upgrade Odoo.sh from a staging database?
Does anyone know if it is possible to upgrade an odoo.sh staging database through the upload form from here? https://upgrade.odoo.com/#odoosh
The Odoo.sh upgrade service says that the DB used to ...
0
votes
1
answer
49
views
iteratively selecting a subset of a model by select fields in odoo 14
I have a model
I need to provide 4 select fields
The values choosen in the first select field will be used to calculate a subset of the model to show in the second select fiedl
the valued choosen in ...
0
votes
1
answer
112
views
How to Create Calendar View For Hr Attendance in Odoo
Wanted to add calendar view for Hr.attendance in Odoo for version 16.0
Don't know how to create calendar view for hr.attendance. by default Odoo base doesn't provide calendar view for hr attendance ...
1
vote
0
answers
35
views
Why is the partner_id field filled in in one tab, but not in the other, even though the module and view are the same?
I have landed costs in odoo, and there are two documents there: Journal Entry and Vendor Bill. If I go to the Vendor Bill, then in the partner_id tab I have all the fields filled in, but if I go to ...
0
votes
1
answer
75
views
How to find the method that called a specific method?
I am looking for a way to find which method called a specific method that I am currently in.
For example, I am looking at create() method of account.move.line model.
@api.model_create_multi
def create(...
3
votes
0
answers
229
views
Make the display of selection in Many2many field into "Employee (Department)" in Odoo
Any idea on how to make the value of employee_ids with {Employee ID - Department name}? So when I select on the field it should look like this: Person1 (Dept A), Person2 (Dept B)
This is my XML:
<...
0
votes
1
answer
78
views
How can I display my custom model fields within the components of a modal on a website?
I'm feeling a bit confused about how to retrieve data from my backend model and display it on my website. For instance, I'm using a drag-and-drop component provided by the website's model. How can I ...
0
votes
1
answer
304
views
passing an argument to a method called from clicking a button
I have the tree view in the attached picture
Let's say this is a tree view on model A
I want to selct one line and then click a button that creates a record in another model, say model B, using the ...
0
votes
2
answers
315
views
How to change background image in Odoo Website Sliders
I've been trying to replace the image from Odoo Website sliders that are accessed through localhost:8069/slides. But it won't still displayed. Did I missed some import?
I inherited the website_slides....