33 lines
2.1 KiB
XML
33 lines
2.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<odoo>
|
||
|
|
||
|
<record id="view_account_spread_invoice_line_link_wizard" model="ir.ui.view">
|
||
|
<field name="model">account.spread.invoice.line.link.wizard</field>
|
||
|
<field name="arch" type="xml">
|
||
|
<form>
|
||
|
<group name="main_info">
|
||
|
<group>
|
||
|
<field name="company_id" readonly="1" groups="base.group_multi_company"/>
|
||
|
<field name="invoice_type" readonly="1"/>
|
||
|
<field name="spread_type" invisible="1"/>
|
||
|
<field name="invoice_id" readonly="1"/>
|
||
|
<field name="invoice_line_id" readonly="1"/>
|
||
|
</group>
|
||
|
<group>
|
||
|
<field name="spread_action_type" widget="radio"/>
|
||
|
<field name="spread_id" attrs="{'invisible': [('spread_action_type', '!=', 'link')],'required': [('spread_action_type', '=', 'link')]}" domain="[('invoice_type', '=', invoice_type)]" options="{'no_create': True}"/>
|
||
|
<field name="template_id" attrs="{'invisible': [('spread_action_type', '!=', 'template')],'required': [('spread_action_type', '=', 'template')]}" domain="[('spread_type', '=', spread_type)]" options="{'no_create': True}"/>
|
||
|
<field name="spread_account_id" attrs="{'invisible': [('spread_action_type', '!=', 'new')],'required': [('spread_action_type', '=', 'new')]}" domain="[('company_id', '=', company_id), ('deprecated', '=', False)]" options="{'no_create': True}"/>
|
||
|
<field name="spread_journal_id" attrs="{'invisible': [('spread_action_type', '!=', 'new')],'required': [('spread_action_type', '=', 'new')]}" domain="[('company_id', '=', company_id)]" options="{'no_create': True}"/>
|
||
|
</group>
|
||
|
</group>
|
||
|
<footer>
|
||
|
<button string="Confirm" type="object" name="confirm" class="btn-primary"/>
|
||
|
<button string="Cancel" class="oe_link" special="cancel" />
|
||
|
</footer>
|
||
|
</form>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
</odoo>
|