mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
* Standard procedure. * Transfer view groups to nodes. * Adjusted upstream changed field names. * Converted onchanges to computed writable fields. * Replace `Form` by direct dictionary vals in record creation, as they don't handle now properly multiple existing fields in the view, and computed writable improve the compatibility on new values. * Replace domain returned on onchange by static domain in field. * Change maintainer. TT44213
25 lines
945 B
XML
25 lines
945 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!-- Copyright 2020 Tecnativa - Ernesto Tejeda
|
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
|
<odoo>
|
|
<record id="view_picking_form" model="ir.ui.view">
|
|
<field name="name">stock.picking.form</field>
|
|
<field name="model">stock.picking</field>
|
|
<field name="inherit_id" ref="stock.view_picking_form" />
|
|
<field name="arch" type="xml">
|
|
<div name="button_box">
|
|
<button
|
|
name="action_view_rma"
|
|
type="object"
|
|
class="oe_stat_button"
|
|
icon="fa-reply"
|
|
attrs="{'invisible': [('rma_count', '=', 0)]}"
|
|
groups="rma.rma_group_user_own"
|
|
>
|
|
<field name="rma_count" widget="statinfo" string="RMA" />
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</odoo>
|