Skip to content

Commit

Permalink
{MIG] sale_quotation_number: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger committed Jul 23, 2024
1 parent b4c395f commit d7b5ab4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sale_quotation_number/tests/test_sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,15 @@ def test_copy_no_origin(self):
def test_copy_with_origin(self):
origin = "origin"
order1 = self.sale_order_model.create(
{
"origin": origin,
"partner_id": self.env.ref("base.res_partner_1").id
}
{"origin": origin, "partner_id": self.env.ref("base.res_partner_1").id}
)
order_copy = order1.copy()

self.assertEqual(", ".join([origin, order1.name]), order_copy.origin)

def test_error_confirmation_sequence(self):
order = self.sale_order_model.create(
{"partner_id": self.env.ref("base.res_partner_1").id,
"state": "sale"}
{"partner_id": self.env.ref("base.res_partner_1").id, "state": "sale"}
)
# An exception is forced
sequence_id = self.env["ir.sequence"].search(
Expand Down

0 comments on commit d7b5ab4

Please sign in to comment.