In the form to create a new Expense the fields are not editable - they do not appear as input fields, and when trying to submit it says:
- Description
- Product
But these fields are missing...
Any idea how to fix this?
I'm able to upload a receipt, which creates an Expense that I can then edit,
I guess this it any way better to create an expenses by uploading an image
in such case the option to create an expenses is not necessary (and not working any way)
But I think it is better if after upload it will redirect to Expense edit page - instead I have to click on edit and enter the receipt data
This happens on odoo 14 clean install of community edition, language hebrew (RTL) but it happens also when I change to english (LTR)
I install it twice, happens on both installation
I cannot post screen image (karama is a bitch) but here is the html:
<div class="clearfix position-relative o_form_sheet"><div class="o_not_full oe_button_box"><button type="button" name="action_get_attachment_view" class="btn oe_stat_button"><i class="fa fa-fw o_button_icon fa-file-text-o"></i><div name="attachment_number" class="o_field_widget o_stat_info o_readonly_modifier" data-original-title="" title="">
<span class="o_stat_value">0</span>
<span class="o_stat_text">Receipts</span>
</div></button></div><div class="oe_title"><label class="o_form_label oe_edit_only" for="o_field_input_722" data-original-title="" title="">Description</label><h1><span class="o_field_char o_field_widget o_readonly_modifier o_required_modifier" name="name" placeholder="e.g. Lunch with Customer"></span></h1></div><div class="o_group"><table class="o_group o_inner_group o_group_col_6"><tbody><tr><td class="o_td_label"></td><td style="width: 100%;"></td></tr><tr><td class="o_td_label"></td><td style="width: 100%;"></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier o_required_modifier" for="o_field_input_723" data-original-title="" title="">Product</label></td><td style="width: 100%;"><a class="o_form_uri o_field_widget o_readonly_modifier o_required_modifier" href="#" name="product_id" id="o_field_input_723"><span></span></a></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier o_required_modifier" for="o_field_input_724" data-original-title="" title="">Unit Price</label></td><td style="width: 100%;"><span class="o_field_monetary o_field_number o_field_widget o_readonly_modifier o_required_modifier" name="unit_amount">0.00 ₪</span></td></tr><tr><td class="o_td_label"></td><td style="width: 100%;"></td></tr><tr><td class="o_td_label"><label class="o_form_label" for="o_field_input_725" data-original-title="" title="">Quantity</label></td><td style="width: 100%;"><div class="o_row"><span class="o_field_float o_field_number o_field_widget o_readonly_modifier o_required_modifier oe_inline" name="quantity">1.00</span></div></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier" for="o_field_input_726" data-original-title="" title="">Taxes</label></td><td style="width: 100%;"><div class="o_field_many2manytags o_field_widget o_readonly_modifier" name="tax_ids">
</div></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier" for="o_field_input_727" data-original-title="" title="">Total</label></td><td style="width: 100%;"><span class="o_field_monetary o_field_number o_field_widget o_readonly_modifier" name="total_amount">0.00 ₪</span></td></tr></tbody></table><table class="o_group o_inner_group o_group_col_6"><tbody><tr><td class="o_td_label"><label class="o_form_label" for="o_field_input_728" data-original-title="" title="">Bill Reference</label></td><td style="width: 100%;"><input class="o_field_char o_field_widget o_input" name="reference" placeholder="" type="text" autocomplete="none" id="o_field_input_728"></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier" for="o_field_input_729" data-original-title="" title="">Expense Date</label></td><td style="width: 100%;"><span class="o_field_date o_field_widget o_readonly_modifier" name="date">12/09/2020</span></td></tr><tr><td class="o_td_label"><label class="o_form_label o_invisible_modifier o_readonly_modifier" for="o_field_input_730" data-original-title="" title="">Accounting Date</label></td><td style="width: 100%;"><span class="o_field_date o_field_widget o_invisible_modifier o_readonly_modifier" name="accounting_date"></span></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier" for="o_field_input_731" data-original-title="" title="">Account</label></td><td style="width: 100%;"><a class="o_form_uri o_field_widget o_readonly_modifier" href="#id=73&model=account.account" name="account_id" id="o_field_input_731"><span>212200 Purchase of Equipments</span></a></td></tr><tr><td class="o_td_label"><label class="o_form_label o_required_modifier" for="o_field_input_732" data-original-title="" title="">Employee</label></td><td style="width: 100%;"><div class="o_field_widget o_field_many2one o_with_button o_required_modifier" aria-atomic="true" name="employee_id">
<div class="o_input_dropdown">
<input type="text" class="o_input ui-autocomplete-input" autocomplete="off" id="o_field_input_732">
<a role="button" class="o_dropdown_button" draggable="false"></a>
</div>
<button type="button" class="fa fa-external-link btn btn-secondary o_external_button" tabindex="-1" draggable="false" aria-label="External link" title="External link"></button>
</div></td></tr><tr><td class="o_td_label"></td><td style="width: 100%;"></td></tr><tr><td class="o_td_label"></td><td style="width: 100%;"></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier" for="o_field_input_733" data-original-title="" title="">Analytic Account</label></td><td style="width: 100%;"><a class="o_form_uri o_field_widget o_readonly_modifier" href="#" name="analytic_account_id" id="o_field_input_733"><span></span></a></td></tr><tr><td class="o_td_label"></td><td style="width: 100%;"></td></tr><tr><td class="o_td_label"><label class="o_form_label o_readonly_modifier o_required_modifier" for="o_field_input_734" data-original-title="" title="">Company</label></td><td style="width: 100%;"><a class="o_form_uri o_field_widget o_readonly_modifier o_required_modifier" href="#id=1&model=res.company" name="company_id" id="o_field_input_734"><span>Zapit</span></a></td></tr></tbody></table><table class="o_group o_inner_group o_group_col_6"><tbody><tr><td class="o_td_label"><label class="o_form_label" for="o_field_input_735" data-original-title="" title="">Paid By</label></td><td style="width: 100%;"><div><div class="o_field_radio o_vertical o_field_widget" name="payment_mode" role="radiogroup" aria-label="Paid By" id="o_field_input_735">
<div class="custom-control custom-radio o_radio_item" aria-atomic="true">
<input type="radio" class="custom-control-input o_radio_input" checked="true" name="radio736" data-value="own_account" data-index="0" id="radio736_own_account">
<label class="custom-control-label o_form_label" for="radio736_own_account">Employee (to reimburse)</label>
</div>
<div class="custom-control custom-radio o_radio_item" aria-atomic="true">
<input type="radio" class="custom-control-input o_radio_input" name="radio736" data-value="company_account" data-index="1" id="radio736_company_account">
<label class="custom-control-label o_form_label" for="radio736_company_account">Company</label>
</div>
</div></div></td></tr></tbody></table></div><div><span class="o_field_text o_field_widget o_readonly_modifier oe_inline" name="description" placeholder="Notes..." data-original-title="" title=""></span></div></div>
Looks like this was a bug and was fixed in the following commit:
https://github.com/odoo/odoo/commit/d0ad00fddf5c3eb05381769a4e75c93e4dcfc388