Questions tagged [odoo-8]
Odoo S.A. is the software vendor of the Odoo Apps (formerly OpenERP).
2,298
questions
0
votes
1
answer
31
views
odoo 8 upgrade module from command line
I want to upgrade my module from command line so I dont have to upgarde it from odoo dashboard. I have tried command like this but failed.
cd odoo-server
./odoo-bin -c /etc/odoo-server.conf -d ...
0
votes
1
answer
40
views
odoo 8 inherit from inherit view
I have this odoo xml under the folder sale_order_dates:
<record id="view_sale_orderfor" model="ir.ui.view">
<field name="name">sale.order.form....
1
vote
2
answers
47
views
how inherited with odoo I want to modify the type of consultation as on this code but I don't want to touch the source file
here is the code I want to change the type of consultation to: -new consultation -followed by consultation
class OeHealthPhysician (osv.osv):
"""New class the oeh.medical.physician&...
0
votes
1
answer
26
views
odoo8 Field year selection with today year as default
I want to make a year selection where the default year is now.
This is my .py
def get_years():
year_list = []
for i in range(2022, 2036):
year_list.append((i, str(i)))
return ...
0
votes
1
answer
31
views
odoo 8 make button invisible from compute result
This is my .py
@api.depends('product_id')
def get_sales_divisi(self):
for line in self:
if line.product_id.divisi_update:
line.sales_divisi_id = line.product_id.divisi_update....
0
votes
0
answers
26
views
how to print several products on the same page with odoo
here is the template that I use but the products are printed each on its page whereas I want the product to be printed on a page once the page is full that it continues on a new page
<?xml version=&...
0
votes
1
answer
56
views
Odoo create stock.move.line to reserve stock
product_id = 465
location_id =8
product_qty =1
lot_id = 118
env['stock.move.line'].create( {
'company_id':1,
'picking_id':record.id,
'lot_id':lot_id,
'date':record.date,
'location_dest_id':...
0
votes
0
answers
31
views
and a print Button to a views Odoo 8
I want to add a print button to a view on odoo but I encounter some difficulty see what I did and the errors I encounter
<openerp>
<data>
<record id="...
0
votes
0
answers
33
views
Custom color palette in Calendar view Odoo 8
I am trying to display a model on the calendar view,
<calendar date_start="check_in" date_stop="check_out" quick_add="false" color="state"
...
0
votes
1
answer
100
views
Odoo 8 - how to get field values of current active id or current model
How to access the fields of current form view if it is not yet save or in editing mode?
I tried getting the current active id but I cant get it.
In my .py
@api.one
def _check_butcher(self):
...
0
votes
1
answer
80
views
Change the Position of field in Xpath
i want to change the position of Button Refuse10 have to take the place of send for payement illustration
this is the natif code
<record id="view_expenses_form" model="ir.ui.view&...
0
votes
0
answers
17
views
Odoo v8 How to show full size list view in a m2m search
I have a this field in Odoo
third_check_ids = fields.Many2many('account.third.check', 'third_check_voucher_rel',
'dest_voucher_id', 'third_check_id', 'Third Checks', readonly=True,
states={'draft': [('...
1
vote
1
answer
80
views
Context from One2many not updating
I'm kinda new to Odoo (working on Odoo 8), I made a wizard that has a one2many field, referring to another Transient Model
I added a button inside the tree view that's supposed to display details of ...
0
votes
1
answer
45
views
ir.rule with a related field, only working with new records [Odoo v8]
I have this ir.rule. I want a group only see their own records on account.voucher.
<record id="ir_rule_account_voucher_restrictions" model="ir.rule">
<field name="...
0
votes
1
answer
23
views
Group by period
I am working on Odoo 8 and I have a model that has two date fields (check_in and check_out). I need to perform a group by month filter, but i want records that have different months for their ...
1
vote
1
answer
188
views
Create a new record in another model with a condition in Odoo v8
I have this model
class crm_claim(models.Model):
_inherit = 'crm.claim'
needs_credit_note = fields.Boolean(string="Needs Credit Note?")
partner_id = fields.Many2one('res.partner'...
0
votes
0
answers
53
views
How can i import a func from another script in odoo?
I am trying to import a function from another script in odoo but when i run the odoo its returning me a error. After i refresh website its working okay. But when i run the odoo every time i have this ...
0
votes
2
answers
55
views
Odoo - Different XPath depending on a field
I want Odoo to show an Xpath or not, depending on a condition
I have this 3 fields
lots_id = fields.Many2one('stock.production.lot', 'Lot/Serial Number')
q_auth = fields.Boolean(related='lot_id.q_auth'...
0
votes
1
answer
86
views
Filter with a computed field is not working [Odoo 8]
I have to display in a tree view the number of attachments an invoice has. This is OK, I'm doing it with a compute.
I also have to be able to filter the invoices that have attached files and here is ...
2
votes
2
answers
132
views
Multiple Server Actions in Odoo 8
I'm adding a new server action to my Odoo, but is not working ok. It's supposed to check the n selected items, but only is checking the first one. What I'm missing?
XML
<record id="...
0
votes
1
answer
21
views
How to add restriction to Users in Odoo
I have boolean validation field in a module called billing_notice. I only want some users to modify this field.
Let's say, I have user1 user2 and user3
I only want user1 to have the power to modify ...
0
votes
1
answer
49
views
Mass edit a field in Odoo
I want to select some of the items like in the photo, and then have a button behind "delete" button to validate all the selected fields at the same time. How can I do this without adding ...
0
votes
1
answer
89
views
Select related field before the field itself - Odoo 8
I'm working on Odoo 8 and i have 3 tables : bloc, floor and room
with floor having a many2one relation with bloc, and room having a many2one relation with floor
when creating a room record, i want to ...
0
votes
1
answer
177
views
Odoo 8: How to store computed fields
I have this python file
class sale_order_line(models.Model):
_inherit='sale.order.line'
@api.multi
@api.depends('product_id')
def _get_cost_price_currency(self):
for lot in ...
0
votes
0
answers
71
views
Unable to authenticate Odoo8 db wirh XMLRPC in Odoo14
I am trying this simple code and below error comes while getting uid
url = 'http://localhost:8071'
db = "db8aaa_19sep22"
username = "admin"
password = "Admin@347"
common =...
0
votes
2
answers
100
views
odoo 8 remove sum of total in group by
I'm using odoo 8 and I want to remove the sum of the total in the group by. Here is my .py
class report_sales_weekly(osv.osv):
_name = "report.sales.weekly"
_description = "report sales ...
0
votes
1
answer
44
views
How to manage code in odoo between interface and git
where i'm working we are a team of odoo developers and we have an integrator who validates our developements , we use git to manage our developements , but there is a developer in our team that ...
3
votes
1
answer
201
views
Odoo sorting group by month
In the Account module, there is a group by filter by default. The group by Invoice month filter.
When it is used, the invoices are grouped by month.Ascending Invoices month
The group is sorted in ...
0
votes
1
answer
77
views
button invisible with condition from field
This is my py
purchase_type = fields.Selection([
('import', 'Import'),
('local', 'Local'),
], string='Purchase Type')
This is my xml
<button name="action_approve" string="...
0
votes
0
answers
192
views
Odoo Adding filter to report
In odoo accounting module, there are few default report like Aged Receivable, Aged payable.
Is there a way that I can add a custom filter that to show only data after a certain date.
Currently, In ...
1
vote
0
answers
158
views
odoo 8 using domain force to show record within same group
I have this xml
<record model="ir.module.category" id="module_team_security">
<field name="name">Team Security</field>
<field ...
0
votes
1
answer
41
views
odoo 8 auto count days field
I have this Interest Age (days) field which I want to be able to shown count of days between a specified date from other field and to day, so that everytime I open the page it will update the days
...
0
votes
1
answer
123
views
Domain prefix expression in odoo
i am trying to modify a domain but i have first to understand the logic of this prefix expression :
<field name="partner_id" position="attributes">
<...
0
votes
0
answers
36
views
Get value from the ListView
can anyone help me with my codes. I want to display the max amount of the fields amount from other .py
and display it on the form view.
Right now with that codes, im getting only the sequence number ...
0
votes
1
answer
198
views
Add Searchable dropdown menu in odoo using js and python
I am new to odd-python and I have to create a dropdown with search input box in one of my template, but I am not sure how to create or find relatable source code.
So far I was able to do below code
&...
0
votes
0
answers
71
views
Showing list of data by looping not working in odoo 8
I want to show a list of data using looping, but it only show one data. It only showing the last of thelist record.
This is my py
class stock_picking(models.Model):
_inherit = 'stock.picking'
@api....
1
vote
1
answer
36
views
Expected singleton: salesman.period.kpi.line
I have this error
Expected singleton: salesman.period.kpi.line
this is my py file
class KpiLine(models.Model):
_name='salesman.period.kpi.line'
kpi_by_hr = fields.Float('KPI By Header')
...
0
votes
1
answer
37
views
Self referencing relationship in the fleet model
In the fleet management models, in the fleet.vehicle.cost model, we have these two fields:
'parent_id': fields.many2one('fleet.vehicle.cost', 'Parent', help='Parent cost to this current cost'),
'...
0
votes
2
answers
382
views
odoo calculate age from a date field and today date
I want to get an age between a field and today date
from openerp import models, fields, api, _
from openerp import SUPERUSER_ID
from datetime import date
class report_purchase_stock(models.Model):
...
0
votes
1
answer
199
views
send multiple cc email in odoo to specific group
I want to add cc emails in odoo-13 (want cc been sent to the direct manager of employee and the HR)
I found related settings in odoo interface\settings\technical\templates but I am not sure if I have ...
0
votes
1
answer
84
views
odoo 8 change from models.Model to osv.osv
In my odoo 8 itu use two kind of class, models.Model and osv.osv and I need it to change form models.Model to osv.osv
class purchase_extend2(models.Model):
_inherit = 'purchase.order'
allowed_credit =...
0
votes
2
answers
2k
views
How to solve "Missing required account on accountable invoice line" in odoo7?
In odoo8, I got this warning "Missing required account on accountable invoice line" while posting my bill in subscription module. Please let me know how to resolve this!
0
votes
1
answer
100
views
odoo calculate 2 fields with compute
I have this 2 fields which is I want to calculate using compute
_columns = {
'feb_target':fields.float('Februari Target'),
'apr_target':fields.float('April Target'),
'ytd':fields.float('...
0
votes
2
answers
382
views
odoo get several data in text field
I have this py script
@api.one
@api.depends('customer_id')
def _get_unpaid_list(self):
invoice_pool = self.env['account.invoice']
for rec in invoice_pool.search([('state', '=', 'open'), ('...
0
votes
1
answer
103
views
Create button only for certain group
I want to make the create button only show for certain group. Here is my xml code
<record model="ir.ui.view" id="sales_forecast_view_tree">
<field name="name&...
0
votes
1
answer
140
views
How to duplicate Quotation/Order report and customize the duplication?
I would like to create a similar Quotation/Order report, without adding any line to the files code (I agree on changing/adding new lines on the database)
The Quotation/Order is perfect for sending it ...
0
votes
1
answer
346
views
how to display tax percentage instead of tax name in invoice odoo 8
I'm trying to display tax percentage instead of their name in accounting > customer invoices
I want to have the percentage from accounting > configuration > taxes > taxes
I don't know ...
0
votes
2
answers
41
views
Clear TextField with a checkbox
I want to clear the value entered in the text field whenever the user unchecks the checkbox, I am wondering if this is possible through XMl or Javascript in a XML Odoo view.
XMl code
<field name=&...
0
votes
0
answers
269
views
How to install odoo 8 on ubuntu 20.04
I tried to install odoo 8 on vps ubuntu 20.04 but i have this type of error
odoo : Depends: python-feedparser but it is not installable
Depends: python-imaging but it is not installable
...
1
vote
3
answers
850
views
odoo.exceptions.ValidationError: Error while validating view:
List item
When I try to upgrade the module following error occurred and I attach the picture of the error.
2.How Can I resolve this error
**Code:**
Action 226 (id: 226) does not exist for ...