Skip to content

Commit

Permalink
[FIX] hr_expense: add missing state field used in modifiers fields
Browse files Browse the repository at this point in the history
The domain is add in the view from the python field description.

Issue:
In expense go in "to Approve" > "Expense Reports to Approve"
Create a new expense sheet by clicking create
Add an expense to the sheet
Click create in the bottom left

result: Uncaught Error: Unknown field state in domain
  • Loading branch information
Gorash committed Feb 19, 2018
1 parent 8aec3c9 commit 361b6f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/hr_expense/views/hr_expense_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<field eval="35" name="priority"/>
<field name="arch" type="xml">
<form string="Expenses" class="o_expense_form">
<field name="state" invisible="True"/>
<sheet>
<div class="oe_title">
<label for="name"/>
Expand Down

0 comments on commit 361b6f7

Please sign in to comment.