mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Additionally, improve tests to add lines by the wizard instead of manually (especially since manually is not an option in the UI).
38 lines
1.6 KiB
XML
38 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="view_rma_add_lines_form" model="ir.ui.view">
|
|
<field name="name">view.rma.add.lines.form</field>
|
|
<field name="model">rma.picking.make.lines</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<field name="line_ids">
|
|
<tree editable="top">
|
|
<field name="product_id" readonly="1"/>
|
|
<field name="qty_ordered" readonly="1"/>
|
|
<field name="qty_delivered" readonly="1"/>
|
|
<field name="product_uom_qty"/>
|
|
<field name="product_uom_id" readonly="1"/>
|
|
</tree>
|
|
</field>
|
|
<footer>
|
|
<button class="oe_highlight"
|
|
name="add_lines"
|
|
type="object"
|
|
string="Add" />
|
|
<button class="oe_link"
|
|
special="cancel"
|
|
string="Cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="action_rma_add_lines" model="ir.actions.act_window">
|
|
<field name="name">Add RMA Lines</field>
|
|
<field name="res_model">rma.picking.make.lines</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="view_rma_add_lines_form" />
|
|
<field name="target">new</field>
|
|
</record>
|
|
</odoo> |