Squashed commit of the following: commit5adce1fd15Author: Marc Durepos <marc@bemade.org> Date: Thu Sep 4 12:33:00 2025 -0400 [MIG] 17.0..18.0 account_credit_hold Migrated module account_credit_hold from 17.0 to 18.0. Fixed views and models and wrote test cases to check functionality. commit91c52af6f4Author: Marc Durepos <marc@bemade.org> Date: Thu Sep 4 11:38:37 2025 -0400 Initial migration of account_credit_hold for testing in 18.0
19 lines
784 B
XML
19 lines
784 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="stock_picking_form_inherit" model="ir.ui.view">
|
|
<field name="name">account_credit_hold.stock_picking.form</field>
|
|
<field name="model">stock.picking</field>
|
|
<field name="inherit_id" ref="stock.view_picking_form" />
|
|
<field eval="8" name="priority" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='button_box']" position="before">
|
|
<field invisible="True" name="client_on_hold" />
|
|
<widget
|
|
bg_color="bg-danger"
|
|
invisible="client_on_hold == False"
|
|
name="web_ribbon"
|
|
title="Credit Hold"
|
|
/>
|
|
</xpath></field>
|
|
</record>
|
|
</odoo>
|