[FIX] sale,purchase,stock,account: partner form warning alignment

closes odoo/odoo#105511

X-original-commit: 6aa86c92c7ee7d46c54250960c2b34753e13b8be
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
niyasraphy
2022-11-10 00:27:59 +01:00
parent 23c8ee0532
commit 1709cba800
7 changed files with 39 additions and 22 deletions
+5
View File
@@ -14194,6 +14194,11 @@ msgstr ""
msgid "Type Name"
msgstr ""
#. module: account
#: model_terms:ir.ui.view,arch_db:account.partner_view_buttons
msgid "Type a message..."
msgstr ""
#. module: account
#: model:ir.model.fields,help:account.field_account_bank_statement_line__qr_code_method
#: model:ir.model.fields,help:account.field_account_move__qr_code_method
+6 -6
View File
@@ -158,14 +158,14 @@
</div>
<page name="internal_notes" position="inside">
<t groups="account.group_account_invoice,account.group_account_readonly">
<group colspan="2" col="2" groups="account.group_warning_account">
<separator string="Warning on the Invoice" colspan="4"/>
<field name="invoice_warn" nolabel="1" />
<field name="invoice_warn_msg" colspan="3" nolabel="1"
<group groups="account.group_account_invoice,account.group_account_readonly">
<group groups="account.group_warning_account" col="2">
<separator string="Warning on the Invoice" colspan="2"/>
<field name="invoice_warn" nolabel="1" colspan="2" required="1"/>
<field name="invoice_warn_msg" placeholder="Type a message..." colspan="2" nolabel="1"
attrs="{'required':[('invoice_warn','!=', False), ('invoice_warn','!=','no-message')], 'invisible':[('invoice_warn','in',(False,'no-message'))]}"/>
</group>
</t>
</group>
</page>
</field>
</record>
+5
View File
@@ -2766,6 +2766,11 @@ msgstr ""
msgid "True if the reminder email is confirmed by the vendor."
msgstr ""
#. module: purchase
#: model_terms:ir.ui.view,arch_db:purchase.res_partner_view_purchase_buttons
msgid "Type a message..."
msgstr ""
#. module: purchase
#: model:ir.model.fields,help:purchase.field_purchase_order__activity_exception_decoration
msgid "Type of the exception activity on record."
+6 -6
View File
@@ -96,14 +96,14 @@
</button>
</div>
<page name="internal_notes" position="inside">
<t groups="purchase.group_purchase_user">
<group colspan="2" col="2" groups="purchase.group_warning_purchase">
<separator string="Warning on the Purchase Order" colspan="4"/>
<field name="purchase_warn" nolabel="1" />
<field name="purchase_warn_msg" colspan="3" nolabel="1"
<group groups="purchase.group_purchase_user">
<group groups="purchase.group_warning_purchase" col="2">
<separator string="Warning on the Purchase Order" colspan="2"/>
<field name="purchase_warn" nolabel="1" colspan="2" required="1"/>
<field name="purchase_warn_msg" colspan="2" placeholder="Type a message..." nolabel="1"
attrs="{'required':[('purchase_warn','!=', False), ('purchase_warn','!=','no-message')], 'invisible':[('purchase_warn','in',(False,'no-message'))]}"/>
</group>
</t>
</group>
</page>
</field>
</record>
+5 -5
View File
@@ -51,12 +51,12 @@
<field string="Sales" name="sale_order_count" widget="statinfo"/>
</button>
</div>
<xpath expr="//page[@name='internal_notes']//field[@name='comment']" position="before">
<xpath expr="//page[@name='internal_notes']//field[@name='comment']" position="after">
<group groups="sale.group_warning_sale,sales_team.group_sale_salesman">
<group>
<separator string="Warning on the Sales Order" />
<field name="sale_warn" string="Warning" />
<field name="sale_warn_msg" string="Message" placeholder="Type a message..."
<group col="2">
<separator string="Warning on the Sales Order" colspan="2"/>
<field name="sale_warn" nolabel="1" colspan="2" required="1"/>
<field name="sale_warn_msg" nolabel="1" string="Message" placeholder="Type a message..." colspan="2"
attrs="{'required':[('sale_warn','!=', False), ('sale_warn','!=','no-message')], 'invisible':[('sale_warn','in',(False,'no-message'))]}"/>
</group>
</group>
+5
View File
@@ -8295,6 +8295,11 @@ msgstr ""
msgid "Type"
msgstr ""
#. module: stock
#: model_terms:ir.ui.view,arch_db:stock.view_partner_stock_warnings_form
msgid "Type a message..."
msgstr ""
#. module: stock
#: model:ir.model.fields,field_description:stock.field_stock_move__picking_code
#: model:ir.model.fields,field_description:stock.field_stock_move_line__picking_code
+7 -5
View File
@@ -27,11 +27,13 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<page name="internal_notes" position="inside">
<group colspan="2" col="2" groups="stock.group_warning_stock">
<separator string="Warning on the Picking" colspan="4"/>
<field name="picking_warn" nolabel="1" />
<field name="picking_warn_msg" colspan="3" nolabel="1"
attrs="{'required':[('picking_warn','!=', False), ('picking_warn','!=','no-message')], 'invisible':[('picking_warn','in',(False,'no-message'))]}"/>
<group groups="stock.group_warning_stock">
<group col="2">
<separator string="Warning on the Picking" colspan="2"/>
<field name="picking_warn" nolabel="1" colspan="2" required="1"/>
<field name="picking_warn_msg" placeholder="Type a message..." colspan="2" nolabel="1"
attrs="{'required':[('picking_warn','!=', False), ('picking_warn','!=','no-message')], 'invisible':[('picking_warn','in',(False,'no-message'))]}"/>
</group>
</group>
</page>
</field>