minor fix

This commit is contained in:
Camilo Sarmiento 2020-05-04 10:50:58 -05:00
parent dda03820dc
commit afbd63bfaf

18
sale.py
View file

@ -133,8 +133,6 @@ class Sale(metaclass=PoolMeta):
},
})
@classmethod
def search_rec_name(cls, name, clause):
_, operator, value = clause
@ -1135,16 +1133,12 @@ class SaleDetailed(Wizard):
])
print_ = StateAction('sale_pos.report_sale_detailed')
@classmethod
def __setup__(cls):
super(SaleDetailed, cls).__setup__()
cls._error_messages.update({
'sale_not_product': ('The sale "%s" dont have product '),
})
# cls._error_messages.update({
# 'sale_not_product': ('The sale "%s" dont have product '),
# })
def do_print_(self, action):
salesman_id = None
@ -1177,6 +1171,12 @@ class SaleDetailed(Wizard):
class SaleDetailedReport(Report):
__name__ = 'sale_pos.report_sale_detailed'
@classmethod
def __setup__(cls):
super(SaleDetailedReport, cls).__setup__()
cls._error_messages.update({
'sale_not_product': ('The sale "%s" dont have product '),
})
@classmethod
def get_context(cls, records, data):