add patch to see product forms
This commit is contained in:
parent
fb09dd6205
commit
73e3fe1bc1
|
@ -0,0 +1,18 @@
|
|||
Index: configuration.py
|
||||
===================================================================
|
||||
|
||||
--- a/modules/product/configuration.py
|
||||
+++ b/modules/product/configuration.py
|
||||
@@ -27,6 +27,12 @@
|
||||
default_cost_price_method = fields.MultiValue(default_cost_price_method)
|
||||
get_cost_price_methods = get_cost_price_methods
|
||||
|
||||
+ def get_multivalue(self, name, **pattern):
|
||||
+ if 'company' in pattern:
|
||||
+ pattern = pattern.copy()
|
||||
+ pattern.pop('company')
|
||||
+ return super(Configuration, self).get_multivalue(name, **pattern)
|
||||
+
|
||||
@classmethod
|
||||
def default_default_cost_price_method(cls, **pattern):
|
||||
return cls.multivalue_model(
|
Loading…
Reference in New Issue