You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
						
							|  | <?xml version="1.0"?>
<odoo>
    <data>
        <record id="voucher_template_wizard_form" model="ir.ui.view">
            <field name="name">voucher.template.wizard.form</field>
            <field name="model">voucher.template.wizard</field>
            <field name="arch" type="xml">
                  <form string="会计凭证模板">
                      <group>
                          <group>
                              <field name='name' invisible='is_change_old_template'/>
                              <field name='voucher_id' invisible="1"/>
                              <field name="old_template_id" invisible='is_change_old_template'
                              option="{'no_create':True}"/>
                          </group>
                           <group>
                               <field name="is_change_old_template"/>
                           </group>
                      </group>
                      <footer>
                        <button name='save_as_template' string="保存" type="object" class="oe_highlight"/>
                      </footer>
                  </form>
            </field>
        </record>
        <record id="voucher_template_wizard_action" model="ir.actions.act_window">
            <field name="name">生成凭证模板</field>
            <field name="res_model">voucher.template.wizard</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>
        <record id="create_tempalte_voucher_form" model="ir.ui.view">
            <field name="name">create.tempalte.voucher.form</field>
            <field name="model">voucher</field>
            <field name='inherit_id' ref='voucher_form'/>
            <field name="arch" type="xml">
                <button name="voucher_can_be_draft" position="after">
                    <button name='%(voucher_template_wizard_action)d' string="另存为模板" type="action" class="oe_highlight"/>
                </button>
                <field name="name" position="after">
                    <field name="template_id" option="{'no_create':True}" class="oe_edit_only" invisible="state!='draft'"/>
                </field>
            </field>
        </record>
         <record id="voucher_template_list" model="ir.ui.view">
             <field name="name">voucher.template.list</field>
            <field name="model">voucher.template</field>
            <field name="arch" type="xml">
                <list>
                    <field name="name"/>
                </list>
            </field>
         </record>
         <record id="voucher_template_from" model="ir.ui.view">
             <field name="name">voucher.template.from</field>
            <field name="model">voucher.template</field>
            <field name="arch" type="xml">
                <form>
                    <group>
                        <group>
                            <field name="name"/>
                        </group>
                    </group>
                    <field name="line_ids" >
                        <list editable="bottom">
                            <field name="name"  optional="show"/>
                            <field name="account_id"  optional="show"/>
                            <field name="auxiliary_id" optional="show"/>
                            <field name="partner_id"  optional="show"/>
                            <field name="goods_id"  optional="show"/>
                        </list>
                    </field>
                </form>
            </field>
         </record>
        <record id="voucher_template_action" model="ir.actions.act_window">
            <field name="name">凭证模板</field>
            <field name="res_model">voucher.template</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_mode">list,form</field>
        </record>
        <menuitem id='voucher_template_menu' action='voucher_template_action' parent='finance_setting_menu' sequence='90'/>
    </data>
</odoo>
 |