fix: Critical button styling and tree view translations
🚨 Critical Fixes: 1. **Fixed Missing Button Styling:** - button_approve → btn-primary + fa-check-circle (was oe_highlight) - open_convert_po_contract → btn-info + fa-file-contract (was oe_highlight) ⚠️ These buttons were showing with transparent background due to oe_highlight class 2. **Fixed Tree View Column Headers Translation:** - Purchase State → حالة الشراء - State → الحالة - Categories → الفئات - Branch → الفرع - Department → القسم - Employee → الموظف - Date → التاريخ - Request Number → رقم الطلب - Approve Order → موافقة الطلب - PO To Contract → تحويل إلى عقد ✅ Root Cause Analysis: - oe_highlight class doesn't provide background color in some Odoo themes - Missing Arabic translations for tree view column headers - These were the last remaining unstyled buttons 🎯 Impact: - All buttons now have proper background colors - Tree view fully translated to Arabic - Professional UI consistency achieved
This commit is contained in:
parent
7304d74111
commit
2beee82434
|
|
@ -3021,6 +3021,56 @@ msgstr "تم التسليم"
|
||||||
msgid "Create Asset Custody"
|
msgid "Create Asset Custody"
|
||||||
msgstr "إنشاء عهدة أصول"
|
msgstr "إنشاء عهدة أصول"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "Purchase State"
|
||||||
|
msgstr "حالة الشراء"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "State"
|
||||||
|
msgstr "الحالة"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "Categories"
|
||||||
|
msgstr "الفئات"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "Branch"
|
||||||
|
msgstr "الفرع"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "Department"
|
||||||
|
msgstr "القسم"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "Employee"
|
||||||
|
msgstr "الموظف"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "Date"
|
||||||
|
msgstr "التاريخ"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_request_tree
|
||||||
|
msgid "Request Number"
|
||||||
|
msgstr "رقم الطلب"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_requisition_custom_form_view
|
||||||
|
msgid "Approve Order"
|
||||||
|
msgstr "موافقة الطلب"
|
||||||
|
|
||||||
|
#. module: purchase_requisition_custom
|
||||||
|
#: model_terms:ir.ui.view,arch_db:purchase_requisition_custom.purchase_requisition_custom_form_view
|
||||||
|
msgid "PO To Contract"
|
||||||
|
msgstr "تحويل إلى عقد"
|
||||||
|
|
||||||
#. module: vendor_evaluation
|
#. module: vendor_evaluation
|
||||||
#: model_terms:ir.ui.view,arch_db:vendor_evaluation.vendor_evaluation_wizard_view
|
#: model_terms:ir.ui.view,arch_db:vendor_evaluation.vendor_evaluation_wizard_view
|
||||||
msgid "Evaluate"
|
msgid "Evaluate"
|
||||||
|
|
|
||||||
|
|
@ -210,12 +210,12 @@
|
||||||
<xpath expr="//button[@name='button_approve']" position="replace">
|
<xpath expr="//button[@name='button_approve']" position="replace">
|
||||||
<button name="button_approve" type="object"
|
<button name="button_approve" type="object"
|
||||||
attrs="{'invisible':['|',('requisition_id','!=',False),('state','not in',('to approve'))]}"
|
attrs="{'invisible':['|',('requisition_id','!=',False),('state','not in',('to approve'))]}"
|
||||||
string="Approve Order" class="oe_highlight" groups="purchase.group_purchase_manager"/>
|
string="Approve Order" class="btn-primary" groups="purchase.group_purchase_manager" icon="fa-check-circle"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//button[@name='button_draft']" position="after">
|
<xpath expr="//button[@name='button_draft']" position="after">
|
||||||
|
|
||||||
<button string='PO To Contract' name="open_convert_po_contract" type="object"
|
<button string='PO To Contract' name="open_convert_po_contract" type="object"
|
||||||
class="oe_highlight" groups="purchase.group_purchase_manager"
|
class="btn-info" groups="purchase.group_purchase_manager" icon="fa-file-contract"
|
||||||
attrs="{'invisible':[('state','in',('draft','wait','wait_for_send','sent','to approve','sign','waiting','purchase','cancel'))]}"/>
|
attrs="{'invisible':[('state','in',('draft','wait','wait_for_send','sent','to approve','sign','waiting','purchase','cancel'))]}"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//button[@name='button_draft']" position="attributes">
|
<xpath expr="//button[@name='button_draft']" position="attributes">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue