Delete odex25_purchase/governmental_purchase directory
This commit is contained in:
parent
4b5dd54190
commit
bc8052804e
|
|
@ -1,4 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import models
|
||||
from . import wizard
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
# -*- coding: utf-8 -*-# -*- coding: utf-8 -*-
|
||||
{
|
||||
'name': 'Purchase Customizations For Governmental projects',
|
||||
'version': '1.1',
|
||||
'summary': 'Customize Purchase ',
|
||||
'sequence': -1,
|
||||
'author': "Expert Co Ltd",
|
||||
'website': "http://www.ex.com",
|
||||
'category': 'Odex25-Purchase/Odex25-Purchase',
|
||||
'description': """
|
||||
""",
|
||||
'data': [
|
||||
'security/security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'data/cron_data.xml',
|
||||
'views/purchase_request_views.xml',
|
||||
'views/purchase_order_views.xml',
|
||||
# 'views/res_setting.xml',
|
||||
'views/budget_confirmation_view.xml',
|
||||
'wizard/convert_to_contract.xml',
|
||||
],
|
||||
'depends': ['purchase_requisition_custom'],
|
||||
'installable': True,
|
||||
'application': False,
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record model="ir.cron" id="purchase_order_auto_notify_cron_job">
|
||||
<field name="name">PO Contract Auto Notification</field>
|
||||
<field name="model_id" ref="purchase.model_purchase_order"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">model.cron_po_auto_notify()</field>
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field eval="False" name="doall"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo >
|
||||
<data noupdate="1">
|
||||
<record id="auto_po_notify" model="mail.template">
|
||||
<field name="name">PO Auto Notify</field>
|
||||
<field name="model_id" ref="purchase.model_purchase_order"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
<field name="email_to">${object.responsible_id.partner_id.email}</field>
|
||||
<field name="subject">Po Auto Notify</field>
|
||||
<field name="body_html"><![CDATA[
|
||||
<p>Dear ${object.responsible_id.name},</p>
|
||||
<p> ${object.contract_name} Will Be Expired<br>
|
||||
IN Purchase order: ${object.name}<br>
|
||||
Vendor: ${object.partner_id.name}<br>
|
||||
End Date: ${object.end_date}<br>
|
||||
</p>
|
||||
]]></field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -1,816 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * governmental_purchase
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-09-28 10:14+0000\n"
|
||||
"PO-Revision-Date: 2023-09-28 10:14+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__strategic_objective__e_d_p
|
||||
msgid "3.1.1 Ease of doing business"
|
||||
msgstr "3.1.1 تسهيل ممارسة الأعمال"
|
||||
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__strategic_objective__a_f_d_i
|
||||
msgid "3.1.6 Attracting foreign direct investment"
|
||||
msgstr "3.1.6 جذب الاستثمارات الأجنبية المباشرة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__strategic_objective__d_r_s
|
||||
msgid "3.3.5 Development of the retail sector"
|
||||
msgstr "3.3.5 تطوير قطاع التجزئة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__strategic_objective__i_c_e
|
||||
msgid "4.3.2 Increasing SMEs contribution to the economy"
|
||||
msgstr "4.3.2 زيادة مساهمة الشركات الصغيرة والمتوسطة في الاقتصاد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_requisition_custom_setting
|
||||
msgid "Activate Budget check in purchase"
|
||||
msgstr "تفعيل التحقق من الميزانية في الشراء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__activities
|
||||
msgid "Activities"
|
||||
msgstr "الأنشطة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__activity_description
|
||||
msgid "Activity Description"
|
||||
msgstr "وصف النشاط"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__cso_agreed
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__cso_agreed__agreed
|
||||
msgid "Agreed"
|
||||
msgstr "موافق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Aligned with the scope of the draft national strategy"
|
||||
msgstr "التأكد مع نطاق الاستراتيجية "
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__alternative_offer_allowed
|
||||
msgid "Alternative Offer Allowed ?"
|
||||
msgstr "يسمح بالعرض البديل؟"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__applying_address
|
||||
msgid "Applying Address"
|
||||
msgstr "عنوان تقديم الضمان"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Approve"
|
||||
msgstr "إعتماد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_order_governmental_form_view
|
||||
msgid "Are you sure you want to process ?"
|
||||
msgstr "هل أنت متأكد بهذا الاجراء؟"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__attachment_scope_project
|
||||
msgid "Attachment Scope Project"
|
||||
msgstr "نطاق عمل المشروع "
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__auto_notification
|
||||
msgid "Auto Notification"
|
||||
msgstr "اشعار آلي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_order__billed_amount
|
||||
msgid "Billed Amount"
|
||||
msgstr "المبلغ المفوتر"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__body_technical
|
||||
msgid "Body Technical"
|
||||
msgstr "اسم الجهة الفنية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_requisition_custom_setting
|
||||
msgid "Booklet"
|
||||
msgstr "الكراسة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__ceo_purchase
|
||||
msgid "Manager OF Purchasing And Contract"
|
||||
msgstr "المدير التنفيذي للمشتريات والعقود"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "Can't Confirm Request With No Item!"
|
||||
msgstr ""
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__cancel
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.convert_to_contract_po_wizard
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Cancel"
|
||||
msgstr "إلغاء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__classify_des
|
||||
msgid "Classify"
|
||||
msgstr "توضيح"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model,name:governmental_purchase.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "المؤسسات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__company_id
|
||||
msgid "Company"
|
||||
msgstr "المؤسسة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__cso_compatible
|
||||
msgid "Compatible"
|
||||
msgstr "موائم للنطاق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__cso_compatible__compatible
|
||||
msgid "Compatible with scope"
|
||||
msgstr "غير موائم للنطاق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__competion_description
|
||||
msgid "Competion Description"
|
||||
msgstr "وصف المنافسة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model,name:governmental_purchase.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "ضبط الاعدادات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_order_governmental_form_view
|
||||
msgid "Confirm Order"
|
||||
msgstr "تأكيد الأمر"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.convert_to_contract_po_wizard
|
||||
msgid "Contract Information"
|
||||
msgstr "معلومات العقد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__contract_name
|
||||
msgid "Contract Name"
|
||||
msgstr "اسم العقد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model,name:governmental_purchase.model_convert_po_contract_wizard
|
||||
msgid "Convert Contract wizard"
|
||||
msgstr "معالج تحويل العقد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.convert_to_contract_po_wizard
|
||||
msgid "Convert To Contract"
|
||||
msgstr "تحويل إلى عقد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "Create Date: "
|
||||
msgstr "تاريخ الإنشاء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.actions.act_window,help:governmental_purchase.purchase_type_contract_action
|
||||
msgid "Create New a Purchase Contract"
|
||||
msgstr "إنشاء عقد مشتريات جديد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Create Purchase Order"
|
||||
msgstr "إنشاء أمر الشراء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Create Requisition"
|
||||
msgstr "انشاء طلب شراء (عروض اسعار)"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "أنشئ بواسطة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__create_date
|
||||
msgid "Created on"
|
||||
msgstr "أنشئ في"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__date_time
|
||||
msgid "Date and Time"
|
||||
msgstr "التاريخ والوقت"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__convert_po_contract_wizard__period_type__day
|
||||
msgid "Day(s)"
|
||||
msgstr "يوم(أيام)"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Delivery Info"
|
||||
msgstr "معلومات التسليم"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__Delivery_place
|
||||
msgid "Delivery_place"
|
||||
msgstr "مكان التسليم"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Deparments Use"
|
||||
msgstr "الإدارة الطالبة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Deparments Use Base info"
|
||||
msgstr "المعلومات الأساسية للطلب"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__display_name
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_order__display_name
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__display_name
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_company__display_name
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_config_settings__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "الاسم المعروض"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__is_delivered
|
||||
msgid "Do samples need to delivered"
|
||||
msgstr "هل يتطلب تسليم عينات؟"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__document_cost
|
||||
msgid "Document cost"
|
||||
msgstr "قيمة الوثائق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__done
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Done"
|
||||
msgstr "تم"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__draft
|
||||
msgid "Draft"
|
||||
msgstr "مبدئي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__budget_approve
|
||||
msgid "Budget Approved"
|
||||
msgstr "إعتماد الإرتباط المبدئي"
|
||||
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__end_date
|
||||
msgid "End Date"
|
||||
msgstr "تاريخ النهاية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "First Budget Check"
|
||||
msgstr "ارسال للارتباط المبدئي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__delivery_floor
|
||||
msgid "Floor"
|
||||
msgstr "الطابق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "For technical management use"
|
||||
msgstr "الادراة الفنية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__id
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_order__id
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__id
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_company__id
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_config_settings__id
|
||||
msgid "ID"
|
||||
msgstr "المُعرف"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__waiting
|
||||
msgid "Procurement Department"
|
||||
msgstr "إدارة المشتريات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__cso_compatible__incompatible
|
||||
msgid "Incompatible with scope "
|
||||
msgstr "غير موائم للنطاق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__initial_guarantee_percentage
|
||||
msgid "Initial Guarantee Percentage (%)"
|
||||
msgstr "نسبة الضمان الابتدائي (%)"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__initiative_end_date
|
||||
msgid "Initiative End Date"
|
||||
msgstr "تاريخ انتهاء المبادرة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__initiative_name
|
||||
msgid "Initiative Name"
|
||||
msgstr "اسم المبادرة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__Delivery_place__inside
|
||||
msgid "Inside Saudi Arabia"
|
||||
msgstr "داخل المملكة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__is_competition_divisible
|
||||
msgid "Is Competition Divisible?"
|
||||
msgstr "هل المنافسة قابلة للتجزئة؟"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard____last_update
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_order____last_update
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request____last_update
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_company____last_update
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_config_settings____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "آخر تعديل في"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "آخر تحديث بواسطة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "آخر تحديث في"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__list_documentaries
|
||||
msgid "List documentaries"
|
||||
msgstr "قائمة الوثائق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__convert_po_contract_wizard__period_type__month
|
||||
msgid "Month(s)"
|
||||
msgstr "شهر (شهور) "
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__is_delivered__no
|
||||
msgid "NO"
|
||||
msgstr "لا"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__alternative_offer_allowed__no
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__is_competition_divisible__no
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__pre_qualification__no
|
||||
msgid "No"
|
||||
msgstr "لا"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__cso_agreed__not_agreed
|
||||
msgid "Not Agreed"
|
||||
msgstr "غير موافق"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__notify_before
|
||||
msgid "Notify Before"
|
||||
msgstr "إشعار قبل"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.convert_to_contract_po_wizard
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_order_governmental_form_view
|
||||
msgid "Notify Before End"
|
||||
msgstr "إشعار قبل الانتهاء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/wizard/convert_to_contract.py:0
|
||||
#, python-format
|
||||
msgid "Notify Before End Should Be Greater Than Zero"
|
||||
msgstr ""
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__budget_scope__other
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__strategic_objective__other
|
||||
msgid "Other"
|
||||
msgstr "اخرى"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__other_strategic_objective
|
||||
msgid "Other Strategic objective"
|
||||
msgstr "هدف استراتيجي آخر"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__other_details
|
||||
msgid "Other details"
|
||||
msgstr "تفاصيل أخرى"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__Delivery_place__out
|
||||
msgid "Out of Saudi Arabia"
|
||||
msgstr "خارج المملكة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.actions.server,name:governmental_purchase.purchase_order_auto_notify_cron_job_ir_actions_server
|
||||
#: model:ir.cron,cron_name:governmental_purchase.purchase_order_auto_notify_cron_job
|
||||
#: model:ir.cron,name:governmental_purchase.purchase_order_auto_notify_cron_job
|
||||
msgid "PO Contract Auto Notification"
|
||||
msgstr "اشعار آلي للعقد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_order_governmental_form_view
|
||||
msgid "PO To Contract"
|
||||
msgstr "تحويل امر الشراء الى عقد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__period_type
|
||||
msgid "Period Type"
|
||||
msgstr "نوع الفترة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "Please Select department for employee"
|
||||
msgstr "الرجاء إختيار قسم للموظف"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__pre_qualification
|
||||
msgid "Pre-Qualification Linked ?"
|
||||
msgstr "مربوط بتأهيل مسبق؟"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Procurement use"
|
||||
msgstr "استخدام إدارة المشتريات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__program_action
|
||||
msgid "Program of action"
|
||||
msgstr "برنامج العمل"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__project_duration
|
||||
msgid "Project Duration"
|
||||
msgstr "مدة تنفيذ المشروع"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Project Location"
|
||||
msgstr "موقع المشروع"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__project_name
|
||||
msgid "Project Name"
|
||||
msgstr "اسم المشروع"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__purchase_id
|
||||
msgid "Purchase"
|
||||
msgstr "الشراء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_requisition_custom_setting
|
||||
msgid "Purchase Booklet"
|
||||
msgstr "الكراسة الالكترونية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.actions.act_window,name:governmental_purchase.purchase_type_contract_action
|
||||
#: model:ir.ui.menu,name:governmental_purchase.purchase_type_contract_menu
|
||||
msgid "Purchase Contracts"
|
||||
msgstr "عقود الشراء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model,name:governmental_purchase.model_purchase_order
|
||||
msgid "Purchase Order"
|
||||
msgstr "أوامر الشراء المؤكدة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model,name:governmental_purchase.model_purchase_request
|
||||
msgid "Purchase Request"
|
||||
msgstr "طلبات الشراء"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Request Approve"
|
||||
msgstr "اعتماد طلبات شراء الإدارات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Request Confirmation By Direct Managr"
|
||||
msgstr "صلاحية طلبات الشراء لمدراء الادارات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__purpose_of_tender
|
||||
msgid "Purpose of Tender"
|
||||
msgstr "الغرض من المشروع"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_order_governmental_form_view
|
||||
msgid "Recommend"
|
||||
msgstr "العرض الموصي به"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__refuse
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Refuse"
|
||||
msgstr "رفض"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_order__remaining_amount
|
||||
msgid "Remaining Amount"
|
||||
msgstr "المتبقي للفوترة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Requesting ِAdministration"
|
||||
msgstr "لإستخدام الإدارة الطالبة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Reset To Draft"
|
||||
msgstr "ارجاع الى مبــدئي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__responsible_id
|
||||
msgid "Responsible"
|
||||
msgstr "المسؤول"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__samples_delivery_address
|
||||
msgid "Samples Address"
|
||||
msgstr "عنوان تسليم العينات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.convert_to_contract_po_wizard
|
||||
msgid "Save"
|
||||
msgstr "حفظ"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Send"
|
||||
msgstr "إرسال"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__send_budget
|
||||
msgid "Send to Budget Confirmation"
|
||||
msgstr "إرسال للإرتباط المبدئي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__is_direct_manager
|
||||
msgid "Sent Technical Department"
|
||||
msgstr "إرسال للإدارة الفنية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_convert_po_contract_wizard__start_date
|
||||
msgid "Start Date"
|
||||
msgstr "تاريخ البداية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/wizard/convert_to_contract.py:0
|
||||
#, python-format
|
||||
msgid "Start Date Should Be Less Than End Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__state
|
||||
msgid "State"
|
||||
msgstr "الحالة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__strategic_objective
|
||||
msgid "Strategic Objective"
|
||||
msgstr "الهدف الاستراتيجي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Strategy Management Use"
|
||||
msgstr "لإستخدام الاستراتجية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__sub_project
|
||||
msgid "Sub Project"
|
||||
msgstr "اسم المشروع الفرعي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "Submit"
|
||||
msgstr "إعتماد"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__direct_manager
|
||||
msgid "Technical Department"
|
||||
msgstr "الإدارة الفنية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__tender_name
|
||||
msgid "Tender Name"
|
||||
msgstr "اسم المشروع"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__delivery_unit
|
||||
msgid "Unit"
|
||||
msgstr "الغرفة/الادارة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__attachment_booklet_uploade
|
||||
msgid "Upload Booklet"
|
||||
msgstr "رفع ملف الكراسة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,help:governmental_purchase.field_res_company__attachment_booklet_exp
|
||||
#: model:ir.model.fields,help:governmental_purchase.field_res_config_settings__attachment_booklet_exp
|
||||
msgid "Upload Booklet file"
|
||||
msgstr "إرفاق الكراسة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__vision_program_name
|
||||
msgid "Vision Program Name"
|
||||
msgstr "اسم برنامج الرؤية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__wait_budget
|
||||
msgid "Wait Budget"
|
||||
msgstr "في انتظار إدارة الميزانية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__convert_po_contract_wizard__period_type__week
|
||||
msgid "Week(s)"
|
||||
msgstr "أسبوع (أسابيع)"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__work_location_city
|
||||
msgid "Work Location City"
|
||||
msgstr "المدينة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__work_location_district
|
||||
msgid "Work Location District"
|
||||
msgstr "الحي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__work_location_GPS
|
||||
msgid "Work Location GPS"
|
||||
msgstr "احداثيات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__work_location_state
|
||||
msgid "Work Location State"
|
||||
msgstr "المحافظة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__is_delivered__yes
|
||||
msgid "YES"
|
||||
msgstr "نعم"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__convert_po_contract_wizard__period_type__year
|
||||
msgid "Year(s)"
|
||||
msgstr "سنة (سنوات)"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__alternative_offer_allowed__yes
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__is_competition_divisible__yes
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__pre_qualification__yes
|
||||
msgid "Yes"
|
||||
msgstr "نعم"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_purchase_request__delivery_building
|
||||
msgid "building"
|
||||
msgstr "المبنى"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__dm
|
||||
msgid "Management Manager"
|
||||
msgstr "مدير الإدارة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.purchase_request_form
|
||||
msgid "download Booklet"
|
||||
msgstr "تنزيل الكراسة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_company__attachment_booklet_exp
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_res_config_settings__attachment_booklet_exp
|
||||
msgid "file"
|
||||
msgstr "الملف"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "need your approve."
|
||||
msgstr ""
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "need your confirmation."
|
||||
msgstr ""
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__budget_scope__initiative
|
||||
msgid "Initiative"
|
||||
msgstr "المبادرة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__budget_scope__ksagreement_budget
|
||||
msgid "Korean Side Agreement Budget"
|
||||
msgstr "ميزانية اتفاقية الجانب الكوري"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__budget_scope__strategy
|
||||
msgid "National Strategy Budget"
|
||||
msgstr "ميزانية الاستراتجية الوطنية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__budget_scope__operational_budget
|
||||
msgid "Operational Budget"
|
||||
msgstr "الميزانية التشغلية للهيئة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__budget_scope__revenue_budget
|
||||
msgid "Revenue Budget"
|
||||
msgstr "ميزانية الايرادات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_budget_confirmation__budget_scope
|
||||
msgid "Budget Scope"
|
||||
msgstr "نطاق الميزانية"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__permission__allowed
|
||||
msgid "Item Allows"
|
||||
msgstr "البند يسمح"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__budget_confirmation__permission__not_allowed
|
||||
msgid "Item Not Allows"
|
||||
msgstr "البند لايسمح"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields,field_description:governmental_purchase.field_budget_confirmation__permission
|
||||
msgid "Permission"
|
||||
msgstr "السماح"
|
||||
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model_terms:ir.ui.view,arch_db:governmental_purchase.inherit_view_budget_confirmation_form
|
||||
msgid "Budget Management"
|
||||
msgstr "انتظار الارسال"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:res.groups,name:governmental_purchase.executive_director_of_purchase_and_contract
|
||||
msgid "Executive Director of Purchase and Contract"
|
||||
msgstr "المدير التنفيذي للخدمات المشتركة"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__general_supervisor
|
||||
#: model:res.groups,name:governmental_purchase.group_ceo_of_corporate_resources
|
||||
msgid "Chief Executive Officer"
|
||||
msgstr "الرئيس"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.model.fields.selection,name:governmental_purchase.selection__purchase_request__state__executive_vice
|
||||
#: model:res.groups,name:governmental_purchase.group_executive_vice_approve
|
||||
msgid "Executive Vice President"
|
||||
msgstr "نائب الرئيس التنفيذي"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: model:ir.ui.menu,name:governmental_purchase.purchase_request_root_menu
|
||||
msgid "Employee Requests"
|
||||
msgstr "طلبات الإدارات"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "Total Amount MUST be greater than 0 !!!"
|
||||
msgstr "المبلغ الإجمالي يجب أن يكون أكبر من الصفر"
|
||||
|
||||
#. module: governmental_purchase
|
||||
#: code:addons/governmental_purchase/models/purchase_request.py:0
|
||||
#, python-format
|
||||
msgid "Please select an analytic account"
|
||||
msgstr "الرجاء إختيار حساب تحليلي"
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import purchase_order
|
||||
from . import purchase_request
|
||||
from . import res_company
|
||||
from . import budget_confirmation
|
||||
from . import account_budget
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class CrossoveredBudgetLines(models.Model):
|
||||
_inherit = "crossovered.budget.lines"
|
||||
# Added new
|
||||
reserve = fields.Float(string='Reserve Amount', tracking=True)
|
||||
initial_reserve = fields.Float(string='Initial Reserve Amount', tracking=True)
|
||||
confirm = fields.Float(string='Confirm Amount')
|
||||
year_end = fields.Boolean(compute="get_year_end")
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
from odoo import fields, api ,models, _
|
||||
|
||||
|
||||
class BudgetConfirmationCustom(models.Model):
|
||||
_inherit = 'budget.confirmation'
|
||||
|
||||
budget_scope = fields.Selection([
|
||||
('operational_budget', 'Operational Budget'),
|
||||
('initiative', 'Initiative'),
|
||||
('KSAgreement_budget', 'Korean Side Agreement Budget'),
|
||||
('revenue_budget', 'Revenue Budget'),
|
||||
('strategy','National Strategy Budget'),
|
||||
('other','Other')
|
||||
], string="Budget Scope")
|
||||
|
||||
permission = fields.Selection([
|
||||
('allowed', 'Item Allows'),
|
||||
('not_allowed', 'Item Not Allows'),
|
||||
], string="Permission")
|
||||
|
||||
|
||||
|
||||
class BudgetConfirmationLineCustom(models.Model):
|
||||
_inherit = 'budget.confirmation.line'
|
||||
analytic_account_id = fields.Many2one(
|
||||
comodel_name='account.analytic.account',
|
||||
string='Cost Center',
|
||||
required=False
|
||||
)
|
||||
|
||||
@api.onchange('analytic_account_id')
|
||||
def _onchange_analytic_account_id(self):
|
||||
rec_remain = self.analytic_account_id.crossovered_budget_line.\
|
||||
filtered(lambda x : x.date_from <= self.date and x.date_to >= self.date)
|
||||
if rec_remain :
|
||||
self.remain = rec_remain[0].remain
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo import api, fields, models, _
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
|
||||
class PurchaseOrderCustom(models.Model):
|
||||
_inherit = "purchase.order"
|
||||
|
||||
|
||||
billed_amount = fields.Float(store=True, compute='_compute_amount')
|
||||
remaining_amount = fields.Float(store=True, compute='_compute_amount')
|
||||
|
||||
@api.depends('invoice_ids','invoice_count')
|
||||
def _compute_amount(self):
|
||||
for order in self:
|
||||
billed_amount = 0.0
|
||||
for invoice in order.invoice_ids:
|
||||
billed_amount += invoice.amount_total
|
||||
|
||||
currency = order.currency_id or order.partner_id.property_purchase_currency_id or \
|
||||
self.env.company.currency_id
|
||||
order.update({
|
||||
'billed_amount': currency.round(billed_amount),
|
||||
'remaining_amount': order.amount_total - billed_amount,
|
||||
})
|
||||
|
||||
|
||||
def action_recommend(self):
|
||||
for order in self:
|
||||
order.recommendation_order = True
|
||||
|
||||
def button_confirm(self):
|
||||
# res = super(PurchaseOrderCustom, self).button_confirm()
|
||||
for order in self:
|
||||
if order.state not in ['draft', 'sent', 'sign','wait']:
|
||||
continue
|
||||
order._add_supplier_to_product()
|
||||
# Deal with double validation process
|
||||
if order._approval_allowed():
|
||||
order.button_approve()
|
||||
else:
|
||||
order.write({'state': 'to approve'})
|
||||
if order.partner_id not in order.message_partner_ids:
|
||||
order.message_subscribe([order.partner_id.id])
|
||||
return True
|
||||
|
|
@ -1,148 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from datetime import datetime
|
||||
from odoo import models, fields, api, _
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo.tools.misc import get_lang
|
||||
|
||||
|
||||
class PurchaseRequest(models.Model):
|
||||
_inherit = 'purchase.request'
|
||||
|
||||
state = fields.Selection(
|
||||
[('draft', 'Draft'),
|
||||
('dm', 'Management Manager'),
|
||||
('direct_manager', 'Technical Department'),
|
||||
('send_budget', 'Send to Budget Confirmation'),
|
||||
('wait_budget', 'Wait Budget'),
|
||||
('ceo_purchase', 'Manager OF Purchasing And Contract'),
|
||||
('executive_vice', 'Executive Vice President'),
|
||||
('general_supervisor', 'Chief Executive Officer'),
|
||||
('waiting', 'Procurement Department'),
|
||||
('done', 'Done'),
|
||||
('refuse', 'Refuse')], default="draft", tracking=True)
|
||||
project_name = fields.Char('Project Name', copy=False)
|
||||
sub_project = fields.Char('Sub Project', copy=False)
|
||||
project_duration = fields.Char('Project Duration', copy=False)
|
||||
strategic_objective = fields.Selection([
|
||||
('e_d_p', '3.1.1 Ease of doing business'),
|
||||
('a_f_d_i', '3.1.6 Attracting foreign direct investment'),
|
||||
('d_r_s', '3.3.5 Development of the retail sector'),
|
||||
('i_c_e', '4.3.2 Increasing SMEs contribution to the economy'),
|
||||
('other', 'Other')
|
||||
], string='Strategic Objective', copy=False)
|
||||
|
||||
other_strategic_objective = fields.Char('Other Strategic objective', copy=False)
|
||||
vision_program_name = fields.Char('Vision Program Name', copy=False)
|
||||
initiative_name = fields.Char('Initiative Name', copy=False)
|
||||
initiative_end_date = fields.Date('Initiative End Date', copy=False)
|
||||
is_direct_manager = fields.Boolean('Sent Technical Department', copy=False)
|
||||
cso_agreed = fields.Selection([
|
||||
('agreed', 'Agreed'),
|
||||
('not_agreed', 'Not Agreed'),
|
||||
], string='Agreed', copy=False)
|
||||
cso_compatible = fields.Selection([
|
||||
('compatible', 'Compatible with scope '),
|
||||
('Incompatible', 'Incompatible with scope '),
|
||||
], string='Compatible', copy=False)
|
||||
company_id = fields.Many2one(string='Company', comodel_name='res.company',
|
||||
default=lambda self: self.env.user.company_id)
|
||||
attachment_booklet_uploade = fields.Binary(string="Upload Booklet", copy=False)
|
||||
document_cost = fields.Char('Document cost', copy=False)
|
||||
body_technical = fields.Char('Body Technical', copy=False)
|
||||
pre_qualification = fields.Selection([
|
||||
('yes', 'Yes'),
|
||||
('no', 'No')
|
||||
], string='Pre-Qualification Linked ?', copy=False)
|
||||
initial_guarantee_percentage = fields.Float(
|
||||
'Initial Guarantee Percentage (%)', copy=False)
|
||||
applying_address = fields.Char('Applying Address', copy=False)
|
||||
alternative_offer_allowed = fields.Selection([
|
||||
('yes', 'Yes'),
|
||||
('no', 'No')
|
||||
], string='Alternative Offer Allowed ?', copy=False)
|
||||
is_competition_divisible = fields.Selection([
|
||||
('yes', 'Yes'),
|
||||
('no', 'No')
|
||||
], string='Is Competition Divisible?', copy=False)
|
||||
classify_des = fields.Text('Classify', copy=False)
|
||||
|
||||
tender_name = fields.Char('Tender Name', copy=False)
|
||||
purpose_of_tender = fields.Char('Purpose of Tender ', copy=False)
|
||||
is_delivered = fields.Selection([
|
||||
('no', 'NO'),
|
||||
('yes', 'YES')
|
||||
], string='Do samples need to delivered', copy=False)
|
||||
|
||||
samples_delivery_address = fields.Char('Samples Address', copy=False)
|
||||
delivery_building = fields.Char('building', copy=False)
|
||||
delivery_floor = fields.Char('Floor', copy=False)
|
||||
delivery_unit = fields.Char('Unit', copy=False)
|
||||
date_time = fields.Datetime('Date and Time', copy=False)
|
||||
Delivery_place = fields.Selection([
|
||||
('out', 'Out of Saudi Arabia'),
|
||||
('inside', 'Inside Saudi Arabia')
|
||||
], string='Delivery_place', copy=False)
|
||||
other_details = fields.Text('Other details', copy=False)
|
||||
# activities = fields.Many2many('activity.type', string='Activities', copy=False)
|
||||
activity_description = fields.Text('Activity Description', copy=False)
|
||||
competion_description = fields.Text('Competion Description', copy=False)
|
||||
list_documentaries = fields.Text('List documentaries', copy=False)
|
||||
attachment_scope_project = fields.Binary(string="Attachment Scope Project", copy=False)
|
||||
program_action = fields.Char('Program of action', copy=False)
|
||||
work_location_district = fields.Char('Work Location District', copy=False)
|
||||
work_location_city = fields.Char('Work Location City', copy=False)
|
||||
work_location_state = fields.Char('Work Location State', copy=False)
|
||||
work_location_GPS = fields.Char('Work Location GPS', copy=False)
|
||||
cancel_reason = fields.Char(string='Reason')
|
||||
user_id = fields.Many2one(comodel_name='res.users',string='User id')
|
||||
|
||||
|
||||
def action_dm_confirm(self):
|
||||
if len(self.line_ids) == 0:
|
||||
raise ValidationError(_("Can't Confirm Request With No Item!"))
|
||||
if not self.department_id:
|
||||
raise ValidationError(_("Please Select department for employee"))
|
||||
for rec in self.line_ids:
|
||||
if rec.request_id.is_analytic:
|
||||
if not rec.account_id:
|
||||
raise ValidationError(_("Please select an analytic account"))
|
||||
if rec.sum_total <= 0:
|
||||
raise ValidationError(_("Total Amount MUST be greater than 0 !!!"))
|
||||
|
||||
self.write({'state': 'dm'})
|
||||
|
||||
|
||||
def approve_department(self):
|
||||
self.write({'state': 'send_budget'})
|
||||
|
||||
def action_pc_confirm(self):
|
||||
amount = 0
|
||||
for rec in self.line_ids:
|
||||
amount = amount + rec.sum_total
|
||||
if amount >= self.company_id.direct_purchase:
|
||||
self.write({'state': 'executive_vice'})
|
||||
else:
|
||||
self.write({'state': 'waiting'})
|
||||
|
||||
def approve_executive_vice(self):
|
||||
amount = 0
|
||||
for rec in self.line_ids:
|
||||
amount = amount + rec.sum_total
|
||||
if amount >= self.company_id.chief_executive_officer:
|
||||
self.write({'state': 'general_supervisor'})
|
||||
else:
|
||||
self.write({'state': 'waiting'})
|
||||
|
||||
def action_general_supervisor_approve(self):
|
||||
for request in self:
|
||||
request.write({'state': 'waiting'})
|
||||
|
||||
def action_refuse(self):
|
||||
self.write({'state': 'refuse'})
|
||||
|
||||
def download_url(self):
|
||||
return {
|
||||
"type": "ir.actions.act_url",
|
||||
"url": '/web/content/res.company/%s/attachment_booklet_exp/الكراسة الالكترونية الموحدة.docx' % self.company_id.id,
|
||||
"target": "new",
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models, fields, api, _
|
||||
|
||||
|
||||
class PurchaseRequisition(models.Model):
|
||||
_inherit = 'purchase.requisition'
|
||||
|
||||
agreement_name = fields.Char()
|
||||
agreement_number = fields.Char()
|
||||
agreement_date = fields.Date()
|
||||
# oveeride purchase_cost field to set default value
|
||||
purchase_cost = fields.Selection([('department', 'Department'), ('default', 'Default Cost Center'),('product_line', 'Product Line'), ('project', 'Project')],default='department',string='Purchase Cost')
|
||||
# end
|
||||
city = fields.Char()
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResSetting(models.TransientModel):
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
attachment_booklet_exp = fields.Binary(string='file', readonly=False, related="company_id.attachment_booklet_exp",
|
||||
attachment=True, help='Upload Booklet file')
|
||||
|
||||
|
||||
class Company(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
attachment_booklet_exp = fields.Binary(
|
||||
string='file', readonly=False, attachment=True, help='Upload Booklet file')
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_crossovered_budget_group_department_approve,crossovered.budget,odex25_account_budget.model_crossovered_budget,purchase_requisition_custom.group_department_approve,1,0,0,0
|
||||
access_account_budget_post_group_department_approve,model_account_budget_post,odex25_account_budget.model_account_budget_post,purchase_requisition_custom.group_department_approve,1,0,0,0
|
||||
access_budget_confirmation_group_department_approve,budget_confirmation,account_budget_custom.model_budget_confirmation,purchase_requisition_custom.group_department_approve,1,1,1,0
|
||||
access_budget_confirmation_line_group_department_approve,budget_confirmation_line,account_budget_custom.model_budget_confirmation_line,purchase_requisition_custom.group_department_approve,1,1,1,0
|
||||
|
||||
access_crossovered_budget_group_purchase_user,crossovered.budget.group_purchase_user,odex25_account_budget.model_crossovered_budget,purchase.group_purchase_user,1,0,0,0
|
||||
access_account_budget_post_group_purchase_user,model_account_budget_post.group_purchase_user,odex25_account_budget.model_account_budget_post,purchase.group_purchase_user,1,0,0,0
|
||||
access_budget_confirmation_group_purchase_user,budget_confirmation.group_purchase_user,account_budget_custom.model_budget_confirmation,purchase.group_purchase_user,1,1,1,0
|
||||
access_budget_confirmation_line_group_purchase_user,budget_confirmation_line.group_purchase_user,account_budget_custom.model_budget_confirmation_line,purchase.group_purchase_user,1,1,1,0
|
||||
|
||||
group_user_purchase_requisition_type,Requisition Type,purchase_requisition.model_purchase_requisition_type,base.group_user,1,1,0,0
|
||||
|
|
|
@ -1,123 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="executive_director_of_purchase_and_contract" model="res.groups">
|
||||
<field name="name">Executive Director of Purchase and Contract</field>
|
||||
<field name="category_id" ref="purchase_requisition_custom.module_category_purchase_request"/>
|
||||
<field name="implied_ids" eval="[(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="group_ceo_of_corporate_resources" model="res.groups">
|
||||
<field name="name">Chief Executive Officer</field>
|
||||
<field name="category_id" ref="purchase_requisition_custom.module_category_purchase_request"/>
|
||||
<field name="implied_ids" eval="[(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="group_executive_vice_approve" model="res.groups">
|
||||
<field name="name">Executive Vice President</field>
|
||||
<field name="category_id" ref="purchase_requisition_custom.module_category_purchase_request"/>
|
||||
<field name="implied_ids" eval="[(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_budget_custom.group_budget_user" model="res.groups">
|
||||
<field name="implied_ids" eval="[(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_budget_custom.group_department_manager_budget" model="res.groups">
|
||||
<field name="implied_ids" eval="[(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
<record id="purchase.group_purchase_user" model="res.groups">
|
||||
<field name="name">Purchasing Specialist</field>
|
||||
<field name="implied_ids"
|
||||
eval="[
|
||||
(4, ref('purchase_requisition_custom.group_confirm_purchase_requisition')),
|
||||
(4, ref('purchase_requisition_custom.group_quotation_purchase_requisition')),
|
||||
(4, ref('purchase_requisition_custom.group_sign_purchase_order')),
|
||||
(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
<field name="menu_access"
|
||||
eval="[(4,ref('purchase.menu_purchase_root')),
|
||||
(4,ref('purchase_requisition.menu_purchase_requisition_pro_mgt')),
|
||||
(4,ref('purchase.menu_procurement_management'))]"/>
|
||||
</record>
|
||||
|
||||
<!-- Record Rules -->
|
||||
|
||||
<record id="executive_director_of_purchase_and_contract_record_rule" model="ir.rule">
|
||||
<field name="name">Executive Director of Purchase and Contract Rule</field>
|
||||
<field name="model_id" ref="purchase_requisition_custom.model_purchase_request"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">[(1, '=', 1)]</field>
|
||||
<field name="groups" eval="[(4, ref('governmental_purchase.executive_director_of_purchase_and_contract'))]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_unlink" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="group_ceo_of_corporate_resources_record_rule" model="ir.rule">
|
||||
<field name="name">CEO of Corporate Resources Rule</field>
|
||||
<field name="model_id" ref="purchase_requisition_custom.model_purchase_request"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">[(1, '=', 1)]</field>
|
||||
<field name="groups" eval="[(4, ref('governmental_purchase.group_ceo_of_corporate_resources'))]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_unlink" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="group_executive_vice_approve_record_rule" model="ir.rule">
|
||||
<field name="name">Executive Vice President of Corporate Resources Rule</field>
|
||||
<field name="model_id" ref="purchase_requisition_custom.model_purchase_request"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">[(1, '=', 1)]</field>
|
||||
<field name="groups" eval="[(4, ref('governmental_purchase.executive_director_of_purchase_and_contract'))]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_unlink" eval="False"/>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="group_budget_user_record_rule" model="ir.rule">
|
||||
<field name="name">Budget User Rule</field>
|
||||
<field name="model_id" ref="purchase_requisition_custom.model_purchase_request"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">[(1, '=', 1)]</field>
|
||||
<field name="groups" eval="[(4, ref('account_budget_custom.group_budget_user'))]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_unlink" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="group_department_manager_budget_record_rule" model="ir.rule">
|
||||
<field name="name">Budget department Rule</field>
|
||||
<field name="model_id" ref="purchase_requisition_custom.model_purchase_request"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">[(1, '=', 1)]</field>
|
||||
<field name="groups" eval="[(4, ref('account_budget_custom.group_department_manager_budget'))]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_unlink" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="group_manager_budget_record_rule" model="ir.rule">
|
||||
<field name="name">Manager Budget Manager</field>
|
||||
<field name="model_id" ref="purchase_requisition_custom.model_purchase_request"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">[(1, '=', 1)]</field>
|
||||
<field name="groups" eval="[(4, ref('account_budget_custom.group_manager_budget'))]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_unlink" eval="False"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
</odoo>
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="inherit_view_budget_confirmation_form" model="ir.ui.view">
|
||||
<field name="name">budget.confirmation.form</field>
|
||||
<field name="model">budget.confirmation</field>
|
||||
<field name="inherit_id" ref="account_budget_custom.view_budget_confirmation_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[last()]" position="after">
|
||||
<page string="Budget Management">
|
||||
<group>
|
||||
<field name="budget_scope" widget="radio" options="{'horizontal': true}" attrs="{'required':[('state','=','bdgt_dep_mngr')],'readonly':[('state' , '!=' , 'bdgt_dep_mngr')]}"/>
|
||||
<field name="permission" widget="radio" options="{'horizontal': true}" attrs="{'required':[('state','=','bdgt_dep_mngr')],'readonly':[('state' , '!=' , 'bdgt_dep_mngr')]}"/>
|
||||
<field name="request_id" readonly="1" attrs="{'invisible':[('request_id' , '=' , False)]}"/>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -1,121 +0,0 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
<record id="purchase_order_governmental_form_view" model="ir.ui.view">
|
||||
<field name="name">purchase.order.governmental.form.custom</field>
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
||||
<field name="priority" eval="200"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='action_rfq_send']" position="after">
|
||||
<button string="PO To Contract" states="sign" name="open_convert_po_contract" type="object"
|
||||
class="oe_highlight"/>
|
||||
<button type="object" name="action_recommend"
|
||||
confirm="Are you sure you want to process ?"
|
||||
attrs="{'invisible':['|',
|
||||
('recommendation_order','=', True),('purchase_commitee', '=', False)]}" string="Recommend"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='type']" position="after">
|
||||
<!-- <field name="type"/> -->
|
||||
<field name="contract_name"
|
||||
attrs="{'invisible':[('type','!=', 'contract')],'required':[('type','=', 'contract'),]}"/>
|
||||
<field name="responsible_id"
|
||||
attrs="{'invisible':[('type','!=', 'contract')],'required':[('type','=', 'contract'),]}"/>
|
||||
<field name="start_date"
|
||||
attrs="{'invisible':[('type','!=', 'contract')],'required':[('type','=', 'contract'),]}"/>
|
||||
<field name="end_date"
|
||||
attrs="{'invisible':[('type','!=', 'contract')],'required':[('type','=', 'contract'),]}"/>
|
||||
|
||||
<field name="auto_notification" attrs="{'invisible':[('type','!=', 'contract')]}"/>
|
||||
<field name="notify_before" string="Notify Before End"
|
||||
attrs="{'invisible':['|',('type','!=', 'contract'), ('auto_notification','=', False)],
|
||||
'required':[('auto_notification','=', True),]}"/>
|
||||
|
||||
<field name="period_type"
|
||||
attrs="{'invisible':['|',('type','!=', 'contract'), ('auto_notification','=', False)],
|
||||
'required':[('auto_notification','=', True),]}"/>
|
||||
<field name="cron_end_date" invisible="1"/>
|
||||
</xpath>
|
||||
<!-- states="wait,sign,sent"-->
|
||||
<xpath expr="//button[@name='button_confirm']" position="replace">
|
||||
<button name="button_confirm" type="object"
|
||||
string="Confirm Order"
|
||||
attrs="{'invisible': [('state', 'in', ('wait', 'sent')), ('is_purchase_budget', '=', True)]}"
|
||||
class="oe_highlight" id="bid_confirm"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//button[@name='button_confirm']" position="attributes">
|
||||
<attribute name="attrs">
|
||||
{'invisible':[('state', 'in', ('wait', 'sent')),
|
||||
('is_purchase_budget', '=', True)]}
|
||||
</attribute>
|
||||
</xpath>
|
||||
|
||||
|
||||
|
||||
<!-- show analytic account -->
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='account_analytic_id']" position="replace">
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='department_name']" position="after">
|
||||
<field name="account_analytic_id" optional="show" context="{'default_partner_id':parent.partner_id}"
|
||||
groups="analytic.group_analytic_accounting"
|
||||
domain="['|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"/>
|
||||
</xpath>
|
||||
<!-- end -->
|
||||
<xpath expr="//group[@class='oe_subtotal_footer oe_right']" position="after">
|
||||
<group class="oe_right" style="float:right !important;">
|
||||
<field name="billed_amount"/>
|
||||
<field name="remaining_amount"/>
|
||||
</group>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- purchase.orders only for Purchase Contracts action window -->
|
||||
<record id="purchase_type_contract_tree" model="ir.ui.view">
|
||||
<field name="name">Purchase Contracts List</field>
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="contract_name"/>
|
||||
<field name="name"/>
|
||||
<field name="date_order"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="date_planned"/>
|
||||
<field name="origin"/>
|
||||
<field name="amount_untaxed"/>
|
||||
<field name="amount_total"/>
|
||||
<field name="state"/>
|
||||
<field name="invoice_status"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="purchase_type_contract_action" model="ir.actions.act_window">
|
||||
<field name="name">Purchase Contracts</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">purchase.order</field>
|
||||
<field name="view_mode">tree,kanban,form,pivot,graph,calendar</field>
|
||||
<field name="domain">[('type' , '=' , 'contract'), ('state' , '=' , 'purchase')]</field>
|
||||
<field name="context">{
|
||||
'default_type': 'contract',
|
||||
'create': False,
|
||||
'edit': False,
|
||||
'delete': False,
|
||||
'duplicate': False,
|
||||
'tree_view_ref': 'purchase_requisition_custom.purchase_type_contract_tree',
|
||||
}
|
||||
</field>
|
||||
<field name="view_ids" eval="[(5, 0, 0),
|
||||
(0, 0, {'view_mode': 'tree', 'view_id': ref('purchase_type_contract_tree')}),
|
||||
]"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Create New a Purchase Contract
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="purchase_type_contract_menu" name="Purchase Contracts"
|
||||
parent="purchase.menu_procurement_management" action="purchase_type_contract_action" sequence="7"/>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -1,201 +0,0 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
<record id="purchase_request_form" model="ir.ui.view">
|
||||
<field name="name">purchase.request.view.form</field>
|
||||
<field name="model">purchase.request</field>
|
||||
<field name="inherit_id" ref="purchase_requisition_custom.purchase_request_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//header" position="replace">
|
||||
<header>
|
||||
<button name="action_dm_confirm" groups="purchase_requisition_custom.create_purchase_request"
|
||||
type="object" string="Send" states="draft" class="oe_highlight"/>
|
||||
|
||||
<button name="action_confirm" groups="purchase_requisition_custom.group_direct_manger" type="object"
|
||||
string="Submit" states="dm" class="oe_highlight"/>
|
||||
<button name="%(purchase_requisition_custom.purchase_request_cancel_wizard_action)d" string="Refuse"
|
||||
states="dm" type="action" groups="purchase_requisition_custom.group_direct_manger"/>
|
||||
|
||||
<button name="approve_department" type="object" string="Approve"
|
||||
groups="purchase_requisition_custom.group_department_approve" states="direct_manager"
|
||||
class="oe_highlight"/>
|
||||
<button name="%(purchase_requisition_custom.purchase_request_cancel_wizard_action)d" string="Refuse"
|
||||
states="direct_manager" type="action"
|
||||
groups="purchase_requisition_custom.group_department_approve"/>
|
||||
|
||||
<!-- <button type="object" name="action_budget" string="First Budget Check" class="oe_highlight"
|
||||
states="send_budget" groups="purchase_requisition_custom.group_department_approve"/> -->
|
||||
|
||||
|
||||
<button name="action_pc_confirm"
|
||||
groups="governmental_purchase.executive_director_of_purchase_and_contract" type="object"
|
||||
string="Approve" states="ceo_purchase" class="oe_highlight"/>
|
||||
<button name="%(purchase_requisition_custom.purchase_request_cancel_wizard_action)d" string="Refuse"
|
||||
states="ceo_purchase" type="action"
|
||||
groups="governmental_purchase.executive_director_of_purchase_and_contract"/>
|
||||
|
||||
<button name="approve_executive_vice"
|
||||
groups="governmental_purchase.group_executive_vice_approve" type="object"
|
||||
string="Approve" states="executive_vice" class="oe_highlight"/>
|
||||
<button name="%(purchase_requisition_custom.purchase_request_cancel_wizard_action)d" string="Refuse"
|
||||
states="executive_vice" type="action"
|
||||
groups="governmental_purchase.group_executive_vice_approve"/>
|
||||
|
||||
<button type="object" name="action_general_supervisor_approve" class="oe_highlight"
|
||||
groups="governmental_purchase.group_ceo_of_corporate_resources" string="Approve"
|
||||
attrs="{'invisible':[('state', '!=', 'general_supervisor')]}"/>
|
||||
<button name="%(purchase_requisition_custom.purchase_request_cancel_wizard_action)d" string="Refuse"
|
||||
states="general_supervisor" groups="governmental_purchase.group_ceo_of_corporate_resources"
|
||||
type="action"/>
|
||||
<button name="create_requisition"
|
||||
groups="purchase.group_purchase_user,purchase.group_purchase_manager" type="object"
|
||||
string="Create Requisition" class="oe_highlight" attrs="{'invisible' : ['|',('purchase_create' , '=' , True),
|
||||
('state' , 'not in' , ['waiting'])]}"/>
|
||||
<button name="create_purchase_order2"
|
||||
groups="purchase.group_purchase_user,purchase.group_purchase_manager" type="object"
|
||||
string="Create Purchase Order" class="oe_highlight" attrs="{'invisible' : ['|',('purchase_create' , '=' , True),
|
||||
('state' , 'not in' , ['waiting'])]}"/>
|
||||
|
||||
<!-- <button name="action_done" type="object" string="Done" class="oe_stat_button"-->
|
||||
<!-- groups="purchase.group_purchase_manager" states="waiting"/>-->
|
||||
|
||||
<button name="action_draft" type="object" string="Reset To Draft" class="oe_highlight"
|
||||
attrs="{'invisible' : [('state','not in' , ['refuse'])]}"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="draft,dm,direct_manager,send_budget,wait_budget,ceo_purchase,executive_vice,general_supervisor,waiting,done,refuse"/>
|
||||
</header>
|
||||
</xpath>
|
||||
<!-- <xpath expr="//page[last()]" position="after">
|
||||
<page string="For technical management use" name="technical_use"
|
||||
attrs="{'invisible':[('state' , 'in' , 'draft,dm')]}">
|
||||
<group string="For technical management use" name="technical_use">
|
||||
<group> -->
|
||||
<!-- <field name="available" attrs="{'readonly':[('state' , '!=' , 'direct_manager')]}"/>
|
||||
<field name="unavailable" attrs="{'readonly':[('state' , '!=' , 'direct_manager')]}"/> -->
|
||||
<!-- <field name="specifications_conform"
|
||||
attrs="{'readonly':[('state' , '!=' , 'direct_manager')]}"/>
|
||||
<field name="specifications_not_conform"
|
||||
attrs="{'readonly':[('state' , '!=' , 'direct_manager')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</xpath> -->
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<!-- <page string="Departments Use" name="dep_use" attrs="{'invisible':[('state' , 'in' , 'draft')]}">
|
||||
<group>
|
||||
<group string="Requesting ِAdministration">
|
||||
<field name="planned_for" attrs="{'readonly':[('state' , '!=' , 'dm')]}"/>
|
||||
<field name="emergency" attrs="{'readonly':[('state' , '!=' , 'dm')]}"/>
|
||||
</group>
|
||||
<group name="attachment_booklet_uploade">
|
||||
<div class="row mb4">
|
||||
<div class="col-12">
|
||||
<button string="download Booklet" name="download_url" type="object"
|
||||
class="oe_highlight" attrs="{'readonly':[('state' , '!=' , 'dm')]}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb4">
|
||||
<div class="col-12">
|
||||
<label for="attachment_booklet_uploade"/>
|
||||
<field name="attachment_booklet_uploade" widget="binary"
|
||||
attrs="{'readonly':[('state' , '!=' , 'dm')]}"/>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
</page> -->
|
||||
<page string="Departments Use Base info" name="base_info_dep_use">
|
||||
<group>
|
||||
<group string="Delivery Info" name="DeliveryInfo">
|
||||
<field name="tender_name" required="1"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="purpose_of_tender" required="1"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="other_details" invisible="1" attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="is_delivered" required="1" widget="radio" options="{'horizontal': true}"/>
|
||||
<field name="samples_delivery_address"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')],'invisible':[('is_delivered' , '!=' , 'yes')],'required':[('is_delivered' , '=' , 'yes')]}"/>
|
||||
<field name="delivery_building"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')],'invisible':[('is_delivered' , '!=' , 'yes')],'required':[('is_delivered' , '=' , 'yes')]}"/>
|
||||
<field name="delivery_floor"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')],'invisible':[('is_delivered' , '!=' , 'yes')],'required':[('is_delivered' , '=' , 'yes')]}"/>
|
||||
<field name="delivery_unit"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')],'invisible':[('is_delivered' , '!=' , 'yes')],'required':[('is_delivered' , '=' , 'yes')]}"/>
|
||||
<field name="date_time"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')],'invisible':[('is_delivered' , '!=' , 'yes')],'required':[('is_delivered' , '=' , 'yes')]}"/>
|
||||
</group>
|
||||
<group name="Info">
|
||||
<!-- <field name="activities" required="1" widget="many2many_tags"-->
|
||||
<!-- options="{'no_create': True}" attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>-->
|
||||
<field name="project_duration" required="1"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="activity_description" style="white-space: normal;word-break: break-word;"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="competion_description" required="1"
|
||||
style="white-space: normal;word-break: break-word;"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="list_documentaries" required="1"
|
||||
style="white-space: normal;word-break: break-word;"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="attachment_scope_project" required="1" widget="binary"
|
||||
attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
<field name="program_action" attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Project Location">
|
||||
<group>
|
||||
<field name="work_location_state"/>
|
||||
<field name="work_location_city"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="work_location_district"/>
|
||||
<field name="work_location_GPS"/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
<page name="procurement_use" string="Procurement use">
|
||||
<group>
|
||||
<group>
|
||||
<field name="type_id"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
<field name="document_cost"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
<field name="body_technical"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
<field name="is_competition_divisible" widget="radio" options="{'horizontal': true}"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
<field name="classify_des"
|
||||
attrs="{'invisible':[('is_competition_divisible','!=','yes')],'required':[('is_competition_divisible','=','yes')],'readonly':[('state','!=','waiting')]}"/>
|
||||
|
||||
</group>
|
||||
<group>
|
||||
<field name="pre_qualification" widget="radio" options="{'horizontal': true}"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
<field name="initial_guarantee_percentage"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
<field name="applying_address"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
<field name="alternative_offer_allowed" widget="radio" options="{'horizontal': true}"
|
||||
attrs="{'required':[('state','=','waiting')],'readonly':[('state','!=','waiting')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='purchase_purpose']" position="after">
|
||||
<field name="type_id"
|
||||
options="{'no_create': True}"/>
|
||||
</xpath>
|
||||
|
||||
|
||||
</field>
|
||||
</record>
|
||||
<menuitem id="purchase_request_root_menu" name="Employee Requests" parent="purchase.menu_purchase_root" sequence="4"
|
||||
groups="purchase_requisition_custom.view_purchase_request"/>
|
||||
<!-- Purchase requests -->
|
||||
<menuitem id="purchase_requisition_custom.purchase_request_menu" name="Purchase Request"
|
||||
parent="purchase_request_root_menu" sequence="4"
|
||||
groups="purchase_requisition_custom.view_purchase_request"/>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="purchase_governmental_requisition_form_view_inherit" model="ir.ui.view">
|
||||
<field name="name">purchase.governmental.requisition.form.inherit</field>
|
||||
<field name="model">purchase.requisition</field>
|
||||
<field name="inherit_id" ref="purchase_requisition.view_purchase_requisition_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="custom_three_validation_steps" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</field>
|
||||
<xpath expr="//field[@name='date_end']" position="before">
|
||||
<field name="agreement_name" attrs="{'readonly': [('state','!=', 'draft')]}"/>
|
||||
<field name="agreement_number" attrs="{'readonly': [('state','!=', 'draft')]}"/>
|
||||
<field name="agreement_date" attrs="{'readonly': [('state','!=', 'draft')]}"/>
|
||||
<field name="city" attrs="{'readonly': [('state','!=', 'draft')]}"/>
|
||||
</xpath>
|
||||
<field name="type_id" position="replace"/>
|
||||
<xpath expr="//field[@name='user_id']" position="before">
|
||||
<field name="type_id" readonly="1"/>
|
||||
</xpath>
|
||||
<field name="account_analytic_id" position="attributes">
|
||||
<attribute name="optional"></attribute>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
<!-- <?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
<!-- model.name inherit form view -->
|
||||
<record id="purchase_requisition_custom_setting" model="ir.ui.view">
|
||||
<field name="name">model.name.inherit.view.form</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="purchase.res_config_settings_view_form_purchase"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@data-string='Purchase']" position="inside">
|
||||
<h2>Booklet</h2>
|
||||
<div class="row mt16 o_settings_container">
|
||||
<div class="col-12 col-md-6 o_setting_box" title="Activate Budget check in purchase">
|
||||
<div class="o_setting_left_pane">
|
||||
<div class="mt16">
|
||||
<field name="attachment_booklet_exp" widget="binary" nolabel="1" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="attachment_booklet_exp"/>
|
||||
<div class="text-muted">
|
||||
Purchase Booklet
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo> -->
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from . import convert_to_contract
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
|
||||
class ConvertPoContract(models.TransientModel):
|
||||
_name = "convert.po.contract.wizard"
|
||||
_description = "Convert Contract wizard"
|
||||
|
||||
purchase_id = fields.Many2one('purchase.order')
|
||||
contract_name = fields.Char()
|
||||
auto_notification = fields.Boolean()
|
||||
responsible_id = fields.Many2one('res.users')
|
||||
notify_before = fields.Integer()
|
||||
start_date = fields.Date()
|
||||
end_date = fields.Date()
|
||||
period_type = fields.Selection(
|
||||
selection=[('day', 'Day(s)'), ('week', 'Week(s)'), ('month', 'Month(s)'), ('year', 'Year(s)')])
|
||||
|
||||
@api.onchange('auto_notification')
|
||||
def auto_notification_onchange(self):
|
||||
if not self.auto_notification:
|
||||
self.notify_before = 0
|
||||
self.period_type = ''
|
||||
return {}
|
||||
|
||||
@api.constrains('end_date', 'start_date', 'auto_notification')
|
||||
def start_notify_constrain(self):
|
||||
for rec in self:
|
||||
if rec.start_date and rec.end_date:
|
||||
if rec.start_date >= rec.end_date:
|
||||
raise ValidationError(_("Start Date Should Be Less Than End Date"))
|
||||
|
||||
if rec.auto_notification and rec.notify_before < 1:
|
||||
raise ValidationError(_("Notify Before End Should Be Greater Than Zero"))
|
||||
|
||||
def action_create_contract(self):
|
||||
self.ensure_one()
|
||||
self.purchase_id.write({
|
||||
'type': 'contract',
|
||||
'contract_name': self.contract_name,
|
||||
'auto_notification': self.auto_notification,
|
||||
'responsible_id': self.responsible_id.id,
|
||||
'notify_before': self.notify_before,
|
||||
'start_date': self.start_date,
|
||||
'end_date': self.end_date,
|
||||
'period_type': self.period_type
|
||||
})
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="convert_to_contract_po_wizard" model="ir.ui.view">
|
||||
<field name="name">convert.po.contract.wizard.form</field>
|
||||
<field name="model">convert.po.contract.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Convert To Contract">
|
||||
<separator string="Contract Information"/>
|
||||
<group>
|
||||
<field name="purchase_id" invisible="1"/>
|
||||
<field name="contract_name" required="1"/>
|
||||
<field name="responsible_id" required="1"/>
|
||||
<field name="start_date" required="1"/>
|
||||
<field name="end_date" required="1"/>
|
||||
<field name="auto_notification"/>
|
||||
<field name="notify_before" string="Notify Before End"
|
||||
attrs="{'invisible':[('auto_notification','=', False)],
|
||||
'required':[('auto_notification','=', True),]}"/>
|
||||
<field name="period_type"
|
||||
attrs="{'invisible':[('auto_notification','=', False)],
|
||||
'required':[('auto_notification','=', True),]}"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button string='Save' name="action_create_contract" type="object" class="oe_highlight"/>
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Reference in New Issue