Reputation: 1
I am using odoo18, i want to customized contact export. i want to add a dropdown in export dialogbox. when we click on contact => export action and a dialogbox appear, i want to add a custom dropdown on it that will be displayed the list of the campaign and list of the campaign will be get from the third party using api.
please guide me which default file will be used for displaying export dialogbox and export functinality? and what the file name of my custom module views and models?
my custom module tree is
root@odooo:/opt/odoo18/addons/custom_campaign_export# tree
├── __init__.py
├── __manifest__.py
├── static
│ └── src
│ ├── js
│ │ └── export_data_dialog_extend.js
│ └── xml
│ └── export_data_dialog_extend.xml
└── views
└── assets.xml
xml file code is :
<?xml version="1.0" encoding="utf-8"?>
<template inherit_id="web.ExportDataDialog" name="Custom Export Data Dialog">
<xpath expr="//div[@class='o_right_panel']" position="before">
<div class="form-group">
<label for="campaign">Select Campaign:</label>
<select t-on-change="setCampaign" class="form-select" id="campaign" t-model="state.campaign">
<option value="">Select...</option>
<option value="campaign1">Campaign 1</option>
<option value="campaign2">Campaign 2</option>
<option value="campaign3">Campaign 3</option>
</select>
</div>
</xpath>
</template>
Upvotes: 0
Views: 41