|
| 1 | +<?xml version="1.0"?> |
| 2 | +<openerp> |
| 3 | + <data> |
| 4 | + <record model="ir.ui.view" id="view_vendor_receipt_form_voucher_payment"> |
| 5 | + <field name="name">account.voucher.voucher.customer.payment.form</field> |
| 6 | + <field name="model">account.voucher</field> |
| 7 | + <field name="inherit_id" ref="l10n_th_account_deduction.view_vendor_receipt_form_voucher_payment"/> |
| 8 | + <field name="arch" type="xml"> |
| 9 | + <xpath expr="/form/sheet/notebook/page[@name='deductions']/field/tree/field[@name='analytic_id']" position="attributes"> |
| 10 | + <attribute name="invisible">True</attribute> |
| 11 | + </xpath> |
| 12 | + <xpath expr="/form/sheet/notebook/page[@name='deductions']/field/tree/field[@name='account_id']" position="before"> |
| 13 | + <field name="require_chartfield" invisible="1"/> |
| 14 | + <field name="activity_group_id"/> |
| 15 | + <field name="activity_id" domain="[('activity_group_ids', 'in', [activity_group_id or 0])]"/> |
| 16 | + </xpath> |
| 17 | + <xpath expr="/form/sheet/notebook/page[@name='deductions']/field/tree/field[@name='account_id']" position="after"> |
| 18 | + <field |
| 19 | + name="project_id" |
| 20 | + invisible="0" |
| 21 | + attrs="{'required': [('section_id','=',False),('invest_asset_id','=',False), |
| 22 | + ('invest_construction_phase_id','=',False),('personnel_costcenter_id','=',False), |
| 23 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 24 | + <field |
| 25 | + name="section_id" |
| 26 | + invisible="0" |
| 27 | + attrs="{'required': [('project_id','=',False),('invest_asset_id','=',False), |
| 28 | + ('invest_construction_phase_id','=',False),('personnel_costcenter_id','=',False), |
| 29 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 30 | + <field |
| 31 | + name="invest_asset_id" |
| 32 | + invisible="0" |
| 33 | + attrs="{'required': [('section_id','=',False),('project_id','=',False), |
| 34 | + ('invest_construction_phase_id','=',False),('personnel_costcenter_id','=',False), |
| 35 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 36 | + <field |
| 37 | + name="invest_construction_phase_id" |
| 38 | + invisible="0" |
| 39 | + attrs="{'required': [('section_id','=',False),('invest_asset_id','=',False), |
| 40 | + ('project_id','=',False),('personnel_costcenter_id','=',False), |
| 41 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 42 | + <field |
| 43 | + name="personnel_costcenter_id" |
| 44 | + invisible="1" |
| 45 | + attrs="{'required': [('section_id','=',False),('invest_asset_id','=',False), |
| 46 | + ('invest_construction_phase_id','=',False),('project_id','=',False), |
| 47 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 48 | + <field name="fund_id"/> |
| 49 | + <field name="cost_control_id"/> |
| 50 | + </xpath> |
| 51 | + </field> |
| 52 | + </record> |
| 53 | + <record model="ir.ui.view" id="view_vendor_supplier_form_voucher_payment"> |
| 54 | + <field name="name">account.voucher.voucher.supplier.payment.form</field> |
| 55 | + <field name="model">account.voucher</field> |
| 56 | + <field name="inherit_id" ref="l10n_th_account_deduction.view_vendor_supplier_form_voucher_payment"/> |
| 57 | + <field name="arch" type="xml"> |
| 58 | + <xpath expr="/form/sheet/notebook/page[@name='deductions']/field/tree/field[@name='account_id']" position="before"> |
| 59 | + <field name="require_chartfield" invisible="1"/> |
| 60 | + <field name="activity_group_id"/> |
| 61 | + <field name="activity_id" domain="[('activity_group_ids', 'in', [activity_group_id or 0])]"/> |
| 62 | + </xpath> |
| 63 | + <xpath expr="/form/sheet/notebook/page[@name='deductions']/field/tree/field[@name='account_id']" position="after"> |
| 64 | + <field |
| 65 | + name="project_id" |
| 66 | + invisible="0" |
| 67 | + attrs="{'required': [('section_id','=',False),('invest_asset_id','=',False), |
| 68 | + ('invest_construction_phase_id','=',False),('personnel_costcenter_id','=',False), |
| 69 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 70 | + <field |
| 71 | + name="section_id" |
| 72 | + invisible="0" |
| 73 | + attrs="{'required': [('project_id','=',False),('invest_asset_id','=',False), |
| 74 | + ('invest_construction_phase_id','=',False),('personnel_costcenter_id','=',False), |
| 75 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 76 | + <field |
| 77 | + name="invest_asset_id" |
| 78 | + invisible="0" |
| 79 | + attrs="{'required': [('section_id','=',False),('project_id','=',False), |
| 80 | + ('invest_construction_phase_id','=',False),('personnel_costcenter_id','=',False), |
| 81 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 82 | + <field |
| 83 | + name="invest_construction_phase_id" |
| 84 | + invisible="0" |
| 85 | + attrs="{'required': [('section_id','=',False),('invest_asset_id','=',False), |
| 86 | + ('project_id','=',False),('personnel_costcenter_id','=',False), |
| 87 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 88 | + <field |
| 89 | + name="personnel_costcenter_id" |
| 90 | + invisible="1" |
| 91 | + attrs="{'required': [('section_id','=',False),('invest_asset_id','=',False), |
| 92 | + ('invest_construction_phase_id','=',False),('project_id','=',False), |
| 93 | + ('require_chartfield', '=', True)], 'readonly': [('require_chartfield', '=', False)]}"/> |
| 94 | + <field name="fund_id"/> |
| 95 | + <field name="cost_control_id"/> |
| 96 | + </xpath> |
| 97 | + </field> |
| 98 | + </record> |
| 99 | + </data> |
| 100 | +</openerp> |
0 commit comments