openerp

Odoo 10 add button to POS

血红的双手。 提交于 2019-12-10 20:27:44
问题 I am trying to add a button to the POS screen. A lot of the information I have for this is related to Odoo 8 and this is probably why it is not working. I installed the custom addon without any errors but I don't see the button. I don't get any errors when running the POS either. In version 8 there is a widgets.js file which includes module.PosWidget.include({ build_widgets: function(){ var self = this; this._super() There is no widgets.js in version 10 and I am guessing this is where my

Trace all statements from a point in code

喜夏-厌秋 提交于 2019-12-10 17:49:51
问题 I'm trying to trace the flow of calls and code in a complex Python application(OpenERP). To make it more complicated, OpenERP have their own inheritance system that lives in parallel with normal Python inheritance. What I would like to do is to have a full listing of code executed, with module / function names. I have tried the Eclipse debugger, and I understand pdb works in much the same way, but the stepping through process takes too long. I have also tried launching the application with

How to remove implied ids from group in odoo?

て烟熏妆下的殇ゞ 提交于 2019-12-10 17:28:02
问题 I am trying to remove implied ids of purchase user group . This is actual group in purchase order <record id="group_purchase_manager" model="res.groups"> <field name="name">Manager</field> <field name="category_id" ref="base.module_category_purchase_management"/> <field name="implied_ids" eval="[(4, ref('group_purchase_user'))]"/> <field name="users" eval="[(4, ref('base.user_root'))]"/> </record> Then I am trying to remove implied of the group in my custom module <record id="purchase.group

OpenERP Server Error Access denied

断了今生、忘了曾经 提交于 2019-12-10 17:07:21
问题 After installing Odoo, I went to web panel where it asked create new database. As I entered details I got error. I can change master password successfully. I already created database on putty and there is no openerp-server.conf file under /etc/ folder. Odoo OpenERP Server Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 500, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist

how to filter tree view with dynamic field odoo-10

那年仲夏 提交于 2019-12-10 15:29:24
问题 i added 'location_id' field to res.user to connect user to a certain location class ResUser(models.Model): _inherit='res.users' current_location_id=fields.Many2one('physical.location',string="Current Loction") allowed_location_ids=fields.Many2many('physical.location',string="Allowed Location") i wanted to filter only the visits with current_location_id = user_current_location_id <filter string="My visits" name="filter_my_visits" domain="[('current_location_id','=',current_location_id)]"/>

initdb.bin: invalid locale settings; check LANG and LC_* environment variables

£可爱£侵袭症+ 提交于 2019-12-10 14:51:50
问题 When I tried to install bitnami odoo 9 in my ubuntu system via terminal, I got the following error message. How to solve this issue? initdb.bin: invalid locale settings; check LANG and LC_* environment variables Thanks in advance! 回答1: The issue solved when i used the following commands LC_ALL="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" 回答2: On the docker image I was using every single locale was commented out in the /etc/locale.gen file. Meaning no locale was setup, which was causing this error.

Why are my tests not running on Odoo 10?

本小妞迷上赌 提交于 2019-12-10 14:18:41
问题 I created a simple to-do application with the following structure: todo_app ├── __init__.py ├── __manifest__.py ├── tests │ ├── __init__.py │ └── tests_todo.py └── todo_model.py Under the tests folder I have: tests/__init__.py : # -*- coding: utf-8 -*- from . import tests_todo tests/tests_todo.py : # -*- coding: utf-8 -*- from odoo.tests.common import TransactionCase class TestTodo(TransactionCase): def test_create(self): """ Create a simple Todo """ Todo = self.env['todo.task'] task = Todo

Warning message not working on openerp

半城伤御伤魂 提交于 2019-12-10 12:16:41
问题 I want to show a warning message in user interface side in my module in a particular condition.For that I have write the code like this. raise osv.except_osv(('Warning!'), ("Entered Quantity is greater than quantity on source.")) But in that condition in user interface side it just showing the loading image. At the console I got the error like this. 2013-06-10 09:45:53,612 364 ERROR None openerp.netsvc: Warning! Entered Quantity is greater than quantity on source. Traceback (most recent call

One Module fields use in other module

陌路散爱 提交于 2019-12-10 12:01:57
问题 I am trying to use some fields of "Job Positions" in "Opportunities" and we can say it as a merger fields. but i am unable to do this task . i have no knowledge about Python language. I have created a user defined fields and use it in opportunities by XML coding by developer options . I know that it is easy because user defined fields has "crm.lead" named module which is same in opportunities. but now When i want to use this fields in "hr.job" then it give me error "fields not found" . i know

Passing Context In Odoo

我是研究僧i 提交于 2019-12-10 11:47:03
问题 How can i pass this scheduled_for in ratecard_multiple to scheduled in ratecard_sin_radio so that i can use it in the radio_sin_radio function action_four_weeks_schedule_form Here i have added all the code that am using class ratecard_multiple(models.Model): # pudb.set_trace() _name = 'ratecard.multiple' _rec_name = 'display_name' name = fields.Char(string='Multiple RateCard Product Name ', required=True) code = fields.Char(string='Multiple RateCard Code ', readonly=True) scheduled_for =