Skip to content

Commit

Permalink
Merge PR #89 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by andhit-r
  • Loading branch information
ssi-bot committed Sep 3, 2024
2 parents 9d496e7 + 6332e2e commit afd2457
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ssi_hr_reimbursement/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ssi_transaction_open_mixin",
"ssi_transaction_done_mixin",
"ssi_transaction_cancel_mixin",
"ssi_employee_document_mixin",
"ssi_employee_bank_account_mixin",
"ssi_product_line_account_mixin",
"ssi_company_currency_mixin",
"ssi_transaction_pricelist_mixin",
Expand Down
2 changes: 1 addition & 1 deletion ssi_hr_reimbursement/models/hr_reimbursement.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HrReimbursement(models.Model):
"mixin.transaction_cancel",
"mixin.transaction_pricelist",
"mixin.many2one_configurator",
"mixin.employee_document",
"mixin.employee_bank_account",
"mixin.company_currency",
]
_description = "Employee Reimbursement"
Expand Down
16 changes: 12 additions & 4 deletions ssi_hr_reimbursement/views/hr_reimbursement_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
</xpath>
<xpath expr="//field[@name='user_id']" position="after">
<field name="employee_id" />
<field name="employee_bank_account_id" string="Bank Account" />
<field name="department_id" optional="hide" />
<field
name="manager_id"
Expand Down Expand Up @@ -112,10 +113,7 @@
decoration-bf="1"
optional="show"
/>
<field
name="last_payment_date"
optional="show"
/>
<field name="last_payment_date" optional="show" />
</xpath>
</data>
</field>
Expand Down Expand Up @@ -178,6 +176,16 @@
widget="many2many_tags"
invisible="1"
/>
<field
name="allowed_bank_account_ids"
widget="many2many_tags"
invisible="1"
/>
<field
name="employee_bank_account_id"
string="Bank Account"
domain="[('id', 'in', allowed_bank_account_ids)]"
/>
<field
name="pricelist_id"
domain="[('id', 'in', allowed_pricelist_ids)]"
Expand Down

0 comments on commit afd2457

Please sign in to comment.