summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-02-14 12:59:04 +0000
committerRaphael Collet <rco@odoo.com>2019-03-22 16:42:14 +0000
commitd87443a21337bcc3d785ae23e19f66b11ba8bb9e (patch)
tree0a10e803beca0026560ecb32c18b492c7323de22 /addons
parent1ced3bfca457ac50845637bcd42a8e53bd7f088d (diff)
[FIX] convert: enable kwargs in tag <function>
closes odoo/odoo#31417 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/crm/data/crm_lead_demo.xml12
-rw-r--r--addons/mass_mailing/data/mass_mailing_demo.xml23
-rw-r--r--addons/stock/data/stock_data.xml20
3 files changed, 26 insertions, 29 deletions
diff --git a/addons/crm/data/crm_lead_demo.xml b/addons/crm/data/crm_lead_demo.xml
index 4f638a42f0e..0e73640175a 100644
--- a/addons/crm/data/crm_lead_demo.xml
+++ b/addons/crm/data/crm_lead_demo.xml
@@ -368,8 +368,8 @@ Andrew</p>]]></field>
<!-- Call Function to Cancel the leads (set as Dead) -->
<function model="crm.lead" name="action_set_lost"
- eval="[ref('crm_case_7'), ref('crm_case_9'), ref('crm_case_11'), ref('crm_case_12')],
- {'install_mode': True}"/>
+ eval="[[ref('crm_case_7'), ref('crm_case_9'), ref('crm_case_11'), ref('crm_case_12')]]"
+ context="{'install_mode': True}"/>
<!-- Demo Opportunities -->
<record id="crm_case_13" model="crm.lead">
@@ -1161,13 +1161,13 @@ Andrew</p>]]></field>
<!-- Call Function to set dome opportunities as Lost -->
<function model="crm.lead" name="action_set_lost"
- eval="[ref('crm_case_28')],
- {'install_mode': True}"/>
+ eval="[[ref('crm_case_28')]]"
+ context="{'install_mode': True}"/>
<!-- Call Function to set some opportunities as Won -->
<function model="crm.lead" name="action_set_won"
- eval="[ref('crm_case_20'), ref('crm_case_23'), ref('crm_case_27')],
- {'install_mode': True}"/>
+ eval="[[ref('crm_case_20'), ref('crm_case_23'), ref('crm_case_27')]]"
+ context="{'install_mode': True}"/>
<!-- Activities -->
<record id="activity_1" model="mail.activity">
diff --git a/addons/mass_mailing/data/mass_mailing_demo.xml b/addons/mass_mailing/data/mass_mailing_demo.xml
index 19957054c66..e9df5daaa35 100644
--- a/addons/mass_mailing/data/mass_mailing_demo.xml
+++ b/addons/mass_mailing/data/mass_mailing_demo.xml
@@ -264,34 +264,41 @@
<value model="link.tracker.code"
search="[('link_id.url', '=', 'http://www.example.com')]"
use="code"/>
- <value eval="{'ip': '100.01.02.03', 'country_code': 'BE', 'mail_stat_id': ref('mass_mail_1_stat_0')}"/>
+ <value name="ip">100.01.02.03</value>
+ <value name="country_code">BE</value>
+ <value name="mail_stat_id" eval="ref('mass_mail_1_stat_0')"/>
</function>
<function model="link.tracker.click" name="add_click">
<value model="link.tracker.code"
search="[('link_id.url', '=', 'http://www.example.net/page/contactus')]"
use="code"/>
- <value eval="{'ip': '100.01.02.03', 'country_code': 'BE', 'mail_stat_id': ref('mass_mail_1_stat_0')}"/>
+ <value name="ip">100.01.02.03</value>
+ <value name="country_code">BE</value>
+ <value name="mail_stat_id" eval="ref('mass_mail_1_stat_0')"/>
</function>
<function model="link.tracker.click" name="add_click">
<value model="link.tracker.code"
search="[('link_id.url', '=', 'http://www.example.com')]"
use="code"/>
- <value eval="{'ip': '100.01.02.04', 'country_code': 'BE', 'mail_stat_id': ref('mass_mail_1_stat_1')}"/>
+ <value name="ip">100.01.02.04</value>
+ <value name="country_code">BE</value>
+ <value name="mail_stat_id" eval="ref('mass_mail_1_stat_1')"/>
</function>
<function model="link.tracker.click" name="add_click">
<value model="link.tracker.code"
search="[('link_id.url', '=', 'http://www.example.net/page/contactus')]"
use="code"/>
- <value eval="{'ip': '100.01.02.04', 'country_code': 'BE', 'mail_stat_id': ref('mass_mail_1_stat_0')}"/>
- <value eval="'100.01.02.04'"/>
- <value eval="'BE'"/>
- <value eval="ref('mass_mail_1_stat_0')"/>
+ <value name="ip">100.01.02.04</value>
+ <value name="country_code">BE</value>
+ <value name="mail_stat_id" eval="ref('mass_mail_1_stat_0')"/>
</function>
<function model="link.tracker.click" name="add_click">
<value model="link.tracker.code"
search="[('link_id.url', '=', 'http://www.example.com')]"
use="code"/>
- <value eval="{'ip': '100.01.02.05', 'country_code': 'BE', 'mail_stat_id': ref('mass_mail_1_stat_2')}"/>
+ <value name="ip">100.01.02.05</value>
+ <value name="country_code">BE</value>
+ <value name="mail_stat_id" eval="ref('mass_mail_1_stat_2')"/>
</function>
</data>
diff --git a/addons/stock/data/stock_data.xml b/addons/stock/data/stock_data.xml
index d522f76d9c6..34693a1c29f 100644
--- a/addons/stock/data/stock_data.xml
+++ b/addons/stock/data/stock_data.xml
@@ -143,20 +143,10 @@
</function>
<!-- create the transit location for each company existing -->
- <function model="res.company" name="create_missing_transit_location">
- <value model="res.company" eval="obj()"/>
- </function>
- <function model="res.company" name="create_missing_warehouse">
- <value model="res.company" eval="obj()"/>
- </function>
- <function model="res.company" name="create_missing_inventory_loss_location">
- <value model="res.company" eval="obj()"/>
- </function>
- <function model="res.company" name="create_missing_production_location">
- <value model="res.company" eval="obj()"/>
- </function>
- <function model="res.company" name="create_missing_scrap_location">
- <value model="res.company" eval="obj()"/>
- </function>
+ <function model="res.company" name="create_missing_transit_location"/>
+ <function model="res.company" name="create_missing_warehouse"/>
+ <function model="res.company" name="create_missing_inventory_loss_location"/>
+ <function model="res.company" name="create_missing_production_location"/>
+ <function model="res.company" name="create_missing_scrap_location"/>
</data>
</odoo>