[imp] sale_expense: Make expenses re-invoicing easier

Change the data of the product Expenses : https://drive.google.com/a/odoo.com/file/d/1N0jW9QDQ35-5EY13fAsDIwuW8HHUXi-3/view?usp=drivesdk
When creating a new expense product from the Expense app, the invoicing information should be Delivered and At cost by default  https://drive.google.com/a/odoo.com/file/d/1IoqYU8I5MBaeabQJOvQoO-NQl1RK2yPy/view?usp=drivesdk

project : RD for Dummies
task : [Expense] EXP product
This commit is contained in:
Gert Pellin
2018-05-28 16:58:36 +02:00
committed by Yannick Tivisse
parent 6383120f3b
commit 59636caeba
4 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -18,11 +18,12 @@ This module allow to reinvoice employee expense, by setting the SO directly on t
'data': [
'security/ir.model.access.csv',
'security/sale_expense_security.xml',
'data/sale_expense_data.xml',
'views/product_view.xml',
'views/hr_expense_views.xml',
'views/sale_order_views.xml',
],
'demo': ['sale_expense_demo.xml'],
'demo': ['data/sale_expense_demo.xml'],
'test': [],
'installable': True,
'auto_install': True,
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="hr_expense.product_product_fixed_cost" model="product.product">
<field name="invoice_policy">delivery</field>
<field name="expense_policy">cost</field>
</record>
</data>
</odoo>
@@ -14,4 +14,10 @@
</xpath>
</field>
</record>
<record id="hr_expense.hr_expense_product" model="ir.actions.act_window">
<field name="context">{"default_can_be_expensed": 1, 'default_type': 'service',
'default_invoice_policy':'delivery', 'default_expense_policy' : 'cost'}</field>
</record>
</odoo>