Browse Source
[WIP][MIG]attachment_base_synchronize:Migration to 11.0
12.0-mig-module_prototyper_last
[WIP][MIG]attachment_base_synchronize:Migration to 11.0
12.0-mig-module_prototyper_last
kiplangatdan
6 years ago
committed by
David Beal
9 changed files with 55 additions and 42 deletions
-
13attachment_base_synchronize/README.rst
-
8attachment_base_synchronize/__manifest__.py
-
22attachment_base_synchronize/data/cron.xml
-
7attachment_base_synchronize/data/ir_config_parameter.xml
-
37attachment_base_synchronize/models/attachment.py
-
2attachment_base_synchronize/security/ir.model.access.csv
-
1attachment_base_synchronize/tests/__init__.py
-
3attachment_base_synchronize/tests/test_attachment_base_synchronize.py
-
4attachment_base_synchronize/views/attachment_view.xml
@ -1,16 +1,16 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<odoo noupdate="1"> |
|||
|
|||
<record model="ir.cron" id="cronjob_run_attachments_metadata"> |
|||
<field name='name'>Run Attachments Metadata</field> |
|||
<field name='interval_number'>30</field> |
|||
<field name='interval_type'>minutes</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="active">False</field> |
|||
<field name="doall" eval="False" /> |
|||
<field name="model">ir.attachment.metadata</field> |
|||
<field name="function">run_attachment_metadata_scheduler</field> |
|||
<field name="args">([])</field> |
|||
</record> |
|||
<record model="ir.cron" id="cronjob_run_attachments_metadata"> |
|||
<field name='name'>Run Attachments Metadata</field> |
|||
<field name='interval_number'>30</field> |
|||
<field name='interval_type'>minutes</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="active">False</field> |
|||
<field name="doall" eval="False" /> |
|||
<field name="model_id" ref="model_ir_attachment_metadata"/> |
|||
<field name="state">code</field> |
|||
<field name="code">model.run_attachment_metadata_scheduler()</field> |
|||
</record> |
|||
|
|||
</odoo> |
@ -0,0 +1,7 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo noupdate="1"> |
|||
<record id="attachment_sync_cron_batch_limit" model="ir.config_parameter"> |
|||
<field name="key">attachment_sync_cron_batch_limit</field> |
|||
<field name="value">200</field> |
|||
</record> |
|||
</odoo> |
@ -1,3 +1,3 @@ |
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink |
|||
access_attachment_metadata_user,ir.attachment.metadata.user,model_ir_attachment_metadata,,1,0,0,0 |
|||
access_attachment_metadata_user,ir.attachment.metadata.user,model_ir_attachment_metadata,base.group_no_one,1,1,1,1 |
|||
access_attachment_metadata_manager,ir.attachment.metadata.manager,model_ir_attachment_metadata,base.group_no_one,1,1,1,1 |
@ -1,4 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2016 Angel Moya (http://angelmoya.es) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue