16.03.26
This commit is contained in:
@@ -298,21 +298,21 @@ class Purchase(metaclass=PoolMeta):
|
|||||||
WB = Pool().get('purchase.weight.basis')
|
WB = Pool().get('purchase.weight.basis')
|
||||||
wb = WB.search(['id','>',0])
|
wb = WB.search(['id','>',0])
|
||||||
if wb:
|
if wb:
|
||||||
return wb[0]
|
return wb[0].id
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def default_certif(cls):
|
def default_certif(cls):
|
||||||
Certification = Pool().get('purchase.certification')
|
Certification = Pool().get('purchase.certification')
|
||||||
certification = Certification.search(['id','>',0])
|
certification = Certification.search(['id','>',0])
|
||||||
if certification:
|
if certification:
|
||||||
return certification[0]
|
return certification[0].id
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def default_certif(cls):
|
def default_certif(cls):
|
||||||
Association = Pool().get('purchase.association')
|
Association = Pool().get('purchase.association')
|
||||||
association = Association.search(['id','>',0])
|
association = Association.search(['id','>',0])
|
||||||
if association:
|
if association:
|
||||||
return association[0]
|
return association[0].id
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def default_tol_min(cls):
|
def default_tol_min(cls):
|
||||||
|
|||||||
Reference in New Issue
Block a user