d00a381ece3d17e9e6af947aadff4647adb50133
Currently, When we create expense report from expense it will directly create a expense report record so discard button on top is misleading. So in this commit, when creating the expense report from the expense it will not create an record but set the default value in editable form view with auto computed name based on expense. Also create report action coming to the two places 1) in top action menu 2) on tree header So in this commit, removed 'create report' menu from top action bar. Added the depends on can_reset and can_approve to compute the value for displaying the button when record is not saved from the 'create Expense report' button and default in submit state. also fix the attachment_number field because expense.id is NewId_X while passing in default_get of expense_line_ids so count was 0 without saving the expense sheet. closes odoo/odoo#65104 Taskid: 2359834 Related: odoo/upgrade#1875 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%