Odoo BuildOdoo Build
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
  • Snippets

    • Account
    • Account Accountant
    • Account Asset
    • Account Batch Payment
    • Account Budget
    • Account Financial Report
    • Account Followup
    • Account Journal Items Report
    • Account Sale Timesheet Report
    • Agreement
    • Agreement Legal
    • Auth Api Key
    • Base
    • Base Install Request
    • Base Location
    • Business Requirement
    • Calendar
    • Certificate Planer
    • Contract
    • Crm
    • Crm Iap Lead Enrich
    • Delivery
    • Digest
    • Fleet
    • Forestry Timesheet
    • Gio Payroll Custom
    • Helpdesk
    • Hr
    • Hr Attendance
    • Hr Attendance Kanban
    • Hr Contract
    • Hr Expense
      • Hr Expense View Form
        • Hide Payment Mode
        • Set Group Tax Ids
        • Show Payment Mode
        • X Partner Id
    • Hr Holidays
    • Hr Holidays Delegations
    • Hr Payroll
    • Hr Recruitment
    • Hr Timesheet
    • Industry Fsm
    • Industry Fsm Sale
    • Ir Model
    • Ir Ui View
    • L10n Ch
    • L10n Ch Qr Isr Invoice Import
    • L10n Din5008
    • Mail
    • Mail Activity Board
    • Maintenance
    • Maintenance Plan
    • Mrp
    • Mrp Account
    • Mrp Workorder
    • Payment
    • Portal
    • Printnode Base
    • Product
    • Project
    • Project Enterprise
    • Purchase
    • Purchase Requisition
    • Purchase Requisition Send
    • Res Groups
    • Sale
    • Sale Blanket Order
    • Sale Management
    • Sale Margin
    • Sale Order Contact Person
    • Sale Order Line Date
    • Sale Order Picking Note
    • Sale Partner Incoterm
    • Sale Product Set
    • Sale Subscription
    • Stock
    • Stock Account
    • Stock Delivery Note
    • Survey
    • Timesheet Grid
    • Web
    • Website
    • Website Discount Voucher
    • Website Sale

Hr Expense

Hr Expense View Form

Hide Payment Mode

ID: mint_system.hr_expense.hr_expense_view_form.hide_payment_mode

<data inherit_id="hr_expense.hr_expense_view_form" priority="50">
    <xpath expr="//label[@for='payment_mode']" position="attributes">
        <attribute name="invisible">True</attribute>
    </xpath>
    <xpath expr="//div[@id='payment_mode']" position="attributes">
        <attribute name="invisible">True</attribute>
    </xpath>
</data>

Source: snippets/hr_expense.hr_expense_view_form.hide_payment_mode.xml

Set Group Tax Ids

ID: mint_system.hr_expense.hr_expense_view_form.set_group_tax_ids

<data inherit_id="hr_expense.hr_expense_view_form" priority="50">
    <xpath expr="//field[@name='tax_ids']" position="attributes">
        <attribute name="groups"/>
    </xpath>
</data>

Source: snippets/hr_expense.hr_expense_view_form.set_group_tax_ids.xml

Show Payment Mode

ID: mint_system.hr_expense.hr_expense_view_form.show_payment_mode

<data inherit_id="hr_expense.hr_expense_view_form" priority="50">
    <xpath expr="//label[@for='payment_mode']" position="attributes">
        <attribute name="attrs">{}</attribute>
    </xpath>
    <xpath expr="//div[@id='payment_mode']" position="attributes">
        <attribute name="attrs">{}</attribute>
    </xpath>
</data>

Source: snippets/hr_expense.hr_expense_view_form.show_payment_mode.xml

X Partner Id

ID: mint_system.hr_expense.hr_expense_view_form.x_partner_id

<data inherit_id="hr_expense.hr_expense_view_form" priority="50">
    <xpath expr="//field[@name='sale_order_id']" position="before">
        <field name="x_partner_id" attrs="{'invisible': [('can_be_reinvoiced', '=', False)], 'readonly': [('sheet_is_editable', '=', False)]}" options="{'no_open': True, 'no_create': True, 'no_edit': True}" domain="[('is_company', '=', True)]"/>
    </xpath>
    <xpath expr="//field[@name='sale_order_id']" position="attributes">
        <attribute name="domain">[('partner_id', '=', x_partner_id)]</attribute>
    </xpath>
</data>

Source: snippets/hr_expense.hr_expense_view_form.x_partner_id.xml

Edit this page
Last Updated:
Contributors: Kurt Gisler
Prev
Hr Contract
Next
Hr Holidays