fix: Se corrigen errores en 6.8
This commit is contained in:
4
sale.py
4
sale.py
@@ -126,10 +126,6 @@ class Sale(metaclass=PoolMeta):
|
||||
|
||||
@classmethod
|
||||
def get_invoice(cls, record):
|
||||
pool = Pool()
|
||||
ctx = Transaction().context
|
||||
Shop = pool.get('sale.shop')
|
||||
shop = Shop.search([('id', '=', ctx["shop"])])[0]
|
||||
if record.state != 'draft' and record.invoices:
|
||||
invoice = record.invoices[0]
|
||||
data = {}
|
||||
|
||||
Reference in New Issue
Block a user