minor fix

This commit is contained in:
wilsongomez 2022-09-12 09:06:25 -05:00
parent bb53a9c713
commit bd8457c1ca

View file

@ -109,7 +109,7 @@ class Sale(metaclass=PoolMeta):
if invoice.state in ('posted', 'paid'):
continue
# cls.recheck_taxes(sale)
if hasatrr(configuration, 'password_force_assign') and configuration.password_force_assign and sale.shipment_state == 'none':
if hasattr(configuration, 'password_force_assign') and configuration.password_force_assign and sale.shipment_state == 'none':
cls.validate_stock(sale)
cls.process_pos(sale)
super(Sale, cls).process(sales)