<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <record id="account_move_line_view_customize_form" model="ir.ui.view"> <field name="name">account_move_line_view_customize_form</field> <field name="model">account.move</field> <field name="inherit_id" ref="account.view_move_form"/> <field name="arch" type="xml"> <xpath expr="//field[@name='partner_shipping_id']" position="after"> <field name="ismanualpost" invisible="1" /> </xpath> <xpath expr="//page[@name='aml_tab']/field[@name='line_ids']/tree/field[@name='account_id']" position="after"> <field name="ismanualpost_line" /> </xpath> <xpath expr="//page[@name='aml_tab']/field[@name='line_ids']" position="attributes"> <attribute name="context"> { 'default_move_type': context.get('default_move_type'), 'line_ids': line_ids, 'journal_id': journal_id, 'default_partner_id': commercial_partner_id, 'default_currency_id': currency_id or company_currency_id, 'kanban_view_ref': 'account.account_move_line_view_kanban_mobile', 'default_ismanualpost_line': True, } </attribute> </xpath> </field> </record> <record model="ir.actions.act_window" id="account.action_move_journal_line"> <field name="context">{'default_move_type': 'entry', 'search_default_posted':1, 'view_no_maturity': True, 'default_ismanualpost': True, 'default_ismanualpost_line': True}</field> </record> </data> </odoo>
标签:增改,default,move,设置,line,默认值,True,id From: https://www.cnblogs.com/pythonClub/p/17646484.html