Skip to content

Commit

Permalink
Merge pull request #832 from p-tombez/9.0_back-package-noparent
Browse files Browse the repository at this point in the history
[9.0][backport] stock: remove `_parent_store=True` from model `stock.quant.package`
  • Loading branch information
gurneyalex committed Feb 25, 2019
2 parents d4d6deb + be30912 commit 61edcc6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions addons/stock/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -4233,10 +4233,7 @@ class stock_package(osv.osv):
"""
_name = "stock.quant.package"
_description = "Physical Packages"
_parent_name = "parent_id"
_parent_store = True
_parent_order = 'name'
_order = 'parent_left'
_order = 'name,id'

def name_get(self, cr, uid, ids, context=None):
res = self._complete_name(cr, uid, ids, 'complete_name', None, context=context)
Expand Down Expand Up @@ -4294,8 +4291,6 @@ def _get_packages_to_relocate(self, cr, uid, ids, context=None):
_columns = {
'name': fields.char('Package Reference', select=True, copy=False),
'complete_name': fields.function(_complete_name, type='char', string="Package Name",),
'parent_left': fields.integer('Left Parent', select=1),
'parent_right': fields.integer('Right Parent', select=1),
'packaging_id': fields.many2one('product.packaging', 'Packaging', help="This field should be completed only if everything inside the package share the same product, otherwise it doesn't really makes sense.", select=True),
'location_id': fields.function(_get_package_info, type='many2one', relation='stock.location', string='Location', multi="package",
store={
Expand Down

0 comments on commit 61edcc6

Please sign in to comment.