flectra/addons/website_sale/views/payment_views.xml
2018-01-17 12:10:36 +05:30

45 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<record id="payment_transaction_view_form_inherit_website_sale" model="ir.ui.view">
<field name="name">payment.transaction.view.form.inherit.website_sale</field>
<field name="model">payment.transaction</field>
<field name="inherit_id" ref="payment.transaction_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='reference']" position="after">
<field name="sale_order_id"/>
</xpath>
</field>
</record>
<record id="payment_transaction_action_payments_to_capture" model="ir.actions.act_window">
<field name="name">Payments To Capture</field>
<field name="res_model">payment.transaction</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('state', '=', 'authorized'), ('sale_order_id.state', '!=', 'cancel')]</field>
<field name="context">{'create': False}</field>
<field name="view_id" ref="payment.transaction"/>
<field name="help">You don't have any payments to capture from the website.</field>
</record>
<record id="product_template_only_form_view_inherit" model="ir.ui.view">
<field name="name">product.template.product.form.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='attribute_line_ids']"
position="after">
<field name="product_variant_ids">
<tree editable='bottom' delete="false" create="false">
<field name = 'name' readonly="1"/>
<field name = 'attribute_value_ids'
widget="many2many_tags" readonly="1"/>
<field name = 'lst_price' readonly="1"/>
<field name = 'website_ids' widget="many2many_tags" />
</tree>
</field>
</xpath>
</field>
</record>
</flectra>