Questions tagged [odoo-10]

1

votes
0

answer
261

Views

How to print csv report in browser odoo?

I am trying to print some fields of account.invoice and account.invoice.line Firstly I added the button for printing csv formatted report. this is i trying in code def print_csv(self): lines = [] lines.append((['Product Name','Price Unit','Quantity'])) for rec in self.invoice_line_ids: lin...
aslamsha22
1

votes
0

answer
100

Views

Odoo search specific one2many field only in user defined filter

I am trying to make a user defined filter to filter res.partner by contract_ids (one2many). But I only want to filter by contracts that are currently with state='open'. Example: [[u'contract_ids', u'!=', False]] But this only shows users that have a contract, not necessarily an open contract... I...
user2757902
1

votes
1

answer
47

Views

How to add new button using t-extend?

I want to add a new button 'Update' after button 'delete'. I have tried to extend the t-name but it is not reflecting on UI. Source code: Saved exports: Delete I have Tried to extend source and add new button after 'delete' as given in Source: Update It is not working. Please help me out.
Nitin Kantak
1

votes
0

answer
277

Views

Pos Customer Display

I tried to implement pos customer display. Installed posbox image on raspberry pi 3 Connected printer, then prints ip address. I tried to configure pos customer display using this below link https://www.odoo.com/forum/help-1/question/step-by-step-guide-for-installing-customer-display-using-posbox-12...
KbiR
1

votes
0

answer
232

Views

How to fetch key value list from selection fields in Odoo 10

I have a selection field, and I want to fetch list of all keys and values using ORM method. How can I achieve it. _name = 'calling_devices' device_type = fields.Selection([('desk','Desk'),('mobile','Mobile'),('home','Home'),('others','Others')]) Desired Output using ORM methods or alternate way: Key...
user341143
1

votes
1

answer
856

Views

Bad request 400 in Odoo contact form. Session expired('Invalid CSRF token')

I am facing an error in Odoo v 10 with the contact form, when I press the send button it gives an exception: Traceback (most recent call last): File '/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_http.py', line 195, in _dispatch result = request.dispatch() File '/usr/lib/python2.7/dist-pac...
Alberto Méndez
1

votes
1

answer
202

Views

Odoo call function

In new custom moudle I'm inherit odoo pos. Now I want call this function in my module. orderline_remove: function(line){ this.remove_orderline(line); this.numpad_state.reset(); this.update_summary(); }, my custom module: //OrderWidget screens.OrderWidget.include({ renderElement: function(){ this._su...
user_odoo
1

votes
0

answer
177

Views

Odoo 10 - XMLRPC getting description of a select field

I am retrieving stock.picking record via XMLRPC: record = api.execute_kw(db, uid, pwd, 'stock.picking', 'read', [[1]]) Which returns all fields from the record. Among all fields, I am interested in field state, which can be accessed via: record.state Which contains: done, draft, partially_available,...
M.E.
1

votes
0

answer
303

Views

What is a rule and how to inherit it and edit it in odoo 10?

