Both default expenses product were called Expenses, which was confusing as it was not possible to distinguish them at first glance. Here the expense product with a fixed cost is renamed to make it more clear. odoo/upgrade#3546 closes odoo/odoo#92232 Taskid: 2862104 Signed-off-by: Kevin Baptiste <kba@odoo.com>
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="product_product_fixed_cost" model="product.product">
|
|
<field name="name">Expenses (Fixed Cost)</field>
|
|
<field name="list_price">0.0</field>
|
|
<field name="standard_price">1.0</field>
|
|
<field name="type">service</field>
|
|
<field name="categ_id" ref="product.cat_expense"/>
|
|
<field name="can_be_expensed" eval="True"/>
|
|
</record>
|
|
<record id="product_product_zero_cost" model="product.product">
|
|
<field name="name">Expenses</field>
|
|
<field name="list_price">0.0</field>
|
|
<field name="standard_price">0.0</field>
|
|
<field name="type">service</field>
|
|
<field name="default_code">EXP_GEN</field>
|
|
<field name="categ_id" ref="product.cat_expense"/>
|
|
<field name="can_be_expensed" eval="True"/>
|
|
</record>
|
|
</data>
|
|
<data>
|
|
<function model="ir.config_parameter" name="set_param" eval="('hr_expense.use_mailgateway', True)"/>
|
|
</data>
|
|
</odoo>
|