Document: New record is not able to create

Bug #907744 reported by Hardik Ansodariya (OpenERP)
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Sales > Documents > Documents

when i tried to create record from web-client it generates following Tracback

Traceback (most recent call last):
  File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/han/rdtool/addons/trunk/base_calendar/base_calendar.py", line 1636, in create
    return super(ir_attachment, self).create(cr, uid, vals, context=context)
  File "/home/han/rdtool/addons/trunk/document/document.py", line 289, in create
    ('res_id', '=', vals['res_id']),
KeyError: 'res_id'

Related branches

Revision history for this message
Hardik Ansodariya (OpenERP) (han-tinyerp) wrote :
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

For reproduce bug need to install "wiki_sale_faq" module.

I have able to create document and didn't face any problem but when I go to list view I can't see the created record. It means when I press save button behavior of web look like record is save but actually not save so I am
assigning to web team.

Thanks

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Vaibhav Darji (vaibhav-openerp) wrote :

Fix Commited in https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-907744-vda
with rev ID:<email address hidden>

Thanks,
Vaibhav

Changed in openerp-web:
status: Confirmed → Fix Committed
Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

Setting default value from action domain is deprecated. Please fix the addons accordingly using default_* in context.

Changed in openerp-web:
assignee: OpenERP R&D Web Team (openerp-dev-web) → nobody
affects: openerp-web → openobject-addons
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
status: Fix Committed → Confirmed
Revision history for this message
Atul Patel(OpenERP) (atp-openerp) wrote :

Hello Vishal,

I installed "wiki_sale_faq" module. and i am succefully create document record .you did not get point. you are totally wrong .your concept is not clear regarding document.actually there is domain for parent directory in document view defined in wiki_base_faq module.so you are not able to see that record in list view. so this bug was not reproducible in web also.

Thanks
Atul

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

Sorry for the inconvenience,

I was forgot to check the domain on Documents after installing "wiki_sale_faq" module so we have seen only those entries which parent directory as "Sales Document". I had tried without parent directory as "Sale Document" that's why I didn't see the record. So It is not bug and I am closing this issue.

Thank.

Changed in openobject-addons:
importance: Medium → Undecided
assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) → nobody
status: Confirmed → Invalid
Changed in openobject-addons:
status: Invalid → In Progress
status: In Progress → Invalid
Revision history for this message
Hardik Ansodariya (OpenERP) (han-tinyerp) wrote :

Traceback is no more now but there is problem with domain on parent_id field there is domain "'parent_id','=',ref('dir_sale)'"
 this is working fine for GTK client but not seems working for web-client

i have attached video for reference and setting as new

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Hardik Ansodariya,

As per comment #7, traceback is no more so I am closing this issue. For your another problem you can post another bug.

Thanks.

Changed in openobject-addons:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.