Browse Source

[FIX] BUG #57 that does not allow to create fields in the UI.

pull/147/head
Carlos Vásquez 8 years ago
parent
commit
e085c3e8e8
  1. 3
      pos_remove_pos_category/product.py

3
pos_remove_pos_category/product.py

@ -76,7 +76,8 @@ def _auto_end(self, cr, context=None):
(pos_remove_pos_category monkey patching)
"""
context = context or {}
module = context['module']
# If the field is created by the user, there is no module.
module = context.get('module', False)
foreign_keys = []
patched = 'openerp.addons.pos_remove_pos_category' in sys.modules

Loading…
Cancel
Save