Pinakin Nayi
OpenERP,
Gandhinagar.
nayi.pinakin@gmail.com
Hello To all,
Normally, its needed to export our bookmarks and transfer to our
How to Export your bookmarks from Google Chrome?
Here , a solution this may be useful to you all.
Monday, 22 October 2012
Thursday, 4 October 2012
How to add Linkedin button in your blogger
Pinakin Nayi
OpenERP, Info-city,
Gandhinagar.
nayi.pinakin@gmail.com
1.Login to your blogger Dashboard--> Design- -> Edit HTML
2.Click on "Expand Widget Templates"
3.Scroll down to where you see below code:
<div class='post-header-line-1'/>
4.Now Copy your "Linkedin share button" code and paste it just below the above code.
NOTE: If you can't find <div class='post-header-line-1'/> in your template, paste your "Linkedin share button" code just before <data:post.body/> .
Code 1 : Vertical Count
<b:if cond='data:blog.pageType == "item"'> <div style='float:right;margin-left:10px;'> <script src='http://platform.linkedin.com/in.js' type='text/javascript'/><script data-counter='top' expr:data-url='data:post.url' type='in/share'/> </div> </b:if>
Wednesday, 29 August 2012
Sunday, 19 August 2012
How to convert rst2html?
Pinakin Nayi
OpenERP, Info-city,
Gandhinagar.
(nayi.pinakin@gmail.com)
How to convert rst2html??
Here are code that may be useful to you.
Before that install python-docutils
Step : 1
Import library
from docutils.core import publish_string
Step : 2
overides : that is overide the default setting.
embed_stylesheet : that is true/false that make to use default stylesheet or not
doctitle_xform : Enable or disable the promotion of a lone top-level section
title to document title (and subsequent section title to
document subtitle promotion;
docutils.transforms.frontmatter.DocTitle).
stylesheet_path='./css/voidspace.css', you can set external style sheet
Examples :
overrides = dict(embed_stylesheet= False, doctitle_xform= False)
output = publish_string(source= desc, writer_name= 'html', settings_overrides= overrides)
Html rst tags :
put Video in rst :
.. raw:: html
<div style="margin-top:10px;">
<iframe src="http://www.slideshare.net/slideshow/embed_code/7804331" width="427" height="356" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen> </iframe> <div style="margin-bottom:5px"> <strong> <a href="http://www.slideshare.net/openobject/openerp-crm-marketing-screencast" title="OpenERP CRM & Marketing Screencast" target="_blank">OpenERP CRM & Marketing Screencast</a> </strong> from <strong><a href="http://www.slideshare.net/openobject" target="_blank">OpenERP.tv</a></strong> </div>
</div>
http://docutils.sourceforge.net/docs/user/rst/quickref.html
You can also refer documentation :
And you can also use Online Demo :
How to look like :
before :
After : (apply rst2html)
..Enjoy...
Monday, 30 July 2012
HTML in OpenERP
Pinakin Nayi
OpenERP Gandhinagar.
Hello Friends ,
You all are going to search how to use <html> in OpenERP .xml file here is solution that may be useful to you.
In this example i am just changing description of module in html.. (account ,module)
account/data/account_data.xml
<record id="base.module_account" model="ir.module.module">
<field name="description"><![CDATA[
<h2><u>Accounting and Financial Management.</u></h2>
This applies to the modules containing modulename_process.xml.
<ul>
<li>General Accounting</ol>
<li>Cost/Analytic accounting</ol>
<li>Third party accounting</ol>
<li>Taxes management</ol>
<li>Budgets</ol>
<li>Customer and Supplier Invoices</ol>
<li>Bank statements</ol>
<li>Reconciliation process by partner</ol>
</ul>
Creates a dashboard for accountants that includes:
<ul>
<li>List of Customer Invoice to Approve</ol>
<li>Company Analysis</ol>
<li>Graph of Treasury</ol>
</ul>
<p>The processes like maintaining of general ledger is done through the defined financial Journals (entry move line orgrouping is maintained through journal) for a particular
financial year and for preparation of vouchers there is a module named account_voucher.</p>
]]></field>
</record>
and server/trunk/openerp/addons/base/module/module_view.xml
<page string="Description">
<field name="description" widget="text_html"/>
</page>
OpenERP Gandhinagar.
Hello Friends ,
You all are going to search how to use <html> in OpenERP .xml file here is solution that may be useful to you.
In this example i am just changing description of module in html.. (account ,module)
account/data/account_data.xml
<record id="base.module_account" model="ir.module.module">
<field name="description"><![CDATA[
<h2><u>Accounting and Financial Management.</u></h2>
This applies to the modules containing modulename_process.xml.
<ul>
<li>General Accounting</ol>
<li>Cost/Analytic accounting</ol>
<li>Third party accounting</ol>
<li>Taxes management</ol>
<li>Budgets</ol>
<li>Customer and Supplier Invoices</ol>
<li>Bank statements</ol>
<li>Reconciliation process by partner</ol>
</ul>
Creates a dashboard for accountants that includes:
<ul>
<li>List of Customer Invoice to Approve</ol>
<li>Company Analysis</ol>
<li>Graph of Treasury</ol>
</ul>
<p>The processes like maintaining of general ledger is done through the defined financial Journals (entry move line orgrouping is maintained through journal) for a particular
financial year and for preparation of vouchers there is a module named account_voucher.</p>
]]></field>
</record>
and server/trunk/openerp/addons/base/module/module_view.xml
<page string="Description">
<field name="description" widget="text_html"/>
</page>
...Enjoy...
Monday, 23 July 2012
Deleted Records in OpenERP
Pinakin Nayi
OpenERP, Gandhinagar.
nayi.pinakin@gmail.com
Something you need to keep in mind is how OpenERP “deletes” its records.
It does not physically remove them.
It just marks them as deleted.
And it does so with the active field in the table.
This field, which happens to be a boolean field, if true indicates that the record is not deleted.
Otherwise you should not take the record into account in your queries.
OpenERP, Gandhinagar.
nayi.pinakin@gmail.com
Something you need to keep in mind is how OpenERP “deletes” its records.
It does not physically remove them.
It just marks them as deleted.
And it does so with the active field in the table.
This field, which happens to be a boolean field, if true indicates that the record is not deleted.
Otherwise you should not take the record into account in your queries.
...Enjoy...
Friday, 20 July 2012
Debugging your OpenERP module
Pinakin Nayi
OpenERP, Gandhinagar.
nayi.pinakin@gmail.com
OpenERP, Gandhinagar.
nayi.pinakin@gmail.com
Debugging your OpenERP modules is quite straightforward, as long as you know basic Python programming. Just insert the following line in your
module:
import pdb;pdb.set_trace()
# openerp-server –debug
Then monitor your server console. You will see your server stop and show you a command line prompt where you will be able to debug your program.
You will find further information in the Python documentation website.
You will find further information in the Python documentation website.
...Enjoy...
Subscribe to:
Posts (Atom)