Odoo 框架内已包含数据备份恢复相关的工具函数,实现的具体代码如下
```
from datetime import datetime
import tempfile
from odoo.service import db
import oss2
_auth = oss2.Auth("oss_access_key_id_xxxxxxxxxxx", "oss_access_key_secret_xxxxxxxxxx")
bucket = oss2.Bucket(_auth, ... ...
阅读全文