commit
2488b7bc00
@ -70,3 +70,6 @@ class AccountMove(models.Model):
|
|||||||
if moves:
|
if moves:
|
||||||
self.flush_model(["name", "journal_id", "move_type", "state"])
|
self.flush_model(["name", "journal_id", "move_type", "state"])
|
||||||
return super()._fetch_duplicate_supplier_reference(only_posted=only_posted)
|
return super()._fetch_duplicate_supplier_reference(only_posted=only_posted)
|
||||||
|
|
||||||
|
def _get_last_sequence(self, relaxed=False, with_prefix=None, lock=True):
|
||||||
|
return super()._get_last_sequence(relaxed, None, lock)
|
||||||
|
@ -309,7 +309,6 @@ class TestAccountMoveNameSequence(TransactionCase):
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
in_refund_invoice._compute_split_sequence()
|
|
||||||
self.assertEqual(in_refund_invoice.name, "/")
|
self.assertEqual(in_refund_invoice.name, "/")
|
||||||
in_refund_invoice.action_post()
|
in_refund_invoice.action_post()
|
||||||
error_msg = "You cannot delete an item linked to a posted entry."
|
error_msg = "You cannot delete an item linked to a posted entry."
|
||||||
|
Loading…
Reference in New Issue
Block a user