39 lines
1.6 KiB
XML
39 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- 向导 Form 视图 -->
|
|
<record id="putaway_rule_batch_update_wizard_form" model="ir.ui.view">
|
|
<field name="name">putaway.rule.batch.update.wizard.form</field>
|
|
<field name="model">putaway.rule.batch.update.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="批量修改存储到子位置">
|
|
<group>
|
|
<field name="location_out_id" options="{'no_create': True}"/>
|
|
</group>
|
|
<footer>
|
|
<button name="action_confirm" string="确认" type="object" class="btn-primary"/>
|
|
<button string="取消" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Server Action:在上架规则列表绑定批量操作 -->
|
|
<record id="action_putaway_rule_batch_update" model="ir.actions.server">
|
|
<field name="name">批量修改存储到子位置</field>
|
|
<field name="model_id" ref="stock.model_stock_putaway_rule"/>
|
|
<field name="binding_model_id" ref="stock.model_stock_putaway_rule"/>
|
|
<field name="binding_view_types">list</field>
|
|
<field name="state">code</field>
|
|
<field name="code">
|
|
action = {
|
|
'type': 'ir.actions.act_window',
|
|
'name': '批量修改存储到子位置',
|
|
'res_model': 'putaway.rule.batch.update.wizard',
|
|
'view_mode': 'form',
|
|
'target': 'new',
|
|
'context': {'active_ids': env.context.get('active_ids', [])},
|
|
}
|
|
</field>
|
|
</record>
|
|
</odoo>
|