Community mailing list archives

community@mail.odoo.com

Re: module Installation Issue

by
Junaid Hashmi
- 06/10/2016 05:11:22
DEAR Gnana Muthu,
It's All sorted out Thank you so much...God Bless you.

On Fri, Jun 10, 2016 at 12:57 PM, Gnana Muthu <gnanamuthub1112@gmail.com> wrote:
Hi Junaid Hashmi,

 Please replace the code if you have doubt still.

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">

        <record id="analytic_journal" model="account.analytic.journal">
            <field name="code">TS</field>
            <field name="name">Timesheet Journal</field>
            <field name="type">general</field>
        </record>

        <record id="hr.employee" model="hr.employee">
            <field name="journal_id" ref="analytic_journal"/>
        </record>

        <record id="product.product_product_consultant" model="product.product">
            <field name="name">Product Name</field>
            <field name="sale_ok">True</field>
        </record>

    </data>
</openerp>

On Fri, Jun 10, 2016 at 12:42 PM, Yaseen Shareef <mayashkhan@gmail.com> wrote:
Hi Junaid,

The product record doesn't have a name field, please add a name to this data, and your issue should be solved.

Thanks And Regards,
Yaseen Shareef

Odoo Developer/ Consultant
mayashkhan@gmail.com
Skype: yaseen.shareef91


On Fri, Jun 10, 2016 at 12:37 PM, junaid hashmi <junaidhashmi007789@gmail.com> wrote:
Dear Yaseen,

This is the Content of the file in hr_timesheet module.
Can you Please suggest what are the changes to be Done in this File?

path of the file: \server\openerp\addons\hr_timesheet\hr_timesheet_data.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">

        <record id="analytic_journal" model="account.analytic.journal">
            <field name="code">TS</field>
            <field name="name">Timesheet Journal</field>
            <field name="type">general</field>
        </record>

        <record id="hr.employee" model="hr.employee">
            <field name="journal_id" ref="analytic_journal"/>
        </record>

        <record id="product.product_product_consultant" model="product.product">
            <field name="sale_ok">True</field>
        </record>

    </data>
</openerp>

On Fri, Jun 10, 2016 at 12:21 PM, Yaseen Shareef <mayashkhan@gmail.com> wrote:
Hi Junaid,

I think one of the records for products in your demo data doesn't have a name, please check the demo data in hr_timesheet module.

Thanks And Regards,
Yaseen Shareef

Odoo Developer/ Consultant
mayashkhan@gmail.com
Skype: yaseen.shareef91


On Fri, Jun 10, 2016 at 12:17 PM, junaid hashmi <junaidhashmi007789@gmail.com> wrote:
Hey Team,
I am not able to install the Modules of Odoo please suggest some Easy way to get rid of those errors.





odoo server error
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\http.py", line 539, in _handle_exception
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\http.py", line 576, in dispatch
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\http.py", line 312, in _call_function
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\service\model.py", line 118, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\http.py", line 309, in checked_call
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\http.py", line 805, in __call__
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\http.py", line 405, in response_wrap
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\web\controllers\main.py", line 948, in call_button
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\web\controllers\main.py", line 936, in _call_kw
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\base\module\module.py", line 447, in button_immediate_install
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\base\module\module.py", line 495, in _button_immediate_function
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\modules\registry.py", line 370, in new
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\modules\loading.py", line 355, in load_modules
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\modules\loading.py", line 255, in load_marked_modules
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\modules\loading.py", line 176, in load_module_graph
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\modules\loading.py", line 118, in _load_data
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\tools\convert.py", line 900, in convert_file
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\tools\convert.py", line 986, in convert_xml_import
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\tools\convert.py", line 852, in parse
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\tools\convert.py", line 762, in _tag_record
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\base\ir\ir_model.py", line 1065, in _update
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\product\product.py", line 1198, in create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\mail\mail_thread.py", line 381, in create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 372, in old_api
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\models.py", line 4093, in create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 266, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 508, in new_api
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\models.py", line 4149, in _create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\product\product.py", line 741, in create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\openerp\addons\mail\mail_thread.py", line 381, in create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 268, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 372, in old_api
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\models.py", line 4093, in create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 266, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\api.py", line 508, in new_api
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\models.py", line 4231, in _create
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\sql_db.py", line 158, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20160404_1\server\.\openerp\sql_db.py", line 234, in execute
ParseError: "null value in column "name" violates not-null constraint
DETAIL:  Failing row contains (55, null, null, 1.00, null, 0, null, 1, fixed, 1, null, 2016-06-09 03:19:52.245, 1.000, 1, t, 1, null, null, 1, null, 1, null, null, null, null, 2016-06-09 03:19:52.245, t, f, null, null, consu, null, f, f, null, null, f, null, 7, t, f).
" while parsing file:///C:/Program Files (x86)/Odoo 8.0-20160404_1/server/openerp/addons/hr_timesheet/hr_timesheet_data.xml:15, near
<record id="product.product_product_consultant" model="product.product">
            <field name="sale_ok">True</field>
        </record>

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe