Search This Blog

Sunday, 26 May 2013

Importance of space while applying Group Acess on menu item in OpenERP

How to apply more than one groups to menu item on Openerp.


Xml file :

<menuitem id="sub_menu_id" parent="main_menu" name="Reports" groups="base.group_hr_manager,user_define_group" />

Here I have given two groups to the Menu item. so this menu only visible to those user who has access of this two groups.

Note :  (Improtance of space).

When you apply more than two groups on specific menu than don't give space between two groups just separate it with comma ','  other wise there will be an error raise No such external ID.

Wrong Ways.

 <menuitem id="sub_menu_id" parent="main_menu" name="Reports" groups="base.group_hr_manager, user_define_group" />

Monday, 13 May 2013

HTMl page-break solution for webkit report in OpenERP

HTML page break solution for webkit report in OpenERP

    table {

    table tr {
                page-break-inside:avoid; page-break-after:auto;


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
    table { page-break-inside:auto }
    tr    { page-break-inside:avoid; page-break-after:auto }
    thead { display:table-header-group }
    tfoot { display:table-footer-group }
        <!-- Number ofrows -->

 Applied this code in your CSS File or inside the <style> tag.