← Back to team overview

openerp-india team mailing list archive

[Bug 1234374] [NEW] [7.0] Category type bug in the module document_page

 

Public bug reported:

When I create category of page just from Page form (I type category name
just to the many2one field 'parent_id' and after I choose 'Create').
Because we have 'default_type': 'content' in contex of action
'action_page', but we haven't context for the field 'parent_id' on the
form. So when we create category, it uses 'default_type': 'content' from
context instead of 'category' and it's wrong.

Please check attached patch.

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: 7.0

** Patch added: "document_page_view.xml.patch"
   https://bugs.launchpad.net/bugs/1234374/+attachment/3855976/+files/document_page_view.xml.patch

** Description changed:

-  When I create category of page just from Page form (I type category
- name just to the many2one field 'parent_id' and after I choose
- 'Create'). Because we have 'type': 'content' in contex of action
+ When I create category of page just from Page form (I type category name
+ just to the many2one field 'parent_id' and after I choose 'Create').
+ Because we have 'default_type': 'content' in contex of action
  'action_page', but we haven't context for the field 'parent_id' on the
  form. So when we create category, it uses 'type': 'content' from context
  and it's wrong.
  
  Please see attached patch.

** Description changed:

  When I create category of page just from Page form (I type category name
  just to the many2one field 'parent_id' and after I choose 'Create').
  Because we have 'default_type': 'content' in contex of action
  'action_page', but we haven't context for the field 'parent_id' on the
- form. So when we create category, it uses 'type': 'content' from context
- and it's wrong.
+ form. So when we create category, it uses 'default_type': 'content' from
+ context instead of 'category' and it's wrong.
  
  Please see attached patch.

** Description changed:

  When I create category of page just from Page form (I type category name
  just to the many2one field 'parent_id' and after I choose 'Create').
  Because we have 'default_type': 'content' in contex of action
  'action_page', but we haven't context for the field 'parent_id' on the
  form. So when we create category, it uses 'default_type': 'content' from
  context instead of 'category' and it's wrong.
  
- Please see attached patch.
+ Please check attached patch.

** Summary changed:

- Category type bug in the module document_page
+ [7.0] Category type bug in the module document_page

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1234374

Title:
  [7.0] Category type bug in the module document_page

Status in OpenERP Addons (modules):
  New

Bug description:
  When I create category of page just from Page form (I type category
  name just to the many2one field 'parent_id' and after I choose
  'Create'). Because we have 'default_type': 'content' in contex of
  action 'action_page', but we haven't context for the field 'parent_id'
  on the form. So when we create category, it uses 'default_type':
  'content' from context instead of 'category' and it's wrong.

  Please check attached patch.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1234374/+subscriptions


Follow ups

References