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.
 
 
 
 

48 lines
2.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="cash_invoice_out_form" model="ir.ui.view">
<field name="name">cash_invoice_out_form</field>
<field name="model">cash.invoice.out</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Collect payment from customer invoice or supplier refund">
<group>
<field name="company_id" invisible="1"/>
<field name="journal_ids" invisible="1"/>
<field name="journal_count" invisible="1"/>
<field name="journal_id"
class="oe_inline"
domain="[('id', 'in', journal_ids[0][2])]"
options="{'no_create': True, 'no_open':True}"
attrs="{'invisible':[('journal_count', '&lt;', 2)]}"
/>
<field name="invoice_id"
class="oe_inline"
domain="[('company_id', '=', company_id),
('state', '=', 'open'),
('currency_id', '=', currency_id),
('type', 'in', ['out_invoice', 'in_refund'])]"
options="{'no_create': True, 'no_open':True}"
/>
<label for="amount"/>
<div>
<field name="amount" class="oe_inline"/><field name="currency_id" class="oe_inline" groups="base.group_multi_currency"/>
</div>
</group>
<footer>
<button name="run" string="Register" type="object" class="btn-primary"/>
<button special="cancel" string="Cancel" class="btn-default"/>
</footer>
</form>
</field>
</record>
<act_window
id="action_cash_invoice_out_from_statement"
name="Collect Payment from Invoice"
res_model="cash.invoice.out"
src_model="account.bank.statement"
view_mode="form"
target="new"
key2="client_action_multi"
/>
</odoo>