Skip to content

Commit

Permalink
[UPD] ssi_hr_expense_account_cash_advance
Browse files Browse the repository at this point in the history
* Adjust to detail input mechanism's change
  • Loading branch information
andhit-r committed Mar 30, 2024
1 parent 1f0c008 commit b71f681
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class HrCashAdvanceSettlementLineInherit(models.Model):

require_expense_account = fields.Boolean(
string="Require Expense Account",
readonly=False,
readonly=True,
)
expense_account_id = fields.Many2one(
comodel_name="employee_expense_account",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
<field name="require_expense_account" force_save="1" />
<field name="expense_account_id" force_save="1" />
</xpath>
<xpath
expr="//field[@name='line_ids']/form/notebook/page[1]"
position="before"
>
<page name="expense_acc" string="Expense Account">
<group name="expense_acc_1" colspan="4" col="2">
<field
name="require_expense_account"
force_save="1"
string="Required"
/>
<field name="expense_account_id" force_save="1" />
</group>
</page>
</xpath>
</data>
</field>
</record>
Expand Down

0 comments on commit b71f681

Please sign in to comment.