ports/finance/odoo14/files/patch-odoo_tools__vendor_sessions.py
Jose Alonso Cardenas Marquez 17037c7822 finance/odoo14: New port: Suite of web based open source business apps
Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce,
Warehouse Management, Project Management, Billing & Accounting, Point of Sale,
Human Resources, Marketing, Manufacturing, etc

Odoo Apps can be used as stand-alone applications, but they also integrate
seamlessly so you get a full-featured Open Source ERP when you install several
Apps.

WWW: https://www.odoo.com
2022-08-27 14:32:10 -05:00

19 lines
552 B
Python

--- odoo/tools/_vendor/sessions.py 2021-09-04 18:46:08.432901000 -0500
+++ odoo/tools/_vendor/sessions.py 2021-09-04 18:46:25.423822000 -0500
@@ -26,7 +26,6 @@
from time import time
from werkzeug.datastructures import CallbackDict
-from werkzeug.posixemulation import rename
_sha1_re = re.compile(r"^[a-f0-9]{40}$")
@@ -198,7 +197,7 @@
finally:
f.close()
try:
- rename(tmp, fn)
+ os.rename(tmp, fn)
os.chmod(fn, self.mode)
except (IOError, OSError):
pass