{"en_US": "<form string=\"Purchase Order\" class=\"o_purchase_order\">\n                <header>\n                    <button name=\"action_rfq_send\" states=\"draft\" string=\"Send by Email\" type=\"object\" context=\"{'send_rfq':True}\" class=\"oe_highlight\" data-hotkey=\"g\"/>\n                    <button name=\"print_quotation\" string=\"Print RFQ\" type=\"object\" states=\"draft\" class=\"oe_highlight\" groups=\"base.group_user\" data-hotkey=\"k\"/>\n                    <button name=\"button_confirm\" type=\"object\" states=\"sent\" string=\"Confirm Order\" context=\"{'validate_analytic': True}\" class=\"oe_highlight\" id=\"bid_confirm\" data-hotkey=\"v\"/>\n                    <button name=\"button_approve\" type=\"object\" states=\"to approve\" string=\"Approve Order\" class=\"oe_highlight\" groups=\"purchase.group_purchase_manager\" data-hotkey=\"z\"/>\n                    <button name=\"action_create_invoice\" string=\"Create Bill\" type=\"object\" class=\"oe_highlight\" context=\"{'create_bill':True}\" attrs=\"{'invisible': ['|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'in', ('no', 'invoiced'))]}\" data-hotkey=\"w\"/>\n                    <button name=\"action_rfq_send\" states=\"sent\" string=\"Re-Send by Email\" type=\"object\" context=\"{'send_rfq':True}\" data-hotkey=\"g\"/>\n                    <button name=\"print_quotation\" string=\"Print RFQ\" type=\"object\" states=\"sent\" groups=\"base.group_user\" data-hotkey=\"k\"/>\n                    <button name=\"button_confirm\" type=\"object\" states=\"draft\" context=\"{'validate_analytic': True}\" string=\"Confirm Order\" id=\"draft_confirm\"/>\n                    <button name=\"action_rfq_send\" states=\"purchase\" string=\"Send PO by Email\" type=\"object\" context=\"{'send_rfq':False}\" data-hotkey=\"g\"/>\n                    <button name=\"confirm_reminder_mail\" string=\"Confirm Receipt Date\" type=\"object\" attrs=\"{'invisible': ['|','|', ('state', 'not in', ('purchase', 'done')), ('mail_reminder_confirmed', '=', True), ('date_planned', '=', False)]}\" groups=\"base.group_no_one\" data-hotkey=\"o\"/>\n                    <button name=\"action_create_invoice\" string=\"Create Bill\" type=\"object\" context=\"{'create_bill':True}\" attrs=\"{'invisible': ['|', '|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'not in', ('no', 'invoiced')), ('order_line', '=', [])]}\" data-hotkey=\"w\"/>\n                    <button name=\"button_draft\" states=\"cancel\" string=\"Set to Draft\" type=\"object\" data-hotkey=\"o\"/>\n                    <button name=\"button_cancel\" states=\"draft,to approve,sent,purchase\" string=\"Cancel\" type=\"object\" data-hotkey=\"x\"/>\n                    <button name=\"button_done\" type=\"object\" string=\"Lock\" states=\"purchase\" data-hotkey=\"l\"/>\n                    <button name=\"button_unlock\" type=\"object\" string=\"Unlock\" states=\"done\" groups=\"purchase.group_purchase_manager\" data-hotkey=\"l\"/>\n                    <field name=\"state\" widget=\"statusbar\" statusbar_visible=\"draft,sent,purchase\" readonly=\"1\"/>\n                </header>\n                <sheet>\n                    <div class=\"oe_button_box\" name=\"button_box\">\n                        <button type=\"object\" name=\"action_view_invoice\" class=\"oe_stat_button\" icon=\"fa-pencil-square-o\" attrs=\"{'invisible':['|', ('invoice_count', '=', 0), ('state', 'in', ('draft','sent','to approve'))]}\">\n                            <field name=\"invoice_count\" widget=\"statinfo\" string=\"Vendor Bills\"/>\n                            <field name=\"invoice_ids\" invisible=\"1\"/>\n                        </button>\n                    </div>\n                    <div class=\"oe_title\">\n                        <span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',('draft','sent'))]}\">Request for Quotation </span>\n                        <span class=\"o_form_label\" attrs=\"{'invisible': [('state','in',('draft','sent'))]}\">Purchase Order </span>\n                        <h1 class=\"d-flex\">\n                            <field name=\"priority\" widget=\"priority\" class=\"me-3\"/>\n                            <field name=\"name\" readonly=\"1\"/>\n                        </h1>\n                    </div>\n                    <group>\n                        <group>\n                            <field name=\"partner_id\" widget=\"res_partner_many2one\" context=\"{'res_partner_search_mode': 'supplier', 'show_vat': True}\" placeholder=\"Name, TIN, Email, or Reference\"/>\n                            <field name=\"partner_ref\"/>\n                            <field name=\"currency_id\" groups=\"base.group_multi_currency\" force_save=\"1\"/>\n                            <field name=\"id\" invisible=\"1\"/>\n                            <field name=\"company_id\" invisible=\"1\"/>\n                            <field name=\"currency_id\" invisible=\"1\" groups=\"!base.group_multi_currency\"/>\n                        </group>\n                        <group>\n                            <field name=\"date_order\" attrs=\"{'invisible': [('state','in',('purchase','done'))]}\"/>\n                            <label for=\"date_approve\" attrs=\"{'invisible': [('state','not in',('purchase','done'))]}\"/>\n                            <div name=\"date_approve\" attrs=\"{'invisible': [('state','not in',('purchase','done'))]}\" class=\"o_row\">\n                                <field name=\"date_approve\"/>\n                                <field name=\"mail_reception_confirmed\" invisible=\"1\"/>\n                                <span class=\"text-muted\" attrs=\"{'invisible': [('mail_reception_confirmed','=', False)]}\">(confirmed by vendor)</span>\n                            </div>\n                            <label for=\"date_planned\"/>\n                            <div name=\"date_planned_div\" class=\"o_row\">\n                                <field name=\"date_planned\" attrs=\"{'readonly': [('state', 'not in', ('draft', 'sent', 'to approve', 'purchase'))]}\"/>\n                                <field name=\"mail_reminder_confirmed\" invisible=\"1\"/>\n                                <span class=\"text-muted\" attrs=\"{'invisible': [('mail_reminder_confirmed', '=', False)]}\">(confirmed by vendor)</span>\n                            </div>\n                            <label for=\"receipt_reminder_email\" class=\"d-none\" groups=\"purchase.group_send_reminder\"/>\n                            <div name=\"reminder\" class=\"o_row\" groups=\"purchase.group_send_reminder\" title=\"Automatically send a confirmation email to the vendor X days before the expected receipt date, asking him to confirm the exact date.\">\n                                <field name=\"receipt_reminder_email\"/>\n                                <span>Ask confirmation</span>\n                                <div class=\"o_row oe_inline\" attrs=\"{'invisible': [('receipt_reminder_email', '=', False)]}\">\n                                    <field name=\"reminder_date_before_receipt\"/>\n                                    day(s) before\n                                    <widget name=\"toaster_button\" button_name=\"send_reminder_preview\" title=\"Preview the reminder email by sending it to yourself.\" attrs=\"{'invisible': [('id', '=', False)]}\"/>\n                                </div>\n                            </div>\n                        </group>\n                    </group>\n                    <notebook>\n                        <page string=\"Products\" name=\"products\">\n                            <field name=\"tax_country_id\" invisible=\"1\"/>\n                            <field name=\"order_line\" widget=\"section_and_note_one2many\" mode=\"tree,kanban\" context=\"{'default_state': 'draft'}\" attrs=\"{'readonly': [('state', 'in', ('done', 'cancel'))]}\">\n                                <tree string=\"Purchase Order Lines\" editable=\"bottom\">\n                                    <control>\n                                        <create name=\"add_product_control\" string=\"Add a product\"/>\n                                        <create name=\"add_section_control\" string=\"Add a section\" context=\"{'default_display_type': 'line_section'}\"/>\n                                        <create name=\"add_note_control\" string=\"Add a note\" context=\"{'default_display_type': 'line_note'}\"/>\n                                    </control>\n                                    <field name=\"display_type\" invisible=\"1\"/>\n                                    <field name=\"currency_id\" invisible=\"1\"/>\n                                    <field name=\"state\" invisible=\"1\"/>\n                                    <field name=\"product_type\" invisible=\"1\"/>\n                                    <field name=\"product_uom\" invisible=\"1\" groups=\"!uom.group_uom\"/>\n                                    <field name=\"product_uom_category_id\" invisible=\"1\"/>\n                                    <field name=\"invoice_lines\" invisible=\"1\"/>\n                                    <field name=\"sequence\" widget=\"handle\"/>\n                                    <field name=\"product_id\" attrs=\"{                                             'readonly': [('state', 'in', ('purchase', 'to approve','done', 'cancel'))],                                             'required': [('display_type', '=', False)],                                         }\" context=\"{'partner_id':parent.partner_id, 'quantity':product_qty, 'company_id': parent.company_id}\" force_save=\"1\" domain=\"[('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]\"/>\n                                    <field name=\"name\" widget=\"section_and_note_text\"/>\n                                    <field name=\"date_planned\" optional=\"hide\" attrs=\"{'required': [('display_type', '=', False)]}\" force_save=\"1\"/>\n                                    <field name=\"analytic_distribution\" widget=\"analytic_distribution\" optional=\"hide\" groups=\"analytic.group_analytic_accounting\" options=\"{'product_field': 'product_id', 'business_domain': 'purchase_order'}\"/>\n                                    <field name=\"product_qty\"/>\n                                    <field name=\"qty_received_manual\" invisible=\"1\"/>\n                                    <field name=\"qty_received_method\" invisible=\"1\"/>\n                                    <field name=\"qty_received\" string=\"Received\" attrs=\"{'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))], 'readonly': [('qty_received_method', '!=', 'manual')]}\" optional=\"show\"/>\n                                    <field name=\"qty_invoiced\" string=\"Billed\" attrs=\"{'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))]}\" optional=\"show\"/>\n                                    <field name=\"product_uom\" string=\"UoM\" groups=\"uom.group_uom\" attrs=\"{                                             'readonly': [('state', 'in', ('purchase', 'done', 'cancel'))],                                             'required': [('display_type', '=', False)]                                         }\" force_save=\"1\" optional=\"show\"/>\n                                    <field name=\"product_packaging_qty\" attrs=\"{'invisible': ['|', ('product_id', '=', False), ('product_packaging_id', '=', False)]}\" groups=\"product.group_stock_packaging\" optional=\"show\"/>\n                                    <field name=\"product_packaging_id\" attrs=\"{'invisible': [('product_id', '=', False)]}\" context=\"{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}\" groups=\"product.group_stock_packaging\" optional=\"show\"/>\n                                    <field name=\"price_unit\" attrs=\"{'readonly': [('qty_invoiced', '!=', 0)]}\"/>\n                                    <button name=\"action_purchase_history\" type=\"object\" icon=\"fa-history\" title=\"Purchase History\" attrs=\"{'invisible': [('id', '=', False)]}\"/>\n                                    <field name=\"taxes_id\" widget=\"many2many_tags\" domain=\"[('type_tax_use','=','purchase'), ('company_id', '=', parent.company_id), ('country_id', '=', parent.tax_country_id)]\" context=\"{'default_type_tax_use': 'purchase', 'search_view_ref': 'account.account_tax_view_search'}\" options=\"{'no_create': True}\" optional=\"show\"/>\n                                    <field name=\"price_subtotal\" widget=\"monetary\"/>\n                                    <field name=\"price_total\" invisible=\"1\"/>\n                                    <field name=\"price_tax\" invisible=\"1\"/>\n                                </tree>\n                                <form string=\"Purchase Order Line\">\n                                        <field name=\"state\" invisible=\"1\"/>\n                                        <field name=\"display_type\" invisible=\"1\"/>\n                                        <group attrs=\"{'invisible': [('display_type', '!=', False)]}\">\n                                            <group>\n                                                <field name=\"product_uom_category_id\" invisible=\"1\"/>\n                                                <field name=\"product_id\" context=\"{'partner_id': parent.partner_id}\" widget=\"many2one_barcode\" domain=\"[('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]\"/>\n                                                <label for=\"product_qty\"/>\n                                                <div class=\"o_row\">\n                                                    <field name=\"product_qty\"/>\n                                                    <field name=\"product_uom\" groups=\"uom.group_uom\" attrs=\"{'required': [('display_type', '=', False)]}\"/>\n                                                </div>\n                                                <field name=\"qty_received_method\" invisible=\"1\"/>\n                                                <field name=\"qty_received\" string=\"Received Quantity\" attrs=\"{'invisible': [('parent.state', 'not in', ('purchase', 'done'))], 'readonly': [('qty_received_method', '!=', 'manual')]}\"/>\n                                                <field name=\"qty_invoiced\" string=\"Billed Quantity\" attrs=\"{'invisible': [('parent.state', 'not in', ('purchase', 'done'))]}\"/>\n                                                <field name=\"product_packaging_qty\" attrs=\"{'invisible': ['|', ('product_id', '=', False), ('product_packaging_id', '=', False)]}\" groups=\"product.group_stock_packaging\"/>\n                                                <field name=\"product_packaging_id\" attrs=\"{'invisible': [('product_id', '=', False)]}\" context=\"{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}\" groups=\"product.group_stock_packaging\"/>\n                                                <field name=\"price_unit\"/>\n                                                <field name=\"taxes_id\" widget=\"many2many_tags\" domain=\"[('type_tax_use', '=', 'purchase'), ('company_id', '=', parent.company_id), ('country_id', '=', parent.tax_country_id)]\" options=\"{'no_create': True}\"/>\n                                            </group>\n                                            <group>\n                                                <field name=\"date_planned\" widget=\"date\" attrs=\"{'required': [('display_type', '=', False)]}\"/>\n                                                <field name=\"analytic_distribution\" widget=\"analytic_distribution\" groups=\"analytic.group_analytic_accounting\" options=\"{'product_field': 'product_id', 'business_domain': 'purchase_order'}\"/>\n                                            </group>\n                                            <group>\n                                            <notebook colspan=\"4\">\n                                                <page string=\"Notes\" name=\"notes\">\n                                                    <field name=\"name\"/>\n                                                </page>\n                                                <page string=\"Invoices and Incoming Shipments\" name=\"invoices_incoming_shiptments\">\n                                                    <field name=\"invoice_lines\"/>\n                                                </page>\n                                            </notebook>\n                                            </group>\n                                        </group>\n                                        <label for=\"name\" string=\"Section Name (eg. Products, Services)\" attrs=\"{'invisible': [('display_type', '!=', 'line_section')]}\"/>\n                                        <label for=\"name\" string=\"Note\" attrs=\"{'invisible': [('display_type', '!=', 'line_note')]}\"/>\n                                        <field name=\"name\" nolabel=\"1\" attrs=\"{'invisible': [('display_type', '=', False)]}\"/>\n                                 </form>\n                                 <kanban class=\"o_kanban_mobile\">\n                                     <field name=\"name\"/>\n                                     <field name=\"product_id\"/>\n                                     <field name=\"product_qty\"/>\n                                     <field name=\"product_uom\" groups=\"uom.group_uom\"/>\n                                     <field name=\"price_subtotal\"/>\n                                     <field name=\"price_tax\" invisible=\"1\"/>\n                                     <field name=\"price_total\" invisible=\"1\"/>\n                                     <field name=\"price_unit\"/>\n                                     <field name=\"display_type\"/>\n                                     <field name=\"taxes_id\" invisible=\"1\"/>\n                                     <templates>\n                                         <t t-name=\"kanban-box\">\n                                             <div t-attf-class=\"oe_kanban_card oe_kanban_global_click {{ record.display_type.raw_value ? 'o_is_' + record.display_type.raw_value : '' }}\">\n                                                 <t t-if=\"!record.display_type.raw_value\">\n                                                     <div class=\"row\">\n                                                         <div class=\"col-8\">\n                                                             <strong>\n                                                                 <span t-esc=\"record.product_id.value\"/>\n                                                             </strong>\n                                                         </div>\n                                                         <div class=\"col-4\">\n                                                             <strong>\n                                                                 <span t-esc=\"record.price_subtotal.value\" class=\"float-end text-end\"/>\n                                                             </strong>\n                                                         </div>\n                                                     </div>\n                                                     <div class=\"row\">\n                                                         <div class=\"col-12 text-muted\">\n                                                             <span>\n                                                                 Quantity:\n                                                                 <t t-esc=\"record.product_qty.value\"/>\n                                                                 <t t-esc=\"record.product_uom.value\" groups=\"uom.group_uom\"/>\n                                                             </span>\n                                                         </div>\n                                                     </div>\n                                                     <div class=\"row\">\n                                                         <div class=\"col-12 text-muted\">\n                                                             <span>\n                                                                 Unit Price:\n                                                                 <field name=\"price_unit\"/>\n                                                             </span>\n                                                         </div>\n                                                     </div>\n                                                 </t>\n                                                 <div t-elif=\"record.display_type.raw_value === 'line_section' || record.display_type.raw_value === 'line_note'\" class=\"row\">\n                                                     <div class=\"col-12\">\n                                                         <span t-esc=\"record.name.value\"/>\n                                                     </div>\n                                                 </div>\n                                             </div>\n                                         </t>\n                                     </templates>\n                                 </kanban>\n                            </field>\n                            <group>\n                                <group>\n                                    <field colspan=\"2\" name=\"notes\" nolabel=\"1\" placeholder=\"Define your terms and conditions ...\"/>\n                                </group>\n                                <group class=\"oe_subtotal_footer oe_right\">\n                                    <field name=\"tax_totals\" widget=\"account-tax-totals-field\" nolabel=\"1\" colspan=\"2\" readonly=\"1\"/>\n                                </group>\n                            </group>\n                            <div class=\"clearfix\"/>\n                        </page>\n                        <page string=\"Other Information\" name=\"purchase_delivery_invoice\">\n                            <group>\n                                <group name=\"other_info\">\n                                    <field name=\"user_id\" domain=\"[('share', '=', False)]\" widget=\"many2one_avatar_user\"/>\n                                    <field name=\"company_id\" groups=\"base.group_multi_company\" options=\"{'no_create': True}\"/>\n                                    <field name=\"origin\"/>\n                                </group>\n                                <group name=\"invoice_info\">\n                                    <field name=\"invoice_status\" attrs=\"{'invisible': [('state', 'in', ('draft', 'sent', 'to approve', 'cancel'))]}\"/>\n                                    <field name=\"payment_term_id\" attrs=\"{'readonly': ['|', ('invoice_status','=', 'invoiced'), ('state', '=', 'done')]}\" options=\"{'no_create': True}\"/>\n                                    <field name=\"fiscal_position_id\" options=\"{'no_create': True}\" attrs=\"{'readonly': ['|', ('invoice_status','=', 'invoiced'), ('state', '=', 'done')]}\"/>\n                                </group>\n                            </group>\n                        </page>\n                    </notebook>\n                </sheet>\n                <div class=\"oe_chatter\">\n                    <field name=\"message_follower_ids\"/>\n                    <field name=\"activity_ids\"/>\n                    <field name=\"message_ids\"/>\n                </div>\n                </form>", "vi_VN": "<form string=\"Đơn mua hàng\" class=\"o_purchase_order\">\n                <header>\n                    <button name=\"action_rfq_send\" states=\"draft\" string=\"Gửi qua email\" type=\"object\" context=\"{'send_rfq':True}\" class=\"oe_highlight\" data-hotkey=\"g\"/>\n                    <button name=\"print_quotation\" string=\"In RFQ\" type=\"object\" states=\"draft\" class=\"oe_highlight\" groups=\"base.group_user\" data-hotkey=\"k\"/>\n                    <button name=\"button_confirm\" type=\"object\" states=\"sent\" string=\"Xác nhận đơn hàng\" context=\"{'validate_analytic': True}\" class=\"oe_highlight\" id=\"bid_confirm\" data-hotkey=\"v\"/>\n                    <button name=\"button_approve\" type=\"object\" states=\"to approve\" string=\"Phê duyệt đơn hàng\" class=\"oe_highlight\" groups=\"purchase.group_purchase_manager\" data-hotkey=\"z\"/>\n                    <button name=\"action_create_invoice\" string=\"Tạo hóa đơn\" type=\"object\" class=\"oe_highlight\" context=\"{'create_bill':True}\" attrs=\"{'invisible': ['|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'in', ('no', 'invoiced'))]}\" data-hotkey=\"w\"/>\n                    <button name=\"action_rfq_send\" states=\"sent\" string=\"Gửi lại qua email\" type=\"object\" context=\"{'send_rfq':True}\" data-hotkey=\"g\"/>\n                    <button name=\"print_quotation\" string=\"In RFQ\" type=\"object\" states=\"sent\" groups=\"base.group_user\" data-hotkey=\"k\"/>\n                    <button name=\"button_confirm\" type=\"object\" states=\"draft\" context=\"{'validate_analytic': True}\" string=\"Xác nhận đơn hàng\" id=\"draft_confirm\"/>\n                    <button name=\"action_rfq_send\" states=\"purchase\" string=\"Gửi đơn mua hàng qua email\" type=\"object\" context=\"{'send_rfq':False}\" data-hotkey=\"g\"/>\n                    <button name=\"confirm_reminder_mail\" string=\"Xác nhận ngày nhận hàng\" type=\"object\" attrs=\"{'invisible': ['|','|', ('state', 'not in', ('purchase', 'done')), ('mail_reminder_confirmed', '=', True), ('date_planned', '=', False)]}\" groups=\"base.group_no_one\" data-hotkey=\"o\"/>\n                    <button name=\"action_create_invoice\" string=\"Tạo hóa đơn\" type=\"object\" context=\"{'create_bill':True}\" attrs=\"{'invisible': ['|', '|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'not in', ('no', 'invoiced')), ('order_line', '=', [])]}\" data-hotkey=\"w\"/>\n                    <button name=\"button_draft\" states=\"cancel\" string=\"Đặt làm nháp\" type=\"object\" data-hotkey=\"o\"/>\n                    <button name=\"button_cancel\" states=\"draft,to approve,sent,purchase\" string=\"Hủy\" type=\"object\" data-hotkey=\"x\"/>\n                    <button name=\"button_done\" type=\"object\" string=\"Khoá\" states=\"purchase\" data-hotkey=\"l\"/>\n                    <button name=\"button_unlock\" type=\"object\" string=\"Hủy khoá\" states=\"done\" groups=\"purchase.group_purchase_manager\" data-hotkey=\"l\"/>\n                    <field name=\"state\" widget=\"statusbar\" statusbar_visible=\"draft,sent,purchase\" readonly=\"1\"/>\n                </header>\n                <sheet>\n                    <div class=\"oe_button_box\" name=\"button_box\">\n                        <button type=\"object\" name=\"action_view_invoice\" class=\"oe_stat_button\" icon=\"fa-pencil-square-o\" attrs=\"{'invisible':['|', ('invoice_count', '=', 0), ('state', 'in', ('draft','sent','to approve'))]}\">\n                            <field name=\"invoice_count\" widget=\"statinfo\" string=\"Hóa đơn mua hàng\"/>\n                            <field name=\"invoice_ids\" invisible=\"1\"/>\n                        </button>\n                    </div>\n                    <div class=\"oe_title\">\n                        <span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',('draft','sent'))]}\">Yêu cầu Báo giá</span>\n<span class=\"o_form_label\" attrs=\"{'invisible': [('state','in',('draft','sent'))]}\">Đơn Mua hàng</span>\n                        <h1 class=\"d-flex\">\n                            <field name=\"priority\" widget=\"priority\" class=\"me-3\"/>\n                            <field name=\"name\" readonly=\"1\"/>\n                        </h1>\n                    </div>\n                    <group>\n                        <group>\n                            <field name=\"partner_id\" widget=\"res_partner_many2one\" context=\"{'res_partner_search_mode': 'supplier', 'show_vat': True}\" placeholder=\"Tên, MST, Email, hoặc Mã\"/>\n                            <field name=\"partner_ref\"/>\n                            <field name=\"currency_id\" groups=\"base.group_multi_currency\" force_save=\"1\"/>\n                            <field name=\"id\" invisible=\"1\"/>\n                            <field name=\"company_id\" invisible=\"1\"/>\n                            <field name=\"currency_id\" invisible=\"1\" groups=\"!base.group_multi_currency\"/>\n                        </group>\n                        <group>\n                            <field name=\"date_order\" attrs=\"{'invisible': [('state','in',('purchase','done'))]}\"/>\n                            <label for=\"date_approve\" attrs=\"{'invisible': [('state','not in',('purchase','done'))]}\"/>\n                            <div name=\"date_approve\" attrs=\"{'invisible': [('state','not in',('purchase','done'))]}\" class=\"o_row\">\n                                <field name=\"date_approve\"/>\n                                <field name=\"mail_reception_confirmed\" invisible=\"1\"/>\n                                <span class=\"text-muted\" attrs=\"{'invisible': [('mail_reception_confirmed','=', False)]}\">(được xác nhận bởi nhà cung cấp)</span>\n                            </div>\n                            <label for=\"date_planned\"/>\n                            <div name=\"date_planned_div\" class=\"o_row\">\n                                <field name=\"date_planned\" attrs=\"{'readonly': [('state', 'not in', ('draft', 'sent', 'to approve', 'purchase'))]}\"/>\n                                <field name=\"mail_reminder_confirmed\" invisible=\"1\"/>\n                                <span class=\"text-muted\" attrs=\"{'invisible': [('mail_reminder_confirmed', '=', False)]}\">(được xác nhận bởi nhà cung cấp)</span>\n                            </div>\n                            <label for=\"receipt_reminder_email\" class=\"d-none\" groups=\"purchase.group_send_reminder\"/>\n                            <div name=\"reminder\" class=\"o_row\" groups=\"purchase.group_send_reminder\" title=\"Tự động gửi email xác nhận cho nhà cung cấp X ngày trước ngày nhận hàng dự kiến, yêu cầu họ xác nhận ngày nhận hàng chính xác.\">\n                                <field name=\"receipt_reminder_email\"/>\n                                <span>Yêu cầu xác nhận</span>\n                                <div class=\"o_row oe_inline\" attrs=\"{'invisible': [('receipt_reminder_email', '=', False)]}\">\n                                    <field name=\"reminder_date_before_receipt\"/>\n                                    ngày trước\n                                    <widget name=\"toaster_button\" button_name=\"send_reminder_preview\" title=\"Xem trước email nhắc nhở bằng cách gửi cho chính bạn.\" attrs=\"{'invisible': [('id', '=', False)]}\"/>\n                                </div>\n                            </div>\n                        </group>\n                    </group>\n                    <notebook>\n                        <page string=\"Sản phẩm\" name=\"products\">\n                            <field name=\"tax_country_id\" invisible=\"1\"/>\n                            <field name=\"order_line\" widget=\"section_and_note_one2many\" mode=\"tree,kanban\" context=\"{'default_state': 'draft'}\" attrs=\"{'readonly': [('state', 'in', ('done', 'cancel'))]}\">\n                                <tree string=\"Dòng đơn mua hàng\" editable=\"bottom\">\n                                    <control>\n                                        <create name=\"add_product_control\" string=\"Thêm sản phẩm\"/>\n                                        <create name=\"add_section_control\" string=\"Thêm phần\" context=\"{'default_display_type': 'line_section'}\"/>\n                                        <create name=\"add_note_control\" string=\"Thêm ghi chú\" context=\"{'default_display_type': 'line_note'}\"/>\n                                    </control>\n                                    <field name=\"display_type\" invisible=\"1\"/>\n                                    <field name=\"currency_id\" invisible=\"1\"/>\n                                    <field name=\"state\" invisible=\"1\"/>\n                                    <field name=\"product_type\" invisible=\"1\"/>\n                                    <field name=\"product_uom\" invisible=\"1\" groups=\"!uom.group_uom\"/>\n                                    <field name=\"product_uom_category_id\" invisible=\"1\"/>\n                                    <field name=\"invoice_lines\" invisible=\"1\"/>\n                                    <field name=\"sequence\" widget=\"handle\"/>\n                                    <field name=\"product_id\" attrs=\"{                                             'readonly': [('state', 'in', ('purchase', 'to approve','done', 'cancel'))],                                             'required': [('display_type', '=', False)],                                         }\" context=\"{'partner_id':parent.partner_id, 'quantity':product_qty, 'company_id': parent.company_id}\" force_save=\"1\" domain=\"[('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]\"/>\n                                    <field name=\"name\" widget=\"section_and_note_text\"/>\n                                    <field name=\"date_planned\" optional=\"hide\" attrs=\"{'required': [('display_type', '=', False)]}\" force_save=\"1\"/>\n                                    <field name=\"analytic_distribution\" widget=\"analytic_distribution\" optional=\"hide\" groups=\"analytic.group_analytic_accounting\" options=\"{'product_field': 'product_id', 'business_domain': 'purchase_order'}\"/>\n                                    <field name=\"product_qty\"/>\n                                    <field name=\"qty_received_manual\" invisible=\"1\"/>\n                                    <field name=\"qty_received_method\" invisible=\"1\"/>\n                                    <field name=\"qty_received\" string=\"Đã nhận\" attrs=\"{'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))], 'readonly': [('qty_received_method', '!=', 'manual')]}\" optional=\"show\"/>\n                                    <field name=\"qty_invoiced\" string=\"Đã lập hoá đơn\" attrs=\"{'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))]}\" optional=\"show\"/>\n                                    <field name=\"product_uom\" string=\"Đơn vị tính\" groups=\"uom.group_uom\" attrs=\"{                                             'readonly': [('state', 'in', ('purchase', 'done', 'cancel'))],                                             'required': [('display_type', '=', False)]                                         }\" force_save=\"1\" optional=\"show\"/>\n                                    <field name=\"product_packaging_qty\" attrs=\"{'invisible': ['|', ('product_id', '=', False), ('product_packaging_id', '=', False)]}\" groups=\"product.group_stock_packaging\" optional=\"show\"/>\n                                    <field name=\"product_packaging_id\" attrs=\"{'invisible': [('product_id', '=', False)]}\" context=\"{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}\" groups=\"product.group_stock_packaging\" optional=\"show\"/>\n                                    <field name=\"price_unit\" attrs=\"{'readonly': [('qty_invoiced', '!=', 0)]}\"/>\n                                    <button name=\"action_purchase_history\" type=\"object\" icon=\"fa-history\" title=\"Lịch sử mua hàng\" attrs=\"{'invisible': [('id', '=', False)]}\"/>\n                                    <field name=\"taxes_id\" widget=\"many2many_tags\" domain=\"[('type_tax_use','=','purchase'), ('company_id', '=', parent.company_id), ('country_id', '=', parent.tax_country_id)]\" context=\"{'default_type_tax_use': 'purchase', 'search_view_ref': 'account.account_tax_view_search'}\" options=\"{'no_create': True}\" optional=\"show\"/>\n                                    <field name=\"price_subtotal\" widget=\"monetary\"/>\n                                    <field name=\"price_total\" invisible=\"1\"/>\n                                    <field name=\"price_tax\" invisible=\"1\"/>\n                                </tree>\n                                <form string=\"Dòng đơn mua hàng\">\n                                        <field name=\"state\" invisible=\"1\"/>\n                                        <field name=\"display_type\" invisible=\"1\"/>\n                                        <group attrs=\"{'invisible': [('display_type', '!=', False)]}\">\n                                            <group>\n                                                <field name=\"product_uom_category_id\" invisible=\"1\"/>\n                                                <field name=\"product_id\" context=\"{'partner_id': parent.partner_id}\" widget=\"many2one_barcode\" domain=\"[('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]\"/>\n                                                <label for=\"product_qty\"/>\n                                                <div class=\"o_row\">\n                                                    <field name=\"product_qty\"/>\n                                                    <field name=\"product_uom\" groups=\"uom.group_uom\" attrs=\"{'required': [('display_type', '=', False)]}\"/>\n                                                </div>\n                                                <field name=\"qty_received_method\" invisible=\"1\"/>\n                                                <field name=\"qty_received\" string=\"Số lượng đã nhận\" attrs=\"{'invisible': [('parent.state', 'not in', ('purchase', 'done'))], 'readonly': [('qty_received_method', '!=', 'manual')]}\"/>\n                                                <field name=\"qty_invoiced\" string=\"Số lượng đã được lập hoá đơn\" attrs=\"{'invisible': [('parent.state', 'not in', ('purchase', 'done'))]}\"/>\n                                                <field name=\"product_packaging_qty\" attrs=\"{'invisible': ['|', ('product_id', '=', False), ('product_packaging_id', '=', False)]}\" groups=\"product.group_stock_packaging\"/>\n                                                <field name=\"product_packaging_id\" attrs=\"{'invisible': [('product_id', '=', False)]}\" context=\"{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}\" groups=\"product.group_stock_packaging\"/>\n                                                <field name=\"price_unit\"/>\n                                                <field name=\"taxes_id\" widget=\"many2many_tags\" domain=\"[('type_tax_use', '=', 'purchase'), ('company_id', '=', parent.company_id), ('country_id', '=', parent.tax_country_id)]\" options=\"{'no_create': True}\"/>\n                                            </group>\n                                            <group>\n                                                <field name=\"date_planned\" widget=\"date\" attrs=\"{'required': [('display_type', '=', False)]}\"/>\n                                                <field name=\"analytic_distribution\" widget=\"analytic_distribution\" groups=\"analytic.group_analytic_accounting\" options=\"{'product_field': 'product_id', 'business_domain': 'purchase_order'}\"/>\n                                            </group>\n                                            <group>\n                                            <notebook colspan=\"4\">\n                                                <page string=\"Ghi chú\" name=\"notes\">\n                                                    <field name=\"name\"/>\n                                                </page>\n                                                <page string=\"Hoá đơn và lô hàng sắp về\" name=\"invoices_incoming_shiptments\">\n                                                    <field name=\"invoice_lines\"/>\n                                                </page>\n                                            </notebook>\n                                            </group>\n                                        </group>\n                                        <label for=\"name\" string=\"Tên Mục (ví dụ: Sản phẩm, Dịch vụ)\" attrs=\"{'invisible': [('display_type', '!=', 'line_section')]}\"/>\n                                        <label for=\"name\" string=\"Ghi chú\" attrs=\"{'invisible': [('display_type', '!=', 'line_note')]}\"/>\n                                        <field name=\"name\" nolabel=\"1\" attrs=\"{'invisible': [('display_type', '=', False)]}\"/>\n                                 </form>\n                                 <kanban class=\"o_kanban_mobile\">\n                                     <field name=\"name\"/>\n                                     <field name=\"product_id\"/>\n                                     <field name=\"product_qty\"/>\n                                     <field name=\"product_uom\" groups=\"uom.group_uom\"/>\n                                     <field name=\"price_subtotal\"/>\n                                     <field name=\"price_tax\" invisible=\"1\"/>\n                                     <field name=\"price_total\" invisible=\"1\"/>\n                                     <field name=\"price_unit\"/>\n                                     <field name=\"display_type\"/>\n                                     <field name=\"taxes_id\" invisible=\"1\"/>\n                                     <templates>\n                                         <t t-name=\"kanban-box\">\n                                             <div t-attf-class=\"oe_kanban_card oe_kanban_global_click {{ record.display_type.raw_value ? 'o_is_' + record.display_type.raw_value : '' }}\">\n                                                 <t t-if=\"!record.display_type.raw_value\">\n                                                     <div class=\"row\">\n                                                         <div class=\"col-8\">\n                                                             <strong>\n                                                                 <span t-esc=\"record.product_id.value\"/>\n                                                             </strong>\n                                                         </div>\n                                                         <div class=\"col-4\">\n                                                             <strong>\n                                                                 <span t-esc=\"record.price_subtotal.value\" class=\"float-end text-end\"/>\n                                                             </strong>\n                                                         </div>\n                                                     </div>\n                                                     <div class=\"row\">\n                                                         <div class=\"col-12 text-muted\">\n                                                             <span>\n                                                                 Số lượng:\n                                                                 <t t-esc=\"record.product_qty.value\"/>\n                                                                 <t t-esc=\"record.product_uom.value\" groups=\"uom.group_uom\"/>\n                                                             </span>\n                                                         </div>\n                                                     </div>\n                                                     <div class=\"row\">\n                                                         <div class=\"col-12 text-muted\">\n                                                             <span>\n                                                                 Đơn Giá:\n                                                                 <field name=\"price_unit\"/>\n                                                             </span>\n                                                         </div>\n                                                     </div>\n                                                 </t>\n                                                 <div t-elif=\"record.display_type.raw_value === 'line_section' || record.display_type.raw_value === 'line_note'\" class=\"row\">\n                                                     <div class=\"col-12\">\n                                                         <span t-esc=\"record.name.value\"/>\n                                                     </div>\n                                                 </div>\n                                             </div>\n                                         </t>\n                                     </templates>\n                                 </kanban>\n                            </field>\n                            <group>\n                                <group>\n                                    <field colspan=\"2\" name=\"notes\" nolabel=\"1\" placeholder=\"Xác định điều khoản và điều kiện của bạn...\"/>\n                                </group>\n                                <group class=\"oe_subtotal_footer oe_right\">\n                                    <field name=\"tax_totals\" widget=\"account-tax-totals-field\" nolabel=\"1\" colspan=\"2\" readonly=\"1\"/>\n                                </group>\n                            </group>\n                            <div class=\"clearfix\"/>\n                        </page>\n                        <page string=\"Thông tin khác\" name=\"purchase_delivery_invoice\">\n                            <group>\n                                <group name=\"other_info\">\n                                    <field name=\"user_id\" domain=\"[('share', '=', False)]\" widget=\"many2one_avatar_user\"/>\n                                    <field name=\"company_id\" groups=\"base.group_multi_company\" options=\"{'no_create': True}\"/>\n                                    <field name=\"origin\"/>\n                                </group>\n                                <group name=\"invoice_info\">\n                                    <field name=\"invoice_status\" attrs=\"{'invisible': [('state', 'in', ('draft', 'sent', 'to approve', 'cancel'))]}\"/>\n                                    <field name=\"payment_term_id\" attrs=\"{'readonly': ['|', ('invoice_status','=', 'invoiced'), ('state', '=', 'done')]}\" options=\"{'no_create': True}\"/>\n                                    <field name=\"fiscal_position_id\" options=\"{'no_create': True}\" attrs=\"{'readonly': ['|', ('invoice_status','=', 'invoiced'), ('state', '=', 'done')]}\"/>\n                                </group>\n                            </group>\n                        </page>\n                    </notebook>\n                </sheet>\n                <div class=\"oe_chatter\">\n                    <field name=\"message_follower_ids\"/>\n                    <field name=\"activity_ids\"/>\n                    <field name=\"message_ids\"/>\n                </div>\n                </form>"}