Add save argument to extension of set_multivalue
issue10756 review369671002 (grafted from 97a0ff35ecf03d9e049f0b3470dd73e75f7c4b95) --HG-- branch : 6.0
This commit is contained in:
1 parent
791af53df2
commit
d30b03f063
1 file changed
+2
-2
+2
-2
@@ -55,7 +55,7 @@ class Product(metaclass=PoolMeta):
|
||||
pattern.setdefault('warehouse', context.get('warehouse'))
|
||||
return super().get_multivalue(name, **pattern)
|
||||
|
||||
def set_multivalue(self, name, value, **pattern):
|
||||
def set_multivalue(self, name, value, save=True, **pattern):
|
||||
pool = Pool()
|
||||
Company = pool.get('company.company')
|
||||
context = Transaction().context
|
||||
@@ -64,7 +64,7 @@ class Product(metaclass=PoolMeta):
|
||||
company = Company(context['company'])
|
||||
if company.cost_price_warehouse:
|
||||
pattern.setdefault('warehouse', context.get('warehouse'))
|
||||
return super().set_multivalue(name, value, **pattern)
|
||||
return super().set_multivalue(name, value, save=save, **pattern)
|
||||
|
||||
@classmethod
|
||||
def _domain_moves_cost(cls):
|
||||
|
||||
Reference in new issue
Block a user