mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos.git
synced 2023-12-14 07:13:02 +01:00
minor fix
This commit is contained in:
parent
dda03820dc
commit
afbd63bfaf
1 changed files with 9 additions and 9 deletions
18
sale.py
18
sale.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue