mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos.git
synced 2023-12-14 07:13:02 +01:00
Remove test file
This commit is contained in:
parent
c69001755a
commit
13f67ecac2
2 changed files with 13 additions and 2052 deletions
2052
sale-new.py
2052
sale-new.py
File diff suppressed because it is too large
Load diff
13
sale.py
13
sale.py
|
@ -2078,3 +2078,16 @@ class SalesCostsReport(Report):
|
|||
report_context['total_cost'] = total_cost
|
||||
report_context['total_income'] = total_income
|
||||
return report_context
|
||||
|
||||
|
||||
class WizardSalePayment(metaclass=PoolMeta):
|
||||
__name__ = 'sale.payment'
|
||||
|
||||
def transition_pay_(self):
|
||||
res = super(WizardSalePayment, self).transition_pay_()
|
||||
Sale = Pool().get('sale.sale')
|
||||
active_id = Transaction().context.get('active_id', False)
|
||||
sale = Sale(active_id)
|
||||
if self.start.do_invoice:
|
||||
Sale.workflow_to_end([sale])
|
||||
return res
|
||||
|
|
Loading…
Reference in a new issue