Now the creation of stock moves without shipment is made in sale_pos module
This commit is contained in:
parent
08472d05e6
commit
7a9fb591a8
5
sale.py
5
sale.py
@ -64,8 +64,6 @@ class Sale:
|
|||||||
if not sale.invoices and sale.invoice_method == 'order':
|
if not sale.invoices and sale.invoice_method == 'order':
|
||||||
cls.raise_user_error('not_customer_invoice')
|
cls.raise_user_error('not_customer_invoice')
|
||||||
|
|
||||||
sale.create_moves_without_shipment()
|
|
||||||
|
|
||||||
grouping = getattr(sale.party, 'sale_invoice_grouping_method',
|
grouping = getattr(sale.party, 'sale_invoice_grouping_method',
|
||||||
False)
|
False)
|
||||||
if sale.invoices and not grouping:
|
if sale.invoices and not grouping:
|
||||||
@ -120,9 +118,6 @@ class Sale:
|
|||||||
default['payments'] = None
|
default['payments'] = None
|
||||||
return super(Sale, cls).copy(sales, default)
|
return super(Sale, cls).copy(sales, default)
|
||||||
|
|
||||||
def create_moves_without_shipment(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class SalePaymentForm(ModelView):
|
class SalePaymentForm(ModelView):
|
||||||
'Sale Payment Form'
|
'Sale Payment Form'
|
||||||
|
Loading…
Reference in New Issue
Block a user