openerp

How to create / update test records on OpenERP 7, using JMeter?

对着背影说爱祢 提交于 2019-12-11 21:06:37
问题 I'm trying to test the load response of an OpenERP module that I've been developing. I've managed to authenticate and read from my model(s) thanks to this tutorial. I'd like now test the creation and update of existing records, but I can't find anywhere the syntax to do such actions. I tried to adapt from the read method, but I'm not able to figure out how the xml is supposed to be built. Is anyone that has already done such testing, willing to share knowledge about how to call the create and

OpenERP 7 Adding Field to Existing Module - XML Validate Error

徘徊边缘 提交于 2019-12-11 20:48:32
问题 I'm new to editing/programming OpenERP modules so I'm following this tutorial to simply add a field to the projects module. I've run into a few errors and I've fixed them all, but now my XML simply won't validate. I've read multiple forum posts, read every similar post here on stackoverflow and I can't figure out my problem. So, here's the server's error log output and my files: openerp-server.log: 2014-05-28 17:56:13,120 29680 ERROR mct openerp.osv.orm: Can't find field 'mct_projects_machine

How to call a wizard from a function in OpenERP7?

自古美人都是妖i 提交于 2019-12-11 20:17:15
问题 I've created the next wizard form in XML: <?xml version="1.0" encoding="utf-8"?> <openerp> <data> <record model="ir.ui.view" id="confirm_unlink_res_partner_bank_wizard_form"> <field name="name">confirm.unlink.res.partner.bank.wizard.form</field> <field name="model">confirm.unlink.res.partner.bank.wizard</field> <field name="arch" type="xml"> <form string="Confirm removing bank account" version="7.0"> <group colspan="8"> <group colspan="8"> <label string="Do you want to continue?"/> </group>

OpenERP - Compare fields using external id?

∥☆過路亽.° 提交于 2019-12-11 19:25:03
问题 Is it possible to compare fields in views using external id (not internal one). I need this because I need to hide some fields depending on another fields. I can make this work using internal database id. So if user chooses for example country (in view it checks that countries id), if id matches in view that it is compared, it shows another field. For example like this: <field name="some_field" attrs="{'invisible': [('country_id','!=',10)]}" /> This one works, but it is not really reliable.

OpenERP - using name_get() function and associated field definition to display specific value

混江龙づ霸主 提交于 2019-12-11 17:39:10
问题 What I am trying to accomplish is to display formatted result, "[class_code]class_description" as defined in name_get() function in my product_category class. I have defined field, please see code below, "x_categ_id" to be many2one, in class mrp_bom, but I am getting empty rows. How I can make that formatted output (from name_get()) to appear in a field in mrp.bom? How I must define the field? What would be the reason I am getting empty column values for "x_categ_id" field? Thanks in advance

Dynamic URL in odoo form

*爱你&永不变心* 提交于 2019-12-11 17:36:12
问题 How can I create a dynamic link in the odoo formview for example Static text=http://maps.chef-debiscuit.com/map.php?sheetID= dynamic text = record id (solution) http://maps.chef-debiscuit.com/map.php?sheetID=32 For the moment i only have <a href="http://maps.chef-debiscuit.com/map.php?sheetID=" target="_blank">View on Map</a> 回答1: 0) Create new computed field x_url 1) copy ID -> Field x_copy_id 2) Convert x_copy_id to string 3) Combine static text with IDCOPY for record in self: IDCOPY = str

odoo 9 - Field does not exist

时光总嘲笑我的痴心妄想 提交于 2019-12-11 13:53:09
问题 follow the documentation Odoo 9.0, I created a new module which I created a new model as follows: models.py # -*- coding: utf-8 -*- from openerp import models, fields, api class payModel(models.Model): _name = 'payModel.payModel' _inherit = 'hr.employee' num_CN = fields.Char("CN°") and my form view: <record model="ir.ui.view" id="payModel_form_view"> <field name="name">payModel.num_CN</field> <field name="model">hr.employee</field> <field name="inherit_id" ref="hr.view_employee_form"/> <field

OpenERP 7 - Create auto log message in “Log a Note” field as history log record

半腔热情 提交于 2019-12-11 13:45:47
问题 I am now creating a customize module for a lab test purpose in OpenERP 7. The users will require to enter their lab test components and result here. Now i having a field which called "Reason For Changes". I would like to know the method how i can log the input of this content as a "log a note" message to display at the bottom through mail.thread? The step would be: Reason For Changes (ROC) as a required field Any changes in my others fields will calling my onchange method to clearing the

How to achieve the following scenario in Odoo?

为君一笑 提交于 2019-12-11 13:39:07
问题 Trying to create an calendar event on the click of a button in my custom module. python code is as follows: class mom_meeting(osv.Model): _name = "mom.meeting" _rec_name = 'meet_ref' _inherit = 'mail.thread' STATUS_SELECTION=[ ('Block A - Board Room', 'Block A - Board Room'), ('Block B - Board Room', 'Block B - Board Room'), ('Block B - Discussion Room - 1', 'Block B - Discussion Room - 1'), ('Block B - Discussion Room - 2', 'Block B - Discussion Room - 2'), ] _columns = { 'ch_prsn': fields

ParseError: “Invalid view definition”

独自空忆成欢 提交于 2019-12-11 13:33:44
问题 I am starting developing openerp modules. What could be wrong with the following code: custmercas.py # encoding: utf-8 from openerp.osv import osv,fields class cas_customercas(osv.osv): _name = 'cas.customercas' _columns = { 'cas_lastname':fields.char('اللقب', size=50, required=True, readonly=False), 'cas_firstname':fields.char('الإسم', size=50, required=True, readonly=False), #TODO : import time required to get currect date 'cas_datenaiss': fields.date('تاريخ الولادة'), 'cas_lieunaiss'