openerp

Populate DropDown List dynamically

时光总嘲笑我的痴心妄想 提交于 2019-12-11 12:59:04
问题 I am trying to populate my DDL(selection) from value of another DDL in OpenERP. Here is the code, that i have tried. Here is my View XML: <h1> <label for="categ1" string="Parent category"/> <field name="categ1" on_change="Product_Category_OnChange(categ1)" /> </h1> <newline/> <h1> <label for="my_products" string="Products" /> <field name="my_products" /> </h1> My _columns for this view is like: _columns = { 'categ1':fields.many2one('product.category','Parent Category',required=True), 'my

Impossible to synch odoo with google calendar

拈花ヽ惹草 提交于 2019-12-11 12:42:08
问题 I've configured my odoo to sync calendar with google calendar with my api client ID and secret. The point is, when I click on the synch button, I've this traceback Does anyone has had this problem ? It's not a duplicate of the another question. The old one is fixed, it's related to a missing mail template, here, the problem seems to be linked to JSON but I don't know why. Thanks a lot 来源: https://stackoverflow.com/questions/33822237/impossible-to-synch-odoo-with-google-calendar

How to fetch Calendar (calendar.event) meetings for particular date in ODOO?

送分小仙女□ 提交于 2019-12-11 12:26:12
问题 Does anybody know how to fetch Calendar (calendar.event) meetings/events for particular date OR "from date to date" in ODOO ? Till yet i have read meetings using meeting Ids as follow: ( Sample DB Name, 1, Password, calendar.event, read, ( 125 ) ) In above input parameter 125 is my meeting Id. So i get records of that particular meeting id. But now i want the meetings record based on dates. So how can i achieve this ? What will be the inputs for this ? 回答1: You are accessing the Odoo External

OpenERP email Sent confirmation message display

空扰寡人 提交于 2019-12-11 12:05:57
问题 Please help me to update below given send email method so as to pop up depending upon email delivery. "Email has been sent" "Sorry, Email has not been sent at this point of time ------------------------------------------------------ Wizard validation and send ------------------------------------------------------ def send_mail(self, cr, uid, ids, context=None): """ Process the wizard content and proceed with sending the related email(s), rendering any template patterns on the fly if needed. "

keyError, When import data in openerp

為{幸葍}努か 提交于 2019-12-11 11:43:10
问题 File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140112_001021-py2.7.egg/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140112_001021-py2.7.egg/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140112_001021-py2.7.egg/openerp/addons/base_import/models.py", line 219, in

Onclick of Lead couldn't get the details of Lead in custom Module in openerp

对着背影说爱祢 提交于 2019-12-11 10:46:52
问题 I'm creating a custom module and trying to convert the Lead to Opportunity.Now i'm fetching all the leads and showing like in img1. But actually i want to display like img2 and on click of any lead it should take me to simlar scrren like img3 where i can have option to converting a lead to Opportunity. My problem is on click of any lead in img1 ,there is no response.Thanks in advance. My Code is lead.py from osv import osv from osv import fields class crm_lead(osv.osv): _name = 'crm.lead'

OpenERP : Multiple module overriding onchange function

徘徊边缘 提交于 2019-12-11 09:53:51
问题 I need to override onchange_partner_id function present in sale.order but I'm working on a system that already have a module overriding this function. I tried to write my own onchange_partner_id with similar code : def onchange_partner_id(self, cr, uid, ids, part): res = super(sale_order, self).onchange_partner_id(cr, uid, ids, part) // doing some stuff and adding it to res['value']['myfield'] return res But my function isn't read by OpenERP. So my question is, is it possible to have multiple

Return form dynamically

≡放荡痞女 提交于 2019-12-11 07:30:16
问题 Hi any help please how can I return values of One2many in a new form dynamically. I have three class I define a function where I return the values of many2many(rubrique_ids) and One2many(critere_ids) exist recently in a new form how can I return(generate) form dynamically from values of One2many fields file xml <button name="evaluer" string="Evaluer" type="object"/> first class class A(models.Model): _name='risques.risque' _rec_name='nom_risque' nom_risque = fields.Char(required=True, string=

odoo ir.rule xml id not found error

筅森魡賤 提交于 2019-12-11 07:12:55
问题 openerp.py 'depends': ['base','hr'], # always loaded 'data': [ 'security/ir.rule.xml', 'security/ir.model.access.csv', 'views/views.xml', ], security/ir.rule.xml <data noupdate="0"> <record id="property_rule_jj_loan_creator" model="ir.rule" forcecreate="True"> <field name="name">loan creator</field> <field name="model_id" ref="model_jj_loan"/> <field name="domain_force">[('employee_id.user_id','=',user.id), ('state', '=', 'Draft')]</field> <field name="perm_create" eval="True"/> <field name=

trying to show chessboard js in odoo form widget, no error no pieces

牧云@^-^@ 提交于 2019-12-11 06:55:29
问题 Hi i´m trying to show chessboardjs on a form view in odoo backend, I finally make the widget to show the board, but the pieces are hidden, I don´t know why because seems to work fine, except for the pieces. If I use dragable : true in the options and move a hidden piece then the board is rendered with all the pieces. do I´m missing something, on my code that the chessboard its not rendered well?? here is mi widget code: (function (instance) { var _t = instance.web._t, _lt = instance.web._lt;