Skip to content

Commit

Permalink
TA#60956 [CHG] Dependencies and cron option (#137)
Browse files Browse the repository at this point in the history
* TA#60956 [CHG] Dependencies and cron option
  • Loading branch information
lanto-razafindrabe authored May 22, 2024
1 parent f6c1fac commit f49c7e6
Show file tree
Hide file tree
Showing 6 changed files with 335 additions and 258 deletions.
6 changes: 6 additions & 0 deletions gitoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@
branch: "14.0"
includes:
- website_sale_invoice_address

- url: https://github.com/OCA/queue
branch: "14.0"
includes:
- queue_job
- queue_job_cron
65 changes: 33 additions & 32 deletions partner_duplicate_mgmt/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,41 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
'name': 'Partner Duplicate Management',
'version': "14.0.1.0.0",
'author': 'Savoir-faire Linux',
'maintainer': 'Numigi',
'website': 'https://www.numigi.com',
'license': 'LGPL-3',
'category': 'Partner Management',
'summary': 'Manage Partner Duplicates',
'depends': [
'account',
'base_view_inheritance_extension',
'contacts',
'crm',
'mail',
"name": "Partner Duplicate Management",
"version": "14.0.1.0.1",
"author": "Savoir-faire Linux",
"maintainer": "Numigi",
"website": "https://www.numigi.com",
"license": "LGPL-3",
"category": "Partner Management",
"summary": "Manage Partner Duplicates",
"depends": [
"account",
"base_view_inheritance_extension",
"contacts",
"crm",
"mail",
"queue_job_cron",
],
'data': [
'data/ir_config_parameter.xml',
'data/ir_cron.xml',
'data/merger_reason.xml',
'data/res_partner.xml',
'data/res_partner_duplicate_field.xml',
'security/res_groups.xml',
'security/ir.model.access.csv',
'views/res_partner.xml',
'views/res_partner_duplicate.xml',
'views/res_partner_duplicate_field.xml',
'views/merger_reason.xml',
"data": [
"data/ir_config_parameter.xml",
"data/ir_cron.xml",
"data/merger_reason.xml",
"data/res_partner.xml",
"data/res_partner_duplicate_field.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"views/res_partner.xml",
"views/res_partner_duplicate.xml",
"views/res_partner_duplicate_field.xml",
"views/merger_reason.xml",
],
'demo': [
'demo/res_users.xml',
"demo": [
"demo/res_users.xml",
],
'external_dependencies': {
'python': ['unidecode'],
"external_dependencies": {
"python": ["unidecode"],
},
'post_init_hook': 'update_partners_indexed_name',
'installable': True,
"post_init_hook": "update_partners_indexed_name",
"installable": True,
}
8 changes: 8 additions & 0 deletions partner_duplicate_mgmt/data/ir_cron.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@
<odoo>
<data noupdate="1">

<record model="queue.job.channel" id="channel_res_partner_duplicate_ir_cron">
<field name="name">res_partner_duplicate.ir_cron</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>

<record id="ir_cron_create_duplicates" model="ir.cron">
<field name="name">Find Partner Duplicates</field>
<field name="model_id" ref="partner_duplicate_mgmt.model_res_partner_duplicate"/>
<field name="state">code</field>
<field name="code">model.create_duplicates()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="run_as_queue_job" eval="True"/>
<field name="no_parallel_queue_job_run" eval="True"/>
<field name="channel_id" ref="channel_res_partner_duplicate_ir_cron"/>
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
</record>
Expand Down
Loading

0 comments on commit f49c7e6

Please sign in to comment.