[IMP] hr_expense: Add an 'Attach Document' action button on expenses
Purpose ======= Ease the process to add receipt from the mobile app Specification ============= Add an "Attach Document" action button. On mobile, it should open the camera app + have a link to choose a photo from the gallery
This commit is contained in:
committed by
Yannick Tivisse
parent
b7aa439826
commit
60d50dc0ec
@@ -98,6 +98,8 @@
|
||||
<xpath expr="/form/*" position="before">
|
||||
<header>
|
||||
<button name="action_submit_expenses" states="draft" string="Submit to Manager" type="object" class="oe_highlight"/>
|
||||
<widget name="attach_document" string="Attach Document" action="message_post" attrs="{'invisible': [('attachment_number', '<=', 0)]}"/>
|
||||
<widget name="attach_document" string="Attach Document" action="message_post" class="oe_highlight" attrs="{'invisible': [('attachment_number', '>=', 1)]}"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,reported,approved,done,refused"/>
|
||||
<button name="action_view_sheet" type="object" string="View Report" class="oe_highlight" attrs="{'invisible': [('state', '=','draft')]}"/>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user