mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
122 lines
5.2 KiB
XML
122 lines
5.2 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<odoo>
|
|
<record id="view_rma_add_stock_move_customer" model="ir.ui.view">
|
|
<field name="name">rma.add.stock.move.customer</field>
|
|
<field name="model">rma_add_stock_move</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Select Move">
|
|
<group>
|
|
<field name="partner_id"
|
|
domain="[('customer','=',True)]"
|
|
string="Customer"/>
|
|
</group>
|
|
<separator string="Select Stock Moves to add"/>
|
|
<field name="move_ids"
|
|
domain="[('picking_id.partner_id', '=', partner_id), ('location_dest_id.usage', '=', 'customer')]">
|
|
<tree>
|
|
<field name="product_id"/>
|
|
<field name="product_uom_qty"/>
|
|
<field name="product_uom" string="Unit of Measure" groups="uom.group_uom"/>
|
|
<field name="picking_id"/>
|
|
<field name="location_id" groups="stock.group_stock_multi_locations"/>
|
|
<field name="location_dest_id" groups="stock.group_stock_multi_locations"/>
|
|
<field name="create_date" groups="base.group_no_one"/>
|
|
<field name="date" string="Date" groups="base.group_no_one"/>
|
|
<field name="date_expected" string="Date Expected"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
<footer>
|
|
<button
|
|
string="Confirm"
|
|
name="add_lines" type="object"
|
|
class="oe_highlight"/>
|
|
or
|
|
<button name="action_cancel"
|
|
string="Cancel" class="oe_link" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_rma_add_stock_move_customer"
|
|
model="ir.actions.act_window">
|
|
<field name="name">Add from Stock Move</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">rma_add_stock_move</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
<field name="view_id" ref="view_rma_add_stock_move_customer"/>
|
|
<field name="groups_id"
|
|
eval="[(4, ref('rma.group_rma_customer_user'))]"/>
|
|
</record>
|
|
|
|
|
|
<record id="view_rma_add_stock_move_customer_form" model="ir.ui.view">
|
|
<field name="name">rma.order.form - stock.move wizard</field>
|
|
<field name="model">rma.order</field>
|
|
<field name="inherit_id" ref="rma.view_rma_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header" position="inside">
|
|
<button name="%(action_rma_add_stock_move_customer)d"
|
|
string="Add From Stock Move"
|
|
type="action"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_rma_add_stock_move_supplier" model="ir.ui.view">
|
|
<field name="name">rma.add.stock.move.supplier</field>
|
|
<field name="model">rma_add_stock_move</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Select Move">
|
|
<group>
|
|
<field name="partner_id"
|
|
domain="[('supplier','=',True)]"
|
|
string="Supplier"/>
|
|
</group>
|
|
<separator string="Select Stock Moves to add"/>
|
|
<field name="move_ids"
|
|
domain="[('picking_id.partner_id', '=', partner_id), ('location_id.usage', '=', 'supplier')]"/>
|
|
<footer>
|
|
<button
|
|
string="Confirm"
|
|
name="add_lines" type="object"
|
|
class="oe_highlight"/>
|
|
or
|
|
<button name="action_cancel"
|
|
string="Cancel" class="oe_link" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_rma_add_stock_move_supplier"
|
|
model="ir.actions.act_window">
|
|
<field name="name">Add from Stock Move</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">rma_add_stock_move</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
<field name="view_id" ref="view_rma_add_stock_move_supplier"/>
|
|
<field name="groups_id"
|
|
eval="[(4, ref('rma.group_rma_supplier_user'))]"/>
|
|
</record>
|
|
|
|
<record id="view_rma_add_stock_move_button_supplier_form"
|
|
model="ir.ui.view">
|
|
<field name="name">rma.order.supplier.form - stock.move wizard</field>
|
|
<field name="model">rma.order</field>
|
|
<field name="inherit_id" ref="rma.view_rma_supplier_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header" position="inside">
|
|
<button name="%(action_rma_add_stock_move_supplier)d"
|
|
string="Add From Stock Move"
|
|
type="action"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|