Remove issue33209.diff
Replace patch to account_invoice_credit_note_realted_invoice module task-033209 task-033888
This commit is contained in:
parent
8db1e76127
commit
0684bff745
|
@ -1,38 +0,0 @@
|
|||
diff -r 47914f00b7da trytond/trytond/modules/account_invoice/invoice.py
|
||||
--- a/trytond/trytond/modules/account_invoice/invoice.py Fri Jan 19 12:42:33 2018 +0100
|
||||
+++ b/invoice.py Fri Jan 19 13:12:01 2018 +0100
|
||||
@@ -2834,11 +2834,11 @@
|
||||
refund = self.start.with_refund
|
||||
invoices = Invoice.browse(Transaction().context['active_ids'])
|
||||
|
||||
- if refund:
|
||||
- for invoice in invoices:
|
||||
- if invoice.state != 'posted':
|
||||
- self.raise_user_error('refund_non_posted',
|
||||
- (invoice.rec_name,))
|
||||
+ for invoice in invoices:
|
||||
+ if invoice.state != 'posted':
|
||||
+ self.raise_user_error('refund_non_posted',
|
||||
+ (invoice.rec_name,))
|
||||
+ if refund:
|
||||
if invoice.payment_lines:
|
||||
self.raise_user_error('refund_with_payement',
|
||||
(invoice.rec_name,))
|
||||
diff -r 47914f00b7da trytond/trytond/modules/account_invoice/tests/scenario_invoice.rst
|
||||
--- a/trytond/trytond/modules/account_invoice/tests/scenario_invoice.rst Fri Jan 19 12:42:33 2018 +0100
|
||||
+++ b/trytond/trytond/modules/account_invoice/tests/scenario_invoice.rst Fri Jan 19 13:12:01 2018 +0100
|
||||
@@ -199,6 +199,14 @@
|
||||
>>> invoice.total_amount
|
||||
Decimal('240.00')
|
||||
>>> invoice.save()
|
||||
+ >>> invoice.state
|
||||
+ u'draft'
|
||||
+ >>> credit = Wizard('account.invoice.credit', [invoice])
|
||||
+ >>> credit.form.with_refund = True
|
||||
+ >>> credit.execute('credit') #doctest: +IGNORE_EXCEPTION_DETAIL
|
||||
+ Traceback (most recent call last):
|
||||
+ ...
|
||||
+ UserError: ('usererror', (u'you can not credit with refund invoice "1 party" because it is not posted.', ''))
|
||||
>>> Invoice.post([invoice.id], config.context)
|
||||
>>> invoice.reload()
|
||||
>>> invoice.state
|
7
series
7
series
|
@ -126,12 +126,9 @@ issue6265.diff
|
|||
task030479.diff # Adds locales to account_payment_clearing
|
||||
issue6371.diff # stock Do not set effective date on assignation
|
||||
025476_5154_5155_5456_optimize_move_write_assign.diff # stock optimize move write assign
|
||||
|
||||
filestore.diff
|
||||
stock_lot_check_moves_without_lot_before_lot_required.diff
|
||||
|
||||
# electr
|
||||
# issue6626_improve_performance_of_average_cost_price.diff
|
||||
|
||||
filestore.diff
|
||||
issue33209.diff # [account_invoice] Forbid to create credit notes from nonposted invoices
|
||||
|
||||
stock_lot_check_moves_without_lot_before_lot_required.diff
|
||||
|
|
Loading…
Reference in New Issue