So I created this user named Eric and I want him to manage all the features in gamification module. When I go to gamification security I found these rules: User can only see his/her goals or goal from the same challenge in board visibility [ '|', ('user_id','=',user.id), '&', ('challenge_id.user_ids...
Tessnim
1

votes
0

answer
149

Views

Odoo Computed fields cant work in function

in another project, I used compute field like this on a function and it works. But why this one is not working? Here is my code : from openerp import models, fields, api class PurchaseOrder(models.Model): _inherit = 'hr.payslip' gaji_pokok = fields.Integer(string='Gaji Pokok') t_lembur = fields.Inte...
Ffs
1

votes
0

answer
270

Views

Perpetual Inventory Valuation- odoo 10

I created 3 chart of accounts as follow with type current asset: 23600 Stock Interim Account (Received) 14600 Stock Interim Account (Delivered) 14000 Stock Valuation Account And assigned to product category. Set costing method as Average and inventory valuation as Perpetual. Created a purchase orde...
KbiR
1

votes
1

answer
808

Views

Issue in showing kanban image in odoo 11

When i add an image field in kanban view in odoo11 it has raised the error as 'QWeb2 - template['kanban-box']: Runtime Error: TypeError: Cannot read property 'raw_value' of undefined' '. And the same code worked for me in odoo 9. I'm struck in identifying the cause of the issue. Here's my code. Pyth...
sibi
1

votes
0

answer
36

Views

How to add automated lines to payment term line table

I want to create a method that adds automatically new lines in account.invoice.line table.The user should only enter the total amount of dues and fixed amount that should be paid per month. I created a new python file with this code: class AccountPaymentTerm(models.Model): _inherit = 'account.paymen...
Tessnim
1

votes
1

answer
68

Views

How to validate a webhook signature in odoo

I am looking for solution which is exactly described HERE However I am not sure what should I pass to the second parameter ie request_body as I am unable to find body in request object of odoo. digester = hmac.new(secret, request_body, hashlib.sha256) I have tried to pass 'request' which throw error...
Vinay
1

votes
0

answer
294

Views

Odoo 11.0 installation error on centos 6.9

I am getting the following error from past two days please help in resolving it: --> Finished Dependency Resolution Error: Package: odoo-11.0.post20180216-1.noarch (odoo-nightly) Requires: python3-passlib Error: Package: odoo-11.0.post20180216-1.noarch (odoo-nightly) Requires: python3-qrcode Error:...
Liyakhat Ali
1

votes
2

answer
262

Views

Odoo one2many field creation and assign to self.variable

for fee_line in fee_criteria.fee_line_ids: fee_data = { 'name' : fee_line.name, 'amount' : int(fee_line.amount), 'type' : fee_line.type, 'fee_pay_type' : fee_line.fee_pay_type.id, 'reg_form_id':self.id, 'sequence': fee_line.sequence, } fee_lst.append((0,0,fee_data)) self.student_fee_line = fee_lst T...
Vaibhav Bhople
1

votes
0

answer
79

Views

how to save image of Jsignature sign into POS popup widget in odoo10?

---------- JS File -------------- I can create Custom pos popup widget 7 using Jsignature library for draw signature into that. var SaleSignPopupWidget = PopupWidget.extend({ template: 'SaleSignPopupWidget', placeholder: '/static/src/img/placeholder.png', show: function() { var self = this; this.re...
veerali shah
1

votes
0

answer
749

Views

Odoo: some modules could not be started

I get the following warning in my browser console from web.assets_common.js. This only occurs when I'm not logged in so it seems like it's trying to load dependencies that shouldn't be loaded. This warning also came out of nowhere as I didn't have it before, but now all of the sudden I do. I'm runn...
Haradrim
1

votes
1

answer
276

Views

Odoo 10: Is multi-company with multi-currency setup stable for production?

I need to setup accounting, sales, purchase and warehouse inventory management for two connected trading companies under Odoo 10. The companies share the same products and owner, but are: registered as independent companies in two different countries (multi-company option) with different currencies...
Aron
1

votes
1

answer
862

Views

How to show/hide fields shown in Filter, Group By selection?

Hello I am trying to hide/show some fields in Action (Tree view) Filter/Group By fields selection section. I found solution to do that with fields_get function, but then I have problem that when you switch between menu items, fields does not renew. My solution is Below. @api.model def fields_get(sel...
enigmq
1

votes
0

answer
32

Views

Adapting odoo report for email - How to change env for current partner_id only

I have a odoo report from the OCA that I am trying to adapt to be able to be sent as an email to individual customers. The report is seen here Report and Github link The below is the important part (as I see it). In this function 'data' is passed through from a wizard. @api.multi def render_html(se...
user2757902
1

votes
0

answer
200

Views

how to use track_visibility=always and store=true with compute field?

Here, i need the actual sales at the side of crm opportunity. I had done all computation part but, not store that value with track_visibility='always' and store=True. from odoo import api,fields,models,_ class CrmLead(models.Model): _inherit = 'crm.lead' actual_sales = fields.Float(string='Actual S...
Sagar Poojara
1

votes
0

answer
131

Views

Can't download Excel report from pivot view for large data

I can't download Excel Reports from pivot view when the data becomes large. Its working fine in local and working fine in server while the data is small. Error: Uncaught SyntaxError: Unexpected end of JSON input http://site/web#view_type=pivot&model=sale.report&action=287:1 Traceback: SyntaxError:...
vbt
1

votes
1

answer
539

Views

How to request procurement from one warehouse to another in Odoo?

Using Odoo saas-14, I would like to use the 'Request Procurement' button on the product form to trigger the transfer of products from WH2 to WH1, but I'm having trouble finding the proper way to do this. My intention was to request the procurement to WH1, and select a newly created route called WH2-...
flyingL123
1

votes
0

answer
71

Views

Weird floating point shows up when input very large number in Python/Odoo

I'm using Odoo v10 and I set the currency decimal places to 6. When I input a number below 3,000,000,000,000 then the result is expected. But when I input 3,000,000,000,000 or above. it will convert to 3,000,000,000,000.001465. I wonder why did that happen. Is there any fix for this? I need the numb...
Suparjito Teo
1

votes
1

answer
39

Views

Fetch the maximum value of yesterday and today odoo

In database there are many dates but i want to fetch the maximum value of yesterday and today of particular city. Below code i tried but i gives same value for each city: What i want is if there are multiple cities and they have their values then how to get maximum value for each particular city. Su...
user_123
1

votes
0

answer
215

Views

Warehouse restriction to user in odoo 10

On odoo 10 enterprise, we want to limit users to only have access to products and quantities of a specific warehouse location, so that they cannot see products and quantities of other warehouse locations. Have installed 'Warehouse Restriction' module ( https://www.odoo.com/apps/modules/10.0/warehou...
1

votes
0

answer
207

Views

How to modify e-mail body in chatter in Odoo 11

I'm trying to modify email message that gets stored in chatter on an incoming e-mail. Anyone happen to know how to do this? I've spent many hours in email stuff already, and I've been able to do much of what I want but this. I thought it'd be in message_process , but after trying: msg_txt.set_param(...
foo
1

votes
0

answer
155

Views

How to link to other view when use oe_kanban_global_click

How to open tree view when click on kanban card when use oe_kanban_global_click It goes to form view but i want on click, goes to tree view. Below code i used: Weather:  Humidity: %
user_123
1

votes
1

answer
163

Views

Odoo 10: Error: “You must set a Vendor Location for this partner” in internal purchase orders in multi-company setup

I encounter an error in internal purchase orders between the two companies in a multi-company setup. When I try to accept a purchase order I get the ERROR: 'You must set a Vendor Location for this partner' and the purchase order remains a draft (RFQ). However all other purchase and all sales orders...
Aron
1

votes
0

answer
49

Views

how can i get sale order details of an invoice entry from model account.invoice

I have a new field in account. invoice od_sale_order_name. I need to get the sale order name field value to this field.but i didn't find relation from account.invoice to sale.order. i'm using new api.i have tried to create a relation using code saleorder_ids=fields.Many2many('sale.order', 'sale_o...
HVH
1

votes
0

answer
128

Views

How to hide fields based on values of a selection field in another module

I have a custom model budget.budget. There is a selection field od_term. There is another model budget.line which has some fields that need to be displayed based on the value of od_term. For example if od_term is monthly the lines should display only od_m1 field. if od_term is quart then od_q1 need...
HVH
1

votes
0

answer
296

Views

Auto logout in condition odoo 10

i had a problem when i was try to make the auto logout in odoo 10. I was created change password page, after change password, i want end session and back to login page again. But the result never land me to teh login page. Here my code : @api.model def create(self, vals): res = super(MyPass, self).c...
Stefani Johnsson
1

votes
0

answer
44

Views

how can I get specific supplier for each product in sale order line in odoo?

I try to put the supplier in new field so when I select product in sale order line his supplier automatic appear in new field by this function : but did not work class SaleOrderLine(models.Model): _inherit = 'sale.order.line' _name = 'sale.order.line' partner_name=fields.Char(compute='_count') @api....
alyaa
1

votes
2

answer
144

Views

How to print employee details like employee phone num, department etc in odoo qweb report

I want to print employee details from hr.employee model to my qweb report(Purchase Requisition). I am trying the code like following: Department: And facing this error: Error to render compiling AST AttributeError: 'res.partner' object has no attribute 'department_id' I understood that my current o...
user3606682
1

votes
1

answer
257

Views

Hide template button based on user- odoo 10

I need to hide the 'new message' button which include the top of the mail message history.It can be only visible for the managers.I tried it in several ways. But its not working. Here is my code New message Log an internal note can anyone please help me
Ridma Gimhani
1

votes
0

answer
135

Views

Hi, how to set the order of fields in measure drop down in pivot table in odoo?

I would like to set a specific order for the fields to appear in measure drop down in a pivot table. Is it possible to alter the default order?
Jas
0

votes
0

answer
6

Views

Odoo: company_id in res.company showing non stored field while get data model to controller

odoo error : Not non stored filed country_id @http.route('/home/', type='http', auth='public', website=True) def navigate_to_detail_page(self): obj = http.request.env['res.company'].sudo().search([]) country_list = http.request.env['res.country'].sudo().search([])
kks
1

votes
1

answer
183

Views

How to create the rule for users in odoo11

How to create the rule for users in odoo11. I want to show particular menu item to manager only not to user. Here, I created the group for user and manager but unable to create rule for user. My code is: Weather Info 2 User Manager
user_123
1

votes
0

answer
95

Views

nginx ssl setup servernotfound and error.log file empty

it's my nginx ssl configuration file, it seems everything normal but while trying to open url getting error servernotfound and log files are empty. ## myapp backend ## upstream myapp { server 127.0.0.1:8069; } ## https site## server { listen 443 default; server_name myapp.xyz; root /usr/...
ShivaGuntuku

View additional questions