summaryrefslogtreecommitdiff
path: root/addons/hr_expense/data
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-08-18 16:32:20 +0200
committerYannick Tivisse <yti@odoo.com>2016-08-25 16:06:44 +0200
commit3b5d6da5c16e15477181a845672f4988419beeee (patch)
treee1b5d37712061dc528473b3681e8b64e6e77b1fd /addons/hr_expense/data
parent47728ccd407f683ef22ac9095b88dedbacfb0ef2 (diff)
[FIX] hr_expense: Solve several usability issues on the flow
Review the subtypes =================== - Add a subtype for the paid expenses - Correct subtypes wording Prevent expense report for several employees ============================================ - Can add lines from every employee, leading to account issues (payable / receivable) Raise an error if you try to report several expenses for different employees Don't track onchanges on journal_id =================================== - Expense Sheet, click on Post Journal Entries: you have 2 produced messages, and one is strange (Journal Entry: * 1 ?) Remove useless message on chatter ================================= - Remove the message to say that the expense report has been validated by ... It's redundant as the visibility tracker already logs this change Remove unused method ==================== - 'refuse_expense_sheets' is declared but never used Log a link to the payment on chatter ==================================== Expense Sheet, click on Register Payment: you have a message containing the payment name (SUPP.OUT/2016/0001). Add a link to the form view. Expense duplication =================== Do not copy 'sheet_id' on duplication. It's wrong and has as secondary effect to duplicate the state too. Expense Report tree view ======================== Display correctly the widget monetary
Diffstat (limited to 'addons/hr_expense/data')
-rw-r--r--addons/hr_expense/data/hr_expense_data.xml14
1 files changed, 10 insertions, 4 deletions
diff --git a/addons/hr_expense/data/hr_expense_data.xml b/addons/hr_expense/data/hr_expense_data.xml
index 425fb3a6e79..e378419120d 100644
--- a/addons/hr_expense/data/hr_expense_data.xml
+++ b/addons/hr_expense/data/hr_expense_data.xml
@@ -42,18 +42,24 @@
<field name="name">Approved</field>
<field name="res_model">hr.expense.sheet</field>
<field name="default" eval="True"/>
- <field name="description">Expense approved</field>
+ <field name="description">Expense report approved</field>
</record>
<record id="mt_expense_refused" model="mail.message.subtype">
<field name="name">Refused</field>
<field name="res_model">hr.expense.sheet</field>
<field name="default" eval="True"/>
- <field name="description">Expense refused</field>
+ <field name="description">Expense report refused</field>
</record>
<record id="mt_expense_confirmed" model="mail.message.subtype">
- <field name="name">To Approve</field>
+ <field name="name">Submitted</field>
<field name="res_model">hr.expense.sheet</field>
- <field name="description">Expense confirmed, waiting confirmation</field>
+ <field name="description">Expense report submitted, waiting approval</field>
+ <field name="default" eval="False"/>
+ </record>
+ <record id="mt_expense_paid" model="mail.message.subtype">
+ <field name="name">Paid</field>
+ <field name="res_model">hr.expense.sheet</field>
+ <field name="description">Expense report paid</field>
<field name="default" eval="False"/>
</record>
<!-- Department (Parent) related subtypes for messaging / Chatter -->