修改同步所有数据的按钮
This commit is contained in:
@@ -1028,7 +1028,6 @@ class MachineToolCategory(models.Model):
|
||||
token = sf_sync_config['token']
|
||||
sf_secret_key = sf_sync_config['sf_secret_key']
|
||||
headers = Common.get_headers(self, token, sf_secret_key)
|
||||
|
||||
strUrl = sf_sync_config['sf_url'] + self.url
|
||||
r = requests.post(strUrl, json={}, data=None, headers=headers)
|
||||
r = r.json()
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<field name="sf_secret_key"/>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<button type="object" class="oe_highlight" name="sf_all_sync"
|
||||
<button type="object" class="oe_highlight" name="sf_all_sync" confirm="确认同步"
|
||||
string="同步资源库基础数据"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user