summaryrefslogtreecommitdiff
path: root/addons/hr_expense/static/src/js
AgeCommit message (Collapse)Author
2020-10-15[FIX] expense: fix generated QRCodeKairis
When there is no expense, a messages is shown: "Did you try the mobile app?" When clicking on the "Download on the App Store" or on the "Get it on Google Play" buttons, generated QR codes have some invalid data before it: - 002 - 1 - <the url> This commit removes datas that are before the url so only the url is displayed. closes odoo/odoo#58097 Taskid: 2326303 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-25[FIX] Expenses: Display headers in My Expense menu itemsGiacomello Nathan (ngi)
Expense header was displayed in all tree & kanban views. This commit removes the header in other views than 'My Expenses' menus because the expense header should only be visible in the 'My Expenses' menu Task id: 2341766 closes odoo/odoo#58023 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-14[IMP] hr_expense: add upload button on list viewArnaud Joset
Before this commit, the upload button was not displayed on the list view. taskid: 2315124
2020-08-13[IMP] hr_expense: Improve global UX (back2basics)Yannick Tivisse
closes odoo/odoo#55852 Taskid: 2303951 Related: odoo/enterprise#12394 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-11[IMP] hr_expense: Improve general UX (back2basics)Yannick Tivisse
closes odoo/odoo#55689 Taskid: 2277338 Related: odoo/upgrade#1595 Related: odoo/enterprise#12331 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-17[FIX] hr_expense: Fix traceback on access of expense view.Nidhi Patel
Currently, when a user created with default access rights, but doesn't have employee linked with user then it will generate a traceback because if user is not linked with employee then it will return null so due to that while rednering the template error was generated. So in this commit, fix the treaceback by returning default values if the current user had no employee closes odoo/odoo#53161 Taskid: 2262636 Closes: #51687 X-original-commit: 96de35eda1a8e6e5086eb8221e939f3f737a9a6c Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-12[IMP] *: update notifications to optional titleJulien Mougenot
closes odoo/odoo#52826 Related: odoo/enterprise#11084 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-11[REF] *: add tour steps utilsRomeo Fragomeli
This commit moves some step utils in a dedicated file and add new ones. These steps will be very useful for the Main Flow Tour to avoid duplicated code. To do this, we also had to transform it into functions to allow utils to call each other. Existing one are converted for standardization purpose. Note that 'WEBSITE_NEW_PAGE' wasn't considered as an util. This is a very simple step only used twice.
2020-02-28[IMP] hr_expense: Add dashboard for My Expensesjbm-odoo
closes odoo/odoo#45659 Taskid: 2198487 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-28[ADD] hr_expense : add the ability to install OCR moduleThomas Carlier
- if checked in settings, OCR can be used to get infos from the attached receipt image - set default product to EXP_GEN when created from picture - use "register_as_main attachment" when expenses are created from receipt images - Add the upload button to the kanban view to see it immediately in the mobile version and use it to create expenses from pictures. (with or without OCR installed) closes odoo/odoo#39559 Related: odoo/enterprise#6493 Signed-off-by: Florian Daloze (fda) <fda@odoo.com>
2019-12-31[IMP] hr_expense: add upload button on expenses kanban viewBarad Mahendra
Purpose of the task is to improve the mobile user experience of the Expenses app by adding the upload button to the Expenses kanban view. Task ID: 2152155 closes odoo/odoo#41839 Closes: #41839 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-16[IMP] hr_expense: Improve general UX (back2basics)shreya thakrar
For better user experience, there should be a 'UPLOAD' button on'hr.expense' through which user can directly upload a single or multiple documents and according to the number of documents, blank expense record with attached document should be generated. These records should be in 'draft' state. TaskID: 2040887 closes odoo/odoo#35400 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-06-05[IMP] *: move test and tour files to new folder hierarchy and assetRomain Derie
As we now have a new debug mode 'tests' which load a new asset bundle containing tour-test files, we moved those files to a new folder hierarchy. That will clean the .js files trees. Also, those files should be included in the new asset. Basically, the .js tour files (not test) should be inside /static/src/js/tours while .js tour test files (test=true) should be inside /static/tests/tours next to QUnit tests, inside a tours folder. + test_new_api: don't run the test in debug assets task-1934445 Comes with https://github.com/odoo/enterprise/pull/4281 Closes #33213
2018-09-17[FIX] *: adapt tours for the new community navbarAlexandre Kühn
*: crm, hr_expense, hr_recruitment, point_of_sale, project, sale, stock, web_tour, test_main_flows, test_new_api To sum up: - Click on "Apps Menu" then the app item. (previously: click on '+' then the app item). - Click on navbar section menu item. (previously: click on sidebar section menu item).
2018-07-27[REF] web, *: BS4, use custom BS4 checkbox everywhereqsm-odoo
Before this commit, Odoo used checkboxes in three different ways: - A simple <input type="checkbox"/>, mainly in the frontend. The style is browser dependant. - Same as above but with the BS3, checkbox structure. The style is still the same, but the alignement is supposed to be better (which is not always the case). - The Odoo official structure: ``` <div class="o_checkbox"> <input type="checkbox"/> <span/> </div> ``` which allows to have a cross-browser checkbox style and correct alignements. The goal after this commit is to only use the BS4 *custom* checkbox structure to achieve the same goal as our official structure (and remove that one): ``` <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="customCheck1"> <label class="custom-control-label" for="customCheck1">...</label> </div> ``` /!\ Labels are now required (use a zero-width space if necessary)
2018-06-07[IMP] hr_expense: add draft state to expense linesRomainLibert
We need to be able to change an expense report before submitting it, for this we add a new step in the expense process (a draft state for the expense sheets). Task #41700 Closes #24806
2018-01-25[IMP] hr_expense: improve useability of hr_expensefda-odoo
- Change the differents states of hr.expense to have ToSubmit, submitted, approved, refused and paid. - Add a responsible field on employee model. The responsible is a res.user that belong to the group "hr_expense.group_hr_expense_manager" The commit change too a "vals" variable that changed in a git rebase operation. - Make the other_info tab invisible if the user doesn't belong to account.group_account_user. - Make expense wizard (for expense lines) editable if expense is in reported mode, so when the sheet is in To submit state. - Move a tour from expense form to expense_sheet form - rename two fields (attachments and manager) - The buttons "approve" and "expense" must be hidden if the user isn't the expense responsible. - The description field of expense line must be editable in draft, reported and refused state - Add a subtype to follow responsible changes on expenses sheets
2018-01-25[IMP] hr_expense: change tours text, labels, search fieldfda-odoo
- subscribe responsibles of an expense to followers of that expense - hr_expense requires sale_expense instead of sale_management - remove one tour step and change texts of some others - remove header from expense line wizard - add tax field in form view for expense - change the display name of some fields and other titles. - remove the expense report and improve search bar for expenses in report.
2017-10-26[REM] web_planner: Remove the moduleYannick Tivisse
Purpose ======= User tests have been made by the Product Owners team. It showed that the planners are not used by new users on Odoo due to several reasons (They are too static, too heavy to use,...) Specification ============= Remove the module and its different applications. The onboarding on the business flow will be improvement in the weeks to come.
2017-10-03[FIX] hr_expense: improve tour messageYenthe V.G
Better English Closes #19867
2017-09-14[IMP] hr_expense: new tour for user onboardingDhawal Limbuwala
Steps: - In home, expense app icon: "Go to the expense to attach a receipt" - In list, on create button : "Click here to create your first expense and add it to below." - In form, on save button : "Once your Expense is ready, you can save it." - In form, point out the chatter "Attach your receipt here." - In list, point out record selection: "Select expenses to submit them to your manager" - Point out "Action": "Click on Action Submit To Manager to submit selected expenses to your manager" - In expense sheet point out approve “Approve the sheet here. Tip: if you refuse, don’t forget to give the reason thanks to the hereunder message tool".
2016-09-20[FIX] base_setup,hr_expense: missing closing tag, typoMartin Trigaux
2016-07-05[IMP] *: web_tour: remove 'Skip tour' link in tipsAaron Bohy
2016-06-28[IMP] Expense: tour + employee created by defaultFabien Pinckaers
2016-06-21[IMP] hr_expense: Onboarding improvement + mail gatewayYannick Tivisse
1/ Modify the no content help message for hr_expense with a dynamic part which describe how to create a new expense by mail 2/ Mail gateway mechanism. New customizable email alias expense@domain that creates a new expense by sending an email to it. Check several things - Check that the email_from is the same than one of the employees or than on of the related users to employees. If not, send back an email to say that the expense will not be created. - If the email address is valid, check if something is between brackets '[]' If it is the case, check if it is linked to a product internal reference and set it accordingly. If nothing is found, use a default product 'Fixed Cost' - If one/several float(s) are found in the mail subject, take the last occurence and set it as the expense total amount. 3/ If a product template is created, to not add taxes on it. We don't expect it to have additional taxes 4/ Under Expenses -> Configuration -> Expense Product, use a simplified product view with only the needed fields. 5/ When generating the account move lines, use the account defined on the expense line, not the sheet 6/ When creating a payment, make a reconciliation on the payable account move lines That way, if the total amount on the expense is paid, the expense will be set to paid automatically when registering a payment 7/ Add a one-page planner to explain how to use the email alias 8/ The field account_id on the expense sheet was informative. After some tests, it seems that it's more confusing than helping. So we removed it 9/ Add a domain on the field 'bank_journal_id' to select journals of type 'cash' or 'bank' 10/ If the number of expense lines is equal to 1, the expense summary on the expense sheet should be the same name the line. So the process can be done in one click
2016-06-16[ADD] hr_expense: onboarding tourFabien Pinckaers
first step only, to be continued...