-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0][ADD] sale_order_*requested_delivery_period #29
base: 14.0
Are you sure you want to change the base?
Conversation
279994e
to
4c013b2
Compare
4c013b2
to
a7604f3
Compare
a7604f3
to
ed9335c
Compare
wiz = self.env["sale.order.import"].create( | ||
{"order_file": base64.b64encode(xml_file), "order_filename": filename} | ||
) | ||
f.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f.close() |
when run out with
, f will be closed
self.assertEqual(so.customer_order_number, res["client_order_ref"]) | ||
self.assertEqual(so.customer_order_free_ref, "MrBlue") | ||
self.assertEqual( | ||
so.client_order_ref, res["client_order_ref"] + " - MrBlue" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so.client_order_ref, res["client_order_ref"] + " - MrBlue" | |
so.client_order_ref, res["client_order_ref"] + f" - {customer_reference}" |
if res.get("client_order_ref"): | ||
|
||
self.assertEqual(so.customer_order_number, res["client_order_ref"]) | ||
self.assertEqual(so.customer_order_free_ref, "MrBlue") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.assertEqual(so.customer_order_free_ref, "MrBlue") | |
self.assertEqual(so.customer_order_free_ref, customer_reference) |
wiz = self.env["sale.order.import"].create( | ||
{"order_file": base64.b64encode(xml_file), "order_filename": filename} | ||
) | ||
f.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f.close() | |
root = etree.fromstring(xml_file) | |
cbc_namespace = root.nsmap.get('cbc') | |
customer_reference = root.find(f'{{{cbc_namespace}}}CustomerReference').text |
No description provided.