forked from sodexis/connector-magento
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmagentoerpconnect_data.xml
120 lines (107 loc) · 5.83 KB
/
magentoerpconnect_data.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="product.decimal_discount" model="decimal.precision">
<field name="digits">3</field>
</record>
<record forcecreate="True" id="ir_cron_import_sale_orders" model="ir.cron">
<field name="name">Magento - Import Sales Orders</field>
<field eval="False" name="active"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'magento.backend'" name="model"/>
<field eval="'_scheduler_import_sale_orders'" name="function"/>
<field eval="'()'" name="args"/>
</record>
<record forcecreate="True" id="ir_cron_import_customer_groups" model="ir.cron">
<field name="name">Magento - Import Customer Groups</field>
<field eval="False" name="active"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'magento.backend'" name="model"/>
<field eval="'_scheduler_import_customer_groups'" name="function"/>
<field eval="'()'" name="args"/>
</record>
<record forcecreate="True" id="ir_cron_import_partners" model="ir.cron">
<field name="name">Magento - Import Partners</field>
<field eval="False" name="active"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'magento.backend'" name="model"/>
<field eval="'_scheduler_import_partners'" name="function"/>
<field eval="'()'" name="args"/>
</record>
<record forcecreate="True" id="ir_cron_import_product_categories" model="ir.cron">
<field name="name">Magento - Import Product Categories</field>
<field eval="False" name="active"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'magento.backend'" name="model"/>
<field eval="'_scheduler_import_product_categories'" name="function"/>
<field eval="'()'" name="args"/>
</record>
<record forcecreate="True" id="ir_cron_import_product_product" model="ir.cron">
<field name="name">Magento - Import Products</field>
<field eval="False" name="active"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'magento.backend'" name="model"/>
<field eval="'_scheduler_import_product_product'" name="function"/>
<field eval="'()'" name="args"/>
</record>
<record forcecreate="True" id="ir_cron_update_product_stock_qty" model="ir.cron">
<field name="name">Magento - Update Stock Quantities</field>
<field eval="False" name="active"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'magento.backend'" name="model"/>
<field eval="'_scheduler_update_product_stock_qty'" name="function"/>
<field eval="'()'" name="args"/>
</record>
<record id="excep_wrong_total_amount" model="sale.exception">
<field name="name">Total Amount differs from Magento</field>
<field name="description">The amount computed in OpenERP doesn't match with the amount in Magento.
Cause:
The taxes are probably different between OpenERP and Magento. A fiscal position could have changed the final price.
Resolution:
Check your taxes and fiscal positions configuration and correct them if necessary.</field>
<field name="sequence">30</field>
<field name="model">sale.order</field>
<field name="code">if order.magento_bind_ids and abs(order.amount_total - order.magento_bind_ids[0].total_amount) >= 0.01:
failed = True</field>
<field name="active" eval="True"/>
</record>
<record id="excep_wrong_total_amount_tax" model="sale.exception">
<field name="name">Total Tax Amount differs from Magento</field>
<field name="description">The tax amount computed in OpenERP doesn't match with the tax amount in Magento.
Cause:
The taxes are probably different between OpenERP and Magento. A fiscal position could have changed the final price.
Resolution:
Check your taxes and fiscal positions configuration and correct them if necessary.</field>
<field name="sequence">30</field>
<field name="model">sale.order</field>
<field name="code"># By default, a cent of difference for the tax amount is allowed, feel free to customise it in your own module
if order.magento_bind_ids and abs(order.amount_tax - order.magento_bind_ids[0].total_amount_tax) > 0.01:
failed = True</field>
<field name="active" eval="True"/>
</record>
</data>
</openerp>