<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1041220395779984202</id><updated>2012-01-13T22:24:50.345-08:00</updated><title type='text'>Open ERP Code Tracking</title><subtitle type='html'>This blog is used to track all API changes made on Open ERP. The subject must be "module, object, method", like: 'sale, sale.order, _product_id_change'. The content of the blog entry should summarize the modification, in a few lines.

Each blog entry should be tagged by the version of Open ERP you made the change on "5.0.1". Don't tag 'trunk', but the latest stable version. to record a change, send an email to: openerp DOT team DOT code AT blogger DOT com.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://openerp-code.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://openerp-code.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>OpenERP Development</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1041220395779984202.post-1331945081857560618</id><published>2010-01-08T03:27:00.000-08:00</published><updated>2010-01-08T03:32:34.519-08:00</updated><title type='text'>Base, Fields, Search</title><content type='html'>AIM : To be able to search the functional field(function,related,property) on multilingual environment.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; Changes:&lt;BR&gt; &lt;BR&gt; As everybody knows that context plays a vital role in translations,we needed the translated values to be searched for functional fields.&lt;BR&gt; &lt;BR&gt; 1. bin/osv/fields.py&lt;BR&gt; &lt;BR&gt; class function(_column)&amp;nbsp; --&amp;gt; def search(self, cr, uid, obj, name, args) has a new argument context.&lt;BR&gt; &lt;BR&gt; Which appears now as def search(self, cr, uid, obj, name, args, context=None).&lt;BR&gt; &lt;BR&gt; This context will help the search method to translate the keyword.&lt;BR&gt; &lt;BR&gt; Example: &lt;BR&gt; Follow these steps:&lt;BR&gt; 1. Install a minimal profile with demo data.&lt;BR&gt; 2. Load French language.&lt;BR&gt; 3. Switch to French environment(i.e.,User/Preferences to be set to fr_FR.&lt;BR&gt; 4. Go to Partners. (Belgium appears as belgique[translated value]) .&lt;BR&gt; 5. If we search belgiq, we won't find any records.&lt;BR&gt; 6. Reason : The keyword 'belgiq' was directly compared with DB values. It has to be the comparision between keyword and DISPLAYED value(we were in fr environment).&lt;BR&gt; 7. Pass context to your method&amp;nbsp; and have a try. (fnct_search=Method&amp;nbsp; would appear in your class definition of _columns.) &lt;BR&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; account/account_move_line.py&amp;nbsp; has fnct_search=_invoice_search.&lt;BR&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; so, def _invoice_search(self, cursor, user, obj, name, args) is now&lt;BR&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def _invoice_search(self, cursor, user, obj, name, args, context).&lt;BR&gt; &lt;BR&gt; Programmers are requested to update the corresponding fnct_search methods with context argument appended to the method.&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%"&gt; &lt;TR&gt; &lt;TD&gt; Thanks,&lt;BR&gt; Regards,&lt;BR&gt; &lt;BR&gt; &lt;FONT COLOR="#0000ff"&gt;Jay Vora&lt;/FONT&gt;,&lt;BR&gt; &lt;FONT COLOR="#ff00ff"&gt;E-Mail &lt;/FONT&gt;: jvo@tinyerp.com&lt;BR&gt; (Not miles, just an e-mail away...)&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1041220395779984202-1331945081857560618?l=openerp-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://openerp-code.blogspot.com/feeds/1331945081857560618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://openerp-code.blogspot.com/2010/01/base-fields-search.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/1331945081857560618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/1331945081857560618'/><link rel='alternate' type='text/html' href='http://openerp-code.blogspot.com/2010/01/base-fields-search.html' title='Base, Fields, Search'/><author><name>OpenERP Development</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1041220395779984202.post-3850024515594740411</id><published>2009-10-05T05:58:00.000-07:00</published><updated>2009-10-05T05:54:58.447-07:00</updated><title type='text'>Base, Ir_model_data , _update</title><content type='html'>&lt;BR&gt; AIM : To Use the context of screen/action to the record which is getting imported (the context passed by client).&lt;BR&gt; &lt;BR&gt; Change: &lt;BR&gt; &lt;BR&gt; 1. _update() of ir_model_data class has a new arguement context in its signature.&lt;BR&gt; &lt;BR&gt;  def _update(self,cr, uid, model, module, values, xml_id=False, store=True, noupdate=False, mode='init', res_id=False):&lt;BR&gt; &lt;BR&gt; Will appear as&lt;BR&gt; &lt;BR&gt;  def _update(self,cr, uid, model, module, values, xml_id=False, store=True, noupdate=False, mode='init', res_id=False, context=None):&lt;BR&gt; &lt;BR&gt; This context will be passed to OpenERP methods create(),browse(),read(),write() used withing _update().&lt;BR&gt; Context is very important factor that comes into picture specially during translation.&lt;BR&gt; &lt;BR&gt; &lt;TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%"&gt; &lt;TR&gt; &lt;TD&gt; &lt;BR&gt; &lt;BR&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1041220395779984202-3850024515594740411?l=openerp-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://openerp-code.blogspot.com/feeds/3850024515594740411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://openerp-code.blogspot.com/2009/10/base-irmodeldata-update.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/3850024515594740411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/3850024515594740411'/><link rel='alternate' type='text/html' href='http://openerp-code.blogspot.com/2009/10/base-irmodeldata-update.html' title='Base, Ir_model_data , _update'/><author><name>OpenERP Development</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1041220395779984202.post-2081736448662174069</id><published>2009-10-05T05:32:00.000-07:00</published><updated>2009-10-05T05:29:10.962-07:00</updated><title type='text'>GTK,win_import,import_csv</title><content type='html'>AIM : To pass the local context of screen/action to the record which is getting imported.&lt;BR&gt; &lt;BR&gt; Change: &lt;BR&gt; &lt;BR&gt; 1. __init__() of Win_import class has a new arguement local_context in its signature.&lt;BR&gt; &lt;BR&gt; def __init__(self, model, fields, preload = [], parent=None):&lt;BR&gt;  &lt;BR&gt; will appear as:&lt;BR&gt; def __init__(self, model, fields, preload = [], parent=None, local_context=None):&lt;BR&gt; &lt;BR&gt; 2. The import_csv() of win_import.py has a new arguement context in its signature.&lt;BR&gt; &lt;BR&gt; def import_csv(csv_data, f, model, fields):&lt;BR&gt; &lt;BR&gt; will appear as:&lt;BR&gt; def import_csv(csv_data, f, model, fields, context=None):&lt;BR&gt; &lt;BR&gt; &lt;TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%"&gt; &lt;TR&gt; &lt;TD&gt; Thanks,&lt;BR&gt; Regards,&lt;BR&gt; &lt;BR&gt; &lt;FONT COLOR="#0000ff"&gt;Er. Jay Vora&lt;/FONT&gt;,&lt;BR&gt; Sr. Application Engineer.&lt;BR&gt; Tiny ERP Pvt. Ltd.&lt;BR&gt; &lt;IMG SRC="cid:1254745250.11236.36.camel@jvo.tinyerp.co.in" ALIGN="bottom" BORDER="0"&gt;&lt;BR&gt; Ahmedabad,Gujarat,India.&lt;BR&gt; &lt;BR&gt; &lt;FONT COLOR="#ff00ff"&gt;M&lt;/FONT&gt; : 91- 9879354457&lt;BR&gt; &lt;FONT COLOR="#ff00ff"&gt;E-Mail &lt;/FONT&gt;: jvo@tinyerp.com&lt;BR&gt; (Not miles, just an e-mail away...)&lt;BR&gt; &lt;BR&gt; &lt;BR&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1041220395779984202-2081736448662174069?l=openerp-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://openerp-code.blogspot.com/feeds/2081736448662174069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://openerp-code.blogspot.com/2009/10/gtkwinimportimportcsv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/2081736448662174069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/2081736448662174069'/><link rel='alternate' type='text/html' href='http://openerp-code.blogspot.com/2009/10/gtkwinimportimportcsv.html' title='GTK,win_import,import_csv'/><author><name>OpenERP Development</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1041220395779984202.post-896252257177806471</id><published>2009-07-08T03:27:00.001-07:00</published><updated>2009-08-30T07:19:20.328-07:00</updated><title type='text'>New blog for api change.</title><content type='html'>Api change in purchase,purchase.order,inv_line_create&lt;p&gt;  def inv_line_create(self, a, ol):&lt;br /&gt;&lt;br /&gt;Replaced By&lt;br /&gt;&lt;br /&gt;  def inv_line_create(self, cr, uid, a, ol):&lt;br /&gt;&lt;br /&gt;required cr,uid for pooling other objects in this method for implementing anglo-saxon accounting.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1041220395779984202-896252257177806471?l=openerp-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://openerp-code.blogspot.com/feeds/896252257177806471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://openerp-code.blogspot.com/2009/07/new-blog-for-api-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/896252257177806471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/896252257177806471'/><link rel='alternate' type='text/html' href='http://openerp-code.blogspot.com/2009/07/new-blog-for-api-change.html' title='New blog for api change.'/><author><name>OpenERP Development</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1041220395779984202.post-5775996936006144954</id><published>2009-06-09T11:28:00.001-07:00</published><updated>2009-06-09T11:31:48.149-07:00</updated><title type='text'>stock, stock.move, onchange_lot_id</title><content type='html'>def onchange_lot_id(self, cr, uid, context=None, prodlot_id=False,&lt;br /&gt;product_qty=False, loc_id=False, context=None):&lt;p&gt;replaced by:&lt;/p&gt;&lt;p&gt;def onchange_lot_id(self, cr, uid, ids, prodlot_id=False, product_qty=False,&lt;br /&gt;loc_id=False, context=None):&lt;/p&gt;&lt;p&gt;It was a bug introduced recently (not present in previous versions, I&lt;br /&gt;think), the call in the view was correct.&lt;/p&gt;&lt;p&gt;--&lt;br /&gt;Fabien&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1041220395779984202-5775996936006144954?l=openerp-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://openerp-code.blogspot.com/feeds/5775996936006144954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://openerp-code.blogspot.com/2009/06/stock-stockmove-onchangelotid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/5775996936006144954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/5775996936006144954'/><link rel='alternate' type='text/html' href='http://openerp-code.blogspot.com/2009/06/stock-stockmove-onchangelotid.html' title='stock, stock.move, onchange_lot_id'/><author><name>OpenERP Development</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1041220395779984202.post-4283473969009330327</id><published>2009-06-08T12:49:00.001-07:00</published><updated>2009-06-08T12:49:49.813-07:00</updated><title type='text'>sale, sale.order, _product_id_change</title><content type='html'>The sale order method in version 5.0.1 as an extra parameter, flag=True. &lt;br&gt;This may cause problem in your module if you override the &lt;br&gt;_product_id_change method, without overriding the view.&lt;p&gt;-- &lt;br&gt;Fabien Pinckaers&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1041220395779984202-4283473969009330327?l=openerp-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://openerp-code.blogspot.com/feeds/4283473969009330327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://openerp-code.blogspot.com/2009/06/sale-saleorder-productidchange.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/4283473969009330327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1041220395779984202/posts/default/4283473969009330327'/><link rel='alternate' type='text/html' href='http://openerp-code.blogspot.com/2009/06/sale-saleorder-productidchange.html' title='sale, sale.order, _product_id_change'/><author><name>OpenERP Development</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
