Remove empty space and __all__.

This commit is contained in:
Albert Cervera i Areny 2021-03-19 23:08:51 +01:00
parent 619b626d57
commit 1d6ab9bd9d
1 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,6 @@ from trytond.pool import Pool, PoolMeta
from trytond.exceptions import UserError
from trytond.i18n import gettext
__all__ = ['Purchase']
class Purchase(metaclass=PoolMeta):
__name__ = 'purchase.purchase'
@ -18,7 +16,7 @@ class Purchase(metaclass=PoolMeta):
super(Purchase, cls).quote(purchases)
for purchase in purchases:
for line in purchase.lines:
if (line.product and
if (line.product and
line.product.purchase_homologation_required):
product_suppliers = PProductSupplier.search([
('template','=',line.product.template.id),
@ -28,4 +26,4 @@ class Purchase(metaclass=PoolMeta):
raise UserError(gettext(
'product_purchase_homologation.cannot_end_purchase',
purchase=purchase.id,
line=line.rec_name))
line=line.rec_name))