UncaughtPromiseError > OwlError
Uncaught Promise > Failed to compile template "__template__74": Unexpected identifier 'Object'
generated code:
function(app, bdom, helpers) {
let { text, createBlock, list, multi, html, toggler, comment } = bdom;
let { capture, markRaw, isBoundary, withDefault, setContextValue } = helpers;
// Template name: "__template__74"
const comp1 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp2 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp3 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp4 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp5 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp6 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp7 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp8 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp9 = app.createComponent(`StatusBarButtons`, true, true, false, []);
const comp10 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","showTooltip"]);
const comp11 = app.createComponent(`Widget`, true, false, false, ["record","name","widgetInfo"]);
const comp12 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp13 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp14 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp15 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp16 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp17 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp18 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp19 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp20 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp21 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp22 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp23 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp24 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp25 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp26 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp27 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp28 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp29 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp30 = app.createComponent(`OuterGroup`, true, true, false, []);
const comp31 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp32 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp33 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp34 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp35 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp36 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp37 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp38 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp39 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp40 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp41 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type"]);
const comp42 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp43 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp44 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp45 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp46 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp47 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp48 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp49 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp50 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp51 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp52 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp53 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp54 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp55 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp56 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp57 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp58 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp59 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp60 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp61 = app.createComponent(`OuterGroup`, true, true, false, []);
const comp62 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp63 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp64 = app.createComponent(`Notebook`, true, true, false, ["defaultPage","onPageUpdate","anchors"]);
const comp65 = app.createComponent(null, false, false, false, ["has_activities","hasAttachmentPreview","hasParentReloadOnAttachmentsChanged","hasParentReloadOnFollowersUpdate","hasParentReloadOnMessagePosted","isAttachmentBoxVisibleInitially","threadId","threadModel","webRecord","saveRecord","highlightMessageId","isChatterAside","isInFormSheetBg"]);
let block1 = createBlock(`<div class="o_form_renderer" block-attribute-0="class" block-attribute-1="class" block-ref="2"><div class="o_form_sheet_bg"><div class="o_form_statusbar position-relative d-flex justify-content-between mb-0 mb-md-2 pb-2 pb-md-0"><block-child-0/><block-child-1/></div><div class="o_form_sheet position-relative"><block-child-2/><div class="oe_title"><block-child-3/><block-child-4/><h1><block-child-5/></h1></div><block-child-6/><block-child-7/></div></div><block-child-8/></div>`);
let block24 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">طريقة الإهلاك</div>`);
let block28 = createBlock(`<div class="o_row" block-attribute-0="class"><block-child-0/><block-child-1/></div>`);
let block33 = createBlock(`<div block-attribute-0="class"><block-child-0/></div>`);
let block36 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">المحاسبة</div>`);
let block45 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">قيم الأصول</div>`);
let block52 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">القيم الحالية</div>`);
let block55 = createBlock(`<span block-attribute-0="class"><block-child-0/><block-child-1/></span>`);
let block57 = createBlock(`<span> (شاملة <block-child-0/> قابل للإهلاك) </span>`);
let block60 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">طريقة الإهلاك</div>`);
let block64 = createBlock(`<div class="o_row" block-attribute-0="class"><block-child-0/><block-child-1/></div>`);
let block70 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">المحاسبة</div>`);
let block78 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">القيمة عند الاستيراد</div>`);
let block86 = createBlock(`<div class="o-mail-ChatterContainer o-mail-Form-chatter" block-attribute-0="class"><block-child-0/></div>`);
function slot1(ctx, node, key = "") {
let b3;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b3 = comp1({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `تأكيد`,clickParams: {"name":"validate","type":"object"},attrs: {"invisible":"state != 'draft'","data-hotkey":"q"},defaultRank: 'btn-secondary'}, key + `__1`, node, this, null);
}
return multi([b3]);
}
function slot2(ctx, node, key = "") {
let b5;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b5 = comp2({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `احتساب الإهلاك`,clickParams: {"type":"object","name":"compute_depreciation_board"},attrs: {"invisible":"state != 'draft'","data-hotkey":"d"},defaultRank: 'btn-secondary'}, key + `__2`, node, this, null);
}
return multi([b5]);
}
function slot3(ctx, node, key = "") {
let b7;
if (!ctx['__comp__'].evaluateBooleanExpr("depreciation_move_ids or state not in ['open', 'cancelled']",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b7 = comp3({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `تعيين كمسودة`,clickParams: {"name":"set_to_draft","type":"object"},attrs: {"invisible":"depreciation_move_ids or state not in ['open', 'cancelled']"},defaultRank: 'btn-secondary'}, key + `__3`, node, this, null);
}
return multi([b7]);
}
function slot4(ctx, node, key = "") {
let b9;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'close'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b9 = comp4({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `التعيين كجارٍ`,clickParams: {"name":"set_to_running","type":"object"},attrs: {"invisible":"state != 'close'"},defaultRank: 'btn-secondary'}, key + `__4`, node, this, null);
}
return multi([b9]);
}
function slot5(ctx, node, key = "") {
let b11;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'paused'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b11 = comp5({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `متابعة الإهلاك`,clickParams: {"name":"resume_after_pause","type":"object"},attrs: {"invisible":"state != 'paused'"},defaultRank: 'btn-secondary'}, key + `__5`, node, this, null);
}
return multi([b11]);
}
function slot6(ctx, node, key = "") {
let b13;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b13 = comp6({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `تعديل الإهلاكات`,clickParams: {"name":"action_asset_modify","type":"object"},attrs: {"invisible":"state != 'open'","data-hotkey":"e"},defaultRank: 'btn-secondary'}, key + `__6`, node, this, null);
}
return multi([b13]);
}
function slot7(ctx, node, key = "") {
let b15;
if (!ctx['__comp__'].evaluateBooleanExpr("state not in ('open', 'paused', 'close')",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b15 = comp7({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `حفظ كنموذج`,clickParams: {"name":"action_save_model","type":"object"},attrs: {"invisible":"state not in ('open', 'paused', 'close')","data-hotkey":"m"},defaultRank: 'btn-secondary'}, key + `__7`, node, this, null);
}
return multi([b15]);
}
function slot8(ctx, node, key = "") {
let b17;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b17 = comp8({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `إلغاء الأصل`,clickParams: {"name":"set_to_cancelled","type":"object"},attrs: {"invisible":"state != 'open'","data-hotkey":"x"},defaultRank: 'btn-secondary'}, key + `__8`, node, this, null);
}
return multi([b17]);
}
function slot9(ctx, node, key = "") {
const ctx3 = capture(ctx);
return comp23({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot10.bind(this), __ctx: ctx3}, 'item_0': {__render: slot11.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 0, props: {id:'method_0',fieldName:'method',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot12.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 1, props: {id:'method_progress_factor_0',fieldName:'method_progress_factor',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method_progress_factor.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("method == 'linear'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot13.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 2, subType: 'label', isVisible: true, itemSpan: 1}, 'item_3': {__render: slot14.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot15.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 4, props: {id:'prorata_computation_type_0',fieldName:'prorata_computation_type',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_computation_type.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot16.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 5, subType: 'label', isVisible: true, itemSpan: 1}, 'item_6': {__render: slot17.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 6, isVisible: true, itemSpan: 1}})}, key + `__23`, node, this, null);
}
function slot10(ctx, node, key = "") {
return block24();
}
function slot11(ctx, node, key = "") {
return comp15({id: 'method_0',name: 'method',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__15`, node, this, null);
}
function slot12(ctx, node, key = "") {
return comp16({id: 'method_progress_factor_0',name: 'method_progress_factor',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: ctx['scope']&&ctx['scope'].className}, key + `__16`, node, this, null);
}
function slot13(ctx, node, key = "") {
return comp17({id: 'method_number_0',fieldName: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],className: "",string: `المدة`}, key + `__17`, node, this, null);
}
function slot14(ctx, node, key = "") {
let attr3 = (ctx['scope']&&ctx['scope'].className||"");
const b29 = comp18({id: 'method_number_0',name: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__18`, node, this, null);
const b30 = comp19({id: 'method_period_0',name: 'method_period',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_period_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__19`, node, this, null);
return block28([attr3], [b29, b30]);
}
function slot15(ctx, node, key = "") {
return comp20({id: 'prorata_computation_type_0',name: 'prorata_computation_type',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__20`, node, this, null);
}
function slot16(ctx, node, key = "") {
return comp21({id: 'salvage_value_pct_0',fieldName: 'salvage_value_pct',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_pct_0'],className: "",string: ctx['__comp__'].props.record.fields['salvage_value_pct'].string}, key + `__21`, node, this, null);
}
function slot17(ctx, node, key = "") {
let attr4 = (ctx['scope']&&ctx['scope'].className||"");
const b34 = comp22({id: 'salvage_value_pct_0',name: 'salvage_value_pct',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_pct_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: 'oe_inline'}, key + `__22`, node, this, null);
return block33([attr4], [b34]);
}
function slot18(ctx, node, key = "") {
const ctx4 = capture(ctx);
return comp29({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot19.bind(this), __ctx: ctx4}, 'item_0': {__render: slot20.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 0, props: {id:'company_id_1',fieldName:'company_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.company_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['company_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot21.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 1, props: {id:'account_asset_id_1',fieldName:'account_asset_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_asset_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("not display_account_asset_id",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot22.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 2, props: {id:'account_depreciation_id_0',fieldName:'account_depreciation_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_3': {__render: slot23.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 3, props: {id:'account_depreciation_expense_id_0',fieldName:'account_depreciation_expense_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_expense_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot24.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 4, props: {id:'journal_id_0',fieldName:'journal_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.journal_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['journal_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__29`, node, this, null);
}
function slot19(ctx, node, key = "") {
return block36();
}
function slot20(ctx, node, key = "") {
return comp24({id: 'company_id_1',name: 'company_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['company_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__24`, node, this, null);
}
function slot21(ctx, node, key = "") {
return comp25({id: 'account_asset_id_1',name: 'account_asset_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__25`, node, this, null);
}
function slot22(ctx, node, key = "") {
return comp26({id: 'account_depreciation_id_0',name: 'account_depreciation_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__26`, node, this, null);
}
function slot23(ctx, node, key = "") {
return comp27({id: 'account_depreciation_expense_id_0',name: 'account_depreciation_expense_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__27`, node, this, null);
}
function slot24(ctx, node, key = "") {
return comp28({id: 'journal_id_0',name: 'journal_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['journal_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__28`, node, this, null);
}
function slot25(ctx, node, key = "") {
const ctx6 = capture(ctx);
return comp61({slots: markRaw({'item_0': {__render: slot26.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 0, isVisible: true, itemSpan: 1}, 'item_1': {__render: slot27.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}, 'item_2': {__render: slot34.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 2, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}, 'item_3': {__render: slot39.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot47.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 4, isVisible: true, itemSpan: 1}, 'item_5': {__render: slot55.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 5, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}})}, key + `__61`, node, this, null);
}
function slot26(ctx, node, key = "") {
return comp31({id: 'asset_properties_0',name: 'asset_properties',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['asset_properties_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__31`, node, this, null);
}
function slot27(ctx, node, key = "") {
const ctx7 = capture(ctx);
return comp37({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot28.bind(this), __ctx: ctx7}, 'item_0': {__render: slot29.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 0, props: {id:'original_value_0',fieldName:'original_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.original_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['original_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_1': {__render: slot30.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 1, props: {id:'gross_increase_value_0',fieldName:'gross_increase_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.gross_increase_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['gross_increase_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model' or gross_increase_value == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot31.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 2, props: {id:'acquisition_date_0',fieldName:'acquisition_date',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.acquisition_date.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['acquisition_date_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_3': {__render: slot32.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 3, props: {id:'model_id_0',fieldName:'model_id',record:ctx['__comp__'].props.record,string:`نموذج الأصل`,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['model_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot33.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 4, props: {id:'asset_group_id_0',fieldName:'asset_group_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.asset_group_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['asset_group_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__37`, node, this, null);
}
function slot28(ctx, node, key = "") {
return block45();
}
function slot29(ctx, node, key = "") {
return comp32({id: 'original_value_0',name: 'original_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['original_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__32`, node, this, null);
}
function slot30(ctx, node, key = "") {
return comp33({id: 'gross_increase_value_0',name: 'gross_increase_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['gross_increase_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__33`, node, this, null);
}
function slot31(ctx, node, key = "") {
return comp34({id: 'acquisition_date_0',name: 'acquisition_date',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['acquisition_date_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__34`, node, this, null);
}
function slot32(ctx, node, key = "") {
return comp35({id: 'model_id_0',name: 'model_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['model_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__35`, node, this, null);
}
function slot33(ctx, node, key = "") {
return comp36({id: 'asset_group_id_0',name: 'asset_group_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['asset_group_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__36`, node, this, null);
}
function slot34(ctx, node, key = "") {
const ctx8 = capture(ctx);
return comp42({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot35.bind(this), __ctx: ctx8}, 'item_0': {__render: slot36.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 0, props: {id:'salvage_value_0',fieldName:'salvage_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.salvage_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot37.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 1, subType: 'label', isVisible: true, itemSpan: 1}, 'item_2': {__render: slot38.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 2, isVisible: true, itemSpan: 1}})}, key + `__42`, node, this, null);
}
function slot35(ctx, node, key = "") {
return block52();
}
function slot36(ctx, node, key = "") {
return comp38({id: 'salvage_value_0',name: 'salvage_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__38`, node, this, null);
}
function slot37(ctx, node, key = "") {
return comp39({id: 'book_value_0',fieldName: 'book_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['book_value_0'],className: "",string: ctx['__comp__'].props.record.fields['book_value'].string}, key + `__39`, node, this, null);
}
function slot38(ctx, node, key = "") {
let b56, b57;
let attr5 = (ctx['scope']&&ctx['scope'].className||"");
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b56 = comp40({id: 'book_value_0',name: 'book_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['book_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: 'oe_inline'}, key + `__40`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("salvage_value == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
let b58;
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b58 = comp41({id: 'value_residual_0',name: 'value_residual',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['value_residual_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary'}, key + `__41`, node, this, null);
}
b57 = block57([], [b58]);
}
return block55([attr5], [b56, b57]);
}
function slot39(ctx, node, key = "") {
const ctx9 = capture(ctx);
return comp50({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot40.bind(this), __ctx: ctx9}, 'item_0': {__render: slot41.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 0, props: {id:'method_1',fieldName:'method',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot42.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 1, props: {id:'method_progress_factor_1',fieldName:'method_progress_factor',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method_progress_factor.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("method == 'linear'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot43.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 2, subType: 'label', isVisible: true, itemSpan: 1}, 'item_3': {__render: slot44.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot45.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 4, props: {id:'prorata_computation_type_1',fieldName:'prorata_computation_type',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_computation_type.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot46.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 5, props: {id:'prorata_date_0',fieldName:'prorata_date',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_date.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_date_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("prorata_computation_type == 'none'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}})}, key + `__50`, node, this, null);
}
function slot40(ctx, node, key = "") {
return block60();
}
function slot41(ctx, node, key = "") {
return comp43({id: 'method_1',name: 'method',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__43`, node, this, null);
}
function slot42(ctx, node, key = "") {
return comp44({id: 'method_progress_factor_1',name: 'method_progress_factor',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: ctx['scope']&&ctx['scope'].className}, key + `__44`, node, this, null);
}
function slot43(ctx, node, key = "") {
ctx = Object.create(ctx);
ctx[isBoundary] = 1
setContextValue(ctx, "addClass", ctx['scope']&&ctx['scope'].className);
return comp45({id: 'method_number_0',fieldName: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],className: ""+(ctx['addClass']?" "+ctx['addClass']:""),string: `المدة`}, key + `__45`, node, this, null);
}
function slot44(ctx, node, key = "") {
let attr6 = (ctx['scope']&&ctx['scope'].className||"");
const b65 = comp46({id: 'method_number_1',name: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: 'oe_inline'}, key + `__46`, node, this, null);
const b66 = comp47({id: 'method_period_1',name: 'method_period',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_period_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__47`, node, this, null);
return block64([attr6], [b65, b66]);
}
function slot45(ctx, node, key = "") {
return comp48({id: 'prorata_computation_type_1',name: 'prorata_computation_type',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__48`, node, this, null);
}
function slot46(ctx, node, key = "") {
return comp49({id: 'prorata_date_0',name: 'prorata_date',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_date_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__49`, node, this, null);
}
function slot47(ctx, node, key = "") {
const ctx10 = capture(ctx);
return comp57({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot48.bind(this), __ctx: ctx10}, 'item_0': {__render: slot49.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 0, props: {id:'company_id_2',fieldName:'company_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.company_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['company_id_2']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot50.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 1, props: {id:'account_asset_id_2',fieldName:'account_asset_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_asset_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_2']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("not display_account_asset_id",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot51.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 2, props: {id:'account_depreciation_id_1',fieldName:'account_depreciation_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_3': {__render: slot52.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 3, props: {id:'account_depreciation_expense_id_1',fieldName:'account_depreciation_expense_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_expense_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot53.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 4, props: {id:'journal_id_1',fieldName:'journal_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.journal_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['journal_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot54.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 5, props: {id:'analytic_distribution_0',fieldName:'analytic_distribution',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.analytic_distribution.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['analytic_distribution_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__57`, node, this, null);
}
function slot48(ctx, node, key = "") {
return block70();
}
function slot49(ctx, node, key = "") {
return comp51({id: 'company_id_2',name: 'company_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['company_id_2'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__51`, node, this, null);
}
function slot50(ctx, node, key = "") {
return comp52({id: 'account_asset_id_2',name: 'account_asset_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_2'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__52`, node, this, null);
}
function slot51(ctx, node, key = "") {
return comp53({id: 'account_depreciation_id_1',name: 'account_depreciation_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__53`, node, this, null);
}
function slot52(ctx, node, key = "") {
return comp54({id: 'account_depreciation_expense_id_1',name: 'account_depreciation_expense_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__54`, node, this, null);
}
function slot53(ctx, node, key = "") {
return comp55({id: 'journal_id_1',name: 'journal_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['journal_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__55`, node, this, null);
}
function slot54(ctx, node, key = "") {
return comp56({id: 'analytic_distribution_0',name: 'analytic_distribution',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['analytic_distribution_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'analytic_distribution',class: ctx['scope']&&ctx['scope'].className}, key + `__56`, node, this, null);
}
function slot55(ctx, node, key = "") {
const ctx11 = capture(ctx);
return comp60({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot56.bind(this), __ctx: ctx11}, 'item_0': {__render: slot57.bind(this), __ctx: ctx11, __scope: "scope", type: 'item', sequence: 0, props: {id:'already_depreciated_amount_import_0',fieldName:'already_depreciated_amount_import',record:ctx['__comp__'].props.record,string:`المبلغ المُهلَك`,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['already_depreciated_amount_import_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot58.bind(this), __ctx: ctx11, __scope: "scope", type: 'item', sequence: 1, props: {id:'vehicle_id_1',fieldName:'vehicle_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.vehicle_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['vehicle_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__60`, node, this, null);
}
function slot56(ctx, node, key = "") {
return block78();
}
function slot57(ctx, node, key = "") {
return comp58({id: 'already_depreciated_amount_import_0',name: 'already_depreciated_amount_import',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['already_depreciated_amount_import_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__58`, node, this, null);
}
function slot58(ctx, node, key = "") {
return comp59({id: 'vehicle_id_1',name: 'vehicle_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['vehicle_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__59`, node, this, null);
}
function slot59(ctx, node, key = "") {
return comp62({id: 'depreciation_move_ids_0',name: 'depreciation_move_ids',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['depreciation_move_ids_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__62`, node, this, null);
}
function slot60(ctx, node, key = "") {
return comp63({id: 'original_move_line_ids_0',name: 'original_move_line_ids',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['original_move_line_ids_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: 'original_move_line_ids_field'}, key + `__63`, node, this, null);
}
return function template(ctx, node, key = "") {
let b18, b19, b20, b21, b22, b23, b43, b85, b86;
let attr1 = ctx['__comp__'].props.class;
let attr2 = `${ctx['__comp__'].props.record.isInEdition?'o_form_editable':'o_form_readonly'} d-flex d-print-block ${ctx['__comp__'].uiService.size<6?"flex-column":"flex-nowrap h-100"} ${ctx['__comp__'].props.record.dirty?'o_form_dirty':!ctx['__comp__'].props.record.isNew?'o_form_saved':''}`;
let ref1 = (el) => this.__owl__.setRef((`compiled_view_root`), el);
if (!ctx['__comp__'].env.isSmall||ctx['__comp__'].env.inDialog) {
const ctx1 = capture(ctx);
b18 = comp9({slots: markRaw({'button_0': {__render: slot1.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_1': {__render: slot2.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_2': {__render: slot3.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("depreciation_move_ids or state not in ['open', 'cancelled']",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_3': {__render: slot4.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'close'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_4': {__render: slot5.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'paused'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_5': {__render: slot6.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_6': {__render: slot7.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state not in ('open', 'paused', 'close')",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_7': {__render: slot8.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}})}, key + `__9`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b19 = comp10({id: 'state_1',name: 'state',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['state_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'statusbar',showTooltip: true}, key + `__10`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("active",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b20 = comp11({record: ctx['__comp__'].props.record,name: 'web_ribbon',widgetInfo: ctx['__comp__'].props.archInfo.widgetNodes['widget_1']}, key + `__11`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b21 = comp12({id: 'name_0',fieldName: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],className: "",string: ctx['__comp__'].props.record.fields['name'].string}, key + `__12`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b22 = comp13({id: 'name_0',fieldName: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],className: "",string: `اسم نموذج الأصل`}, key + `__13`, node, this, null);
}
b23 = comp14({id: 'name_0',name: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__14`, node, this, null);
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
const ctx2 = capture(ctx);
b43 = comp30({slots: markRaw({'item_0': {__render: slot9.bind(this), __ctx: ctx2, __scope: "scope", type: 'item', sequence: 0, isVisible: true, itemSpan: 1}, 'item_1': {__render: slot18.bind(this), __ctx: ctx2, __scope: "scope", type: 'item', sequence: 1, isVisible: true, itemSpan: 1}})}, key + `__30`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
const v1 = ctx['__comp__'];
const ctx5 = capture(ctx);
b85 = comp64({defaultPage: ctx['__comp__'].props.record.isNew?undefined:ctx['__comp__'].props.activeNotebookPages[0],onPageUpdate: (_page)=>v1.props.onNotebookPageChange(0,_page),anchors: {outstanding:[ctx['object']Object]},slots: markRaw({'page_1': {__render: slot25.bind(this), __ctx: ctx5, title: `أصل`, name: `main_page`, isVisible: true}, 'page_2': {__render: slot59.bind(this), __ctx: ctx5, title: `اللائحة الاستهلاكية`, name: `depreciation_board`, isVisible: !ctx['__comp__'].evaluateBooleanExpr("total_depreciation_entries_count == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'page_3': {__render: slot60.bind(this), __ctx: ctx5, title: `الفواتير`, name: `related_items`, isVisible: true}})}, key + `__64`, node, this, null);
}
if (!ctx['__comp__'].env.inDialog&&(!["COMBO","NONE"].includes(ctx['__comp__'].mailLayout(false)))) {
let attr7 = (["SIDE_CHATTER","EXTERNAL_COMBO_XXL"].includes(ctx['__comp__'].mailLayout(false))?"o-aside w-print-100":"mt-4 mt-md-0");
const Comp1 = ctx['__comp__'].mailComponents.Chatter;
const b87 = toggler(Comp1, comp65({has_activities: ctx['__comp__'].props.archInfo.has_activities,hasAttachmentPreview: false,hasParentReloadOnAttachmentsChanged: false,hasParentReloadOnFollowersUpdate: false,hasParentReloadOnMessagePosted: false,isAttachmentBoxVisibleInitially: false,threadId: ctx['__comp__'].props.record.resId||undefined,threadModel: ctx['__comp__'].props.record.resModel,webRecord: ctx['__comp__'].props.record,saveRecord: ctx['__comp__'].props.saveRecord,highlightMessageId: ctx['__comp__'].highlightMessageId,isChatterAside: ["SIDE_CHATTER","EXTERNAL_COMBO_XXL","EXTERNAL_COMBO"].includes(ctx['__comp__'].mailLayout(false)),isInFormSheetBg: ["COMBO","BOTTOM_CHATTER"].includes(ctx['__comp__'].mailLayout(false))}, (Comp1).name + key + `__65`, node, this, Comp1));
b86 = block86([attr7], [b87]);
}
return block1([attr1, attr2, ref1], [b18, b19, b20, b21, b22, b23, b43, b85, b86]);
}
}
Occured on alfunoongroup.odoo.com on ٢٠٢٤-١٢-١٥ ١٠:٤٠:٠٢ GMT
OwlError: Failed to compile template "__template__74": Unexpected identifier 'Object'
generated code:
function(app, bdom, helpers) {
let { text, createBlock, list, multi, html, toggler, comment } = bdom;
let { capture, markRaw, isBoundary, withDefault, setContextValue } = helpers;
// Template name: "__template__74"
const comp1 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp2 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp3 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp4 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp5 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp6 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp7 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp8 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp9 = app.createComponent(`StatusBarButtons`, true, true, false, []);
const comp10 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","showTooltip"]);
const comp11 = app.createComponent(`Widget`, true, false, false, ["record","name","widgetInfo"]);
const comp12 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp13 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp14 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp15 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp16 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp17 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp18 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp19 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp20 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp21 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp22 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp23 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp24 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp25 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp26 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp27 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp28 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp29 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp30 = app.createComponent(`OuterGroup`, true, true, false, []);
const comp31 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp32 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp33 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp34 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp35 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp36 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp37 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp38 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp39 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp40 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp41 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type"]);
const comp42 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp43 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp44 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp45 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp46 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp47 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp48 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp49 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp50 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp51 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp52 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp53 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp54 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp55 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp56 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp57 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp58 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp59 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp60 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp61 = app.createComponent(`OuterGroup`, true, true, false, []);
const comp62 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp63 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp64 = app.createComponent(`Notebook`, true, true, false, ["defaultPage","onPageUpdate","anchors"]);
const comp65 = app.createComponent(null, false, false, false, ["has_activities","hasAttachmentPreview","hasParentReloadOnAttachmentsChanged","hasParentReloadOnFollowersUpdate","hasParentReloadOnMessagePosted","isAttachmentBoxVisibleInitially","threadId","threadModel","webRecord","saveRecord","highlightMessageId","isChatterAside","isInFormSheetBg"]);
let block1 = createBlock(`<div class="o_form_renderer" block-attribute-0="class" block-attribute-1="class" block-ref="2"><div class="o_form_sheet_bg"><div class="o_form_statusbar position-relative d-flex justify-content-between mb-0 mb-md-2 pb-2 pb-md-0"><block-child-0/><block-child-1/></div><div class="o_form_sheet position-relative"><block-child-2/><div class="oe_title"><block-child-3/><block-child-4/><h1><block-child-5/></h1></div><block-child-6/><block-child-7/></div></div><block-child-8/></div>`);
let block24 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">طريقة الإهلاك</div>`);
let block28 = createBlock(`<div class="o_row" block-attribute-0="class"><block-child-0/><block-child-1/></div>`);
let block33 = createBlock(`<div block-attribute-0="class"><block-child-0/></div>`);
let block36 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">المحاسبة</div>`);
let block45 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">قيم الأصول</div>`);
let block52 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">القيم الحالية</div>`);
let block55 = createBlock(`<span block-attribute-0="class"><block-child-0/><block-child-1/></span>`);
let block57 = createBlock(`<span> (شاملة <block-child-0/> قابل للإهلاك) </span>`);
let block60 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">طريقة الإهلاك</div>`);
let block64 = createBlock(`<div class="o_row" block-attribute-0="class"><block-child-0/><block-child-1/></div>`);
let block70 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">المحاسبة</div>`);
let block78 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">القيمة عند الاستيراد</div>`);
let block86 = createBlock(`<div class="o-mail-ChatterContainer o-mail-Form-chatter" block-attribute-0="class"><block-child-0/></div>`);
function slot1(ctx, node, key = "") {
let b3;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b3 = comp1({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `تأكيد`,clickParams: {"name":"validate","type":"object"},attrs: {"invisible":"state != 'draft'","data-hotkey":"q"},defaultRank: 'btn-secondary'}, key + `__1`, node, this, null);
}
return multi([b3]);
}
function slot2(ctx, node, key = "") {
let b5;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b5 = comp2({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `احتساب الإهلاك`,clickParams: {"type":"object","name":"compute_depreciation_board"},attrs: {"invisible":"state != 'draft'","data-hotkey":"d"},defaultRank: 'btn-secondary'}, key + `__2`, node, this, null);
}
return multi([b5]);
}
function slot3(ctx, node, key = "") {
let b7;
if (!ctx['__comp__'].evaluateBooleanExpr("depreciation_move_ids or state not in ['open', 'cancelled']",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b7 = comp3({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `تعيين كمسودة`,clickParams: {"name":"set_to_draft","type":"object"},attrs: {"invisible":"depreciation_move_ids or state not in ['open', 'cancelled']"},defaultRank: 'btn-secondary'}, key + `__3`, node, this, null);
}
return multi([b7]);
}
function slot4(ctx, node, key = "") {
let b9;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'close'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b9 = comp4({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `التعيين كجارٍ`,clickParams: {"name":"set_to_running","type":"object"},attrs: {"invisible":"state != 'close'"},defaultRank: 'btn-secondary'}, key + `__4`, node, this, null);
}
return multi([b9]);
}
function slot5(ctx, node, key = "") {
let b11;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'paused'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b11 = comp5({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `متابعة الإهلاك`,clickParams: {"name":"resume_after_pause","type":"object"},attrs: {"invisible":"state != 'paused'"},defaultRank: 'btn-secondary'}, key + `__5`, node, this, null);
}
return multi([b11]);
}
function slot6(ctx, node, key = "") {
let b13;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b13 = comp6({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `تعديل الإهلاكات`,clickParams: {"name":"action_asset_modify","type":"object"},attrs: {"invisible":"state != 'open'","data-hotkey":"e"},defaultRank: 'btn-secondary'}, key + `__6`, node, this, null);
}
return multi([b13]);
}
function slot7(ctx, node, key = "") {
let b15;
if (!ctx['__comp__'].evaluateBooleanExpr("state not in ('open', 'paused', 'close')",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b15 = comp7({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `حفظ كنموذج`,clickParams: {"name":"action_save_model","type":"object"},attrs: {"invisible":"state not in ('open', 'paused', 'close')","data-hotkey":"m"},defaultRank: 'btn-secondary'}, key + `__7`, node, this, null);
}
return multi([b15]);
}
function slot8(ctx, node, key = "") {
let b17;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b17 = comp8({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `إلغاء الأصل`,clickParams: {"name":"set_to_cancelled","type":"object"},attrs: {"invisible":"state != 'open'","data-hotkey":"x"},defaultRank: 'btn-secondary'}, key + `__8`, node, this, null);
}
return multi([b17]);
}
function slot9(ctx, node, key = "") {
const ctx3 = capture(ctx);
return comp23({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot10.bind(this), __ctx: ctx3}, 'item_0': {__render: slot11.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 0, props: {id:'method_0',fieldName:'method',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot12.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 1, props: {id:'method_progress_factor_0',fieldName:'method_progress_factor',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method_progress_factor.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("method == 'linear'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot13.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 2, subType: 'label', isVisible: true, itemSpan: 1}, 'item_3': {__render: slot14.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot15.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 4, props: {id:'prorata_computation_type_0',fieldName:'prorata_computation_type',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_computation_type.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot16.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 5, subType: 'label', isVisible: true, itemSpan: 1}, 'item_6': {__render: slot17.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 6, isVisible: true, itemSpan: 1}})}, key + `__23`, node, this, null);
}
function slot10(ctx, node, key = "") {
return block24();
}
function slot11(ctx, node, key = "") {
return comp15({id: 'method_0',name: 'method',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__15`, node, this, null);
}
function slot12(ctx, node, key = "") {
return comp16({id: 'method_progress_factor_0',name: 'method_progress_factor',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: ctx['scope']&&ctx['scope'].className}, key + `__16`, node, this, null);
}
function slot13(ctx, node, key = "") {
return comp17({id: 'method_number_0',fieldName: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],className: "",string: `المدة`}, key + `__17`, node, this, null);
}
function slot14(ctx, node, key = "") {
let attr3 = (ctx['scope']&&ctx['scope'].className||"");
const b29 = comp18({id: 'method_number_0',name: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__18`, node, this, null);
const b30 = comp19({id: 'method_period_0',name: 'method_period',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_period_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__19`, node, this, null);
return block28([attr3], [b29, b30]);
}
function slot15(ctx, node, key = "") {
return comp20({id: 'prorata_computation_type_0',name: 'prorata_computation_type',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__20`, node, this, null);
}
function slot16(ctx, node, key = "") {
return comp21({id: 'salvage_value_pct_0',fieldName: 'salvage_value_pct',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_pct_0'],className: "",string: ctx['__comp__'].props.record.fields['salvage_value_pct'].string}, key + `__21`, node, this, null);
}
function slot17(ctx, node, key = "") {
let attr4 = (ctx['scope']&&ctx['scope'].className||"");
const b34 = comp22({id: 'salvage_value_pct_0',name: 'salvage_value_pct',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_pct_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: 'oe_inline'}, key + `__22`, node, this, null);
return block33([attr4], [b34]);
}
function slot18(ctx, node, key = "") {
const ctx4 = capture(ctx);
return comp29({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot19.bind(this), __ctx: ctx4}, 'item_0': {__render: slot20.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 0, props: {id:'company_id_1',fieldName:'company_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.company_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['company_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot21.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 1, props: {id:'account_asset_id_1',fieldName:'account_asset_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_asset_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("not display_account_asset_id",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot22.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 2, props: {id:'account_depreciation_id_0',fieldName:'account_depreciation_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_3': {__render: slot23.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 3, props: {id:'account_depreciation_expense_id_0',fieldName:'account_depreciation_expense_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_expense_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot24.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 4, props: {id:'journal_id_0',fieldName:'journal_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.journal_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['journal_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__29`, node, this, null);
}
function slot19(ctx, node, key = "") {
return block36();
}
function slot20(ctx, node, key = "") {
return comp24({id: 'company_id_1',name: 'company_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['company_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__24`, node, this, null);
}
function slot21(ctx, node, key = "") {
return comp25({id: 'account_asset_id_1',name: 'account_asset_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__25`, node, this, null);
}
function slot22(ctx, node, key = "") {
return comp26({id: 'account_depreciation_id_0',name: 'account_depreciation_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__26`, node, this, null);
}
function slot23(ctx, node, key = "") {
return comp27({id: 'account_depreciation_expense_id_0',name: 'account_depreciation_expense_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__27`, node, this, null);
}
function slot24(ctx, node, key = "") {
return comp28({id: 'journal_id_0',name: 'journal_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['journal_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__28`, node, this, null);
}
function slot25(ctx, node, key = "") {
const ctx6 = capture(ctx);
return comp61({slots: markRaw({'item_0': {__render: slot26.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 0, isVisible: true, itemSpan: 1}, 'item_1': {__render: slot27.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}, 'item_2': {__render: slot34.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 2, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}, 'item_3': {__render: slot39.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot47.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 4, isVisible: true, itemSpan: 1}, 'item_5': {__render: slot55.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 5, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}})}, key + `__61`, node, this, null);
}
function slot26(ctx, node, key = "") {
return comp31({id: 'asset_properties_0',name: 'asset_properties',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['asset_properties_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__31`, node, this, null);
}
function slot27(ctx, node, key = "") {
const ctx7 = capture(ctx);
return comp37({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot28.bind(this), __ctx: ctx7}, 'item_0': {__render: slot29.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 0, props: {id:'original_value_0',fieldName:'original_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.original_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['original_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_1': {__render: slot30.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 1, props: {id:'gross_increase_value_0',fieldName:'gross_increase_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.gross_increase_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['gross_increase_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model' or gross_increase_value == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot31.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 2, props: {id:'acquisition_date_0',fieldName:'acquisition_date',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.acquisition_date.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['acquisition_date_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_3': {__render: slot32.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 3, props: {id:'model_id_0',fieldName:'model_id',record:ctx['__comp__'].props.record,string:`نموذج الأصل`,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['model_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot33.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 4, props: {id:'asset_group_id_0',fieldName:'asset_group_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.asset_group_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['asset_group_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__37`, node, this, null);
}
function slot28(ctx, node, key = "") {
return block45();
}
function slot29(ctx, node, key = "") {
return comp32({id: 'original_value_0',name: 'original_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['original_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__32`, node, this, null);
}
function slot30(ctx, node, key = "") {
return comp33({id: 'gross_increase_value_0',name: 'gross_increase_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['gross_increase_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__33`, node, this, null);
}
function slot31(ctx, node, key = "") {
return comp34({id: 'acquisition_date_0',name: 'acquisition_date',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['acquisition_date_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__34`, node, this, null);
}
function slot32(ctx, node, key = "") {
return comp35({id: 'model_id_0',name: 'model_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['model_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__35`, node, this, null);
}
function slot33(ctx, node, key = "") {
return comp36({id: 'asset_group_id_0',name: 'asset_group_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['asset_group_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__36`, node, this, null);
}
function slot34(ctx, node, key = "") {
const ctx8 = capture(ctx);
return comp42({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot35.bind(this), __ctx: ctx8}, 'item_0': {__render: slot36.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 0, props: {id:'salvage_value_0',fieldName:'salvage_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.salvage_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot37.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 1, subType: 'label', isVisible: true, itemSpan: 1}, 'item_2': {__render: slot38.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 2, isVisible: true, itemSpan: 1}})}, key + `__42`, node, this, null);
}
function slot35(ctx, node, key = "") {
return block52();
}
function slot36(ctx, node, key = "") {
return comp38({id: 'salvage_value_0',name: 'salvage_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__38`, node, this, null);
}
function slot37(ctx, node, key = "") {
return comp39({id: 'book_value_0',fieldName: 'book_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['book_value_0'],className: "",string: ctx['__comp__'].props.record.fields['book_value'].string}, key + `__39`, node, this, null);
}
function slot38(ctx, node, key = "") {
let b56, b57;
let attr5 = (ctx['scope']&&ctx['scope'].className||"");
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b56 = comp40({id: 'book_value_0',name: 'book_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['book_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: 'oe_inline'}, key + `__40`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("salvage_value == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
let b58;
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b58 = comp41({id: 'value_residual_0',name: 'value_residual',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['value_residual_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary'}, key + `__41`, node, this, null);
}
b57 = block57([], [b58]);
}
return block55([attr5], [b56, b57]);
}
function slot39(ctx, node, key = "") {
const ctx9 = capture(ctx);
return comp50({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot40.bind(this), __ctx: ctx9}, 'item_0': {__render: slot41.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 0, props: {id:'method_1',fieldName:'method',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot42.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 1, props: {id:'method_progress_factor_1',fieldName:'method_progress_factor',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method_progress_factor.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("method == 'linear'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot43.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 2, subType: 'label', isVisible: true, itemSpan: 1}, 'item_3': {__render: slot44.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot45.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 4, props: {id:'prorata_computation_type_1',fieldName:'prorata_computation_type',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_computation_type.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot46.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 5, props: {id:'prorata_date_0',fieldName:'prorata_date',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_date.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_date_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("prorata_computation_type == 'none'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}})}, key + `__50`, node, this, null);
}
function slot40(ctx, node, key = "") {
return block60();
}
function slot41(ctx, node, key = "") {
return comp43({id: 'method_1',name: 'method',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__43`, node, this, null);
}
function slot42(ctx, node, key = "") {
return comp44({id: 'method_progress_factor_1',name: 'method_progress_factor',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: ctx['scope']&&ctx['scope'].className}, key + `__44`, node, this, null);
}
function slot43(ctx, node, key = "") {
ctx = Object.create(ctx);
ctx[isBoundary] = 1
setContextValue(ctx, "addClass", ctx['scope']&&ctx['scope'].className);
return comp45({id: 'method_number_0',fieldName: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],className: ""+(ctx['addClass']?" "+ctx['addClass']:""),string: `المدة`}, key + `__45`, node, this, null);
}
function slot44(ctx, node, key = "") {
let attr6 = (ctx['scope']&&ctx['scope'].className||"");
const b65 = comp46({id: 'method_number_1',name: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: 'oe_inline'}, key + `__46`, node, this, null);
const b66 = comp47({id: 'method_period_1',name: 'method_period',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_period_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__47`, node, this, null);
return block64([attr6], [b65, b66]);
}
function slot45(ctx, node, key = "") {
return comp48({id: 'prorata_computation_type_1',name: 'prorata_computation_type',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__48`, node, this, null);
}
function slot46(ctx, node, key = "") {
return comp49({id: 'prorata_date_0',name: 'prorata_date',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_date_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__49`, node, this, null);
}
function slot47(ctx, node, key = "") {
const ctx10 = capture(ctx);
return comp57({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot48.bind(this), __ctx: ctx10}, 'item_0': {__render: slot49.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 0, props: {id:'company_id_2',fieldName:'company_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.company_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['company_id_2']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot50.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 1, props: {id:'account_asset_id_2',fieldName:'account_asset_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_asset_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_2']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("not display_account_asset_id",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot51.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 2, props: {id:'account_depreciation_id_1',fieldName:'account_depreciation_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_3': {__render: slot52.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 3, props: {id:'account_depreciation_expense_id_1',fieldName:'account_depreciation_expense_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_expense_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot53.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 4, props: {id:'journal_id_1',fieldName:'journal_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.journal_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['journal_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot54.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 5, props: {id:'analytic_distribution_0',fieldName:'analytic_distribution',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.analytic_distribution.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['analytic_distribution_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__57`, node, this, null);
}
function slot48(ctx, node, key = "") {
return block70();
}
function slot49(ctx, node, key = "") {
return comp51({id: 'company_id_2',name: 'company_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['company_id_2'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__51`, node, this, null);
}
function slot50(ctx, node, key = "") {
return comp52({id: 'account_asset_id_2',name: 'account_asset_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_2'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__52`, node, this, null);
}
function slot51(ctx, node, key = "") {
return comp53({id: 'account_depreciation_id_1',name: 'account_depreciation_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__53`, node, this, null);
}
function slot52(ctx, node, key = "") {
return comp54({id: 'account_depreciation_expense_id_1',name: 'account_depreciation_expense_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__54`, node, this, null);
}
function slot53(ctx, node, key = "") {
return comp55({id: 'journal_id_1',name: 'journal_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['journal_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__55`, node, this, null);
}
function slot54(ctx, node, key = "") {
return comp56({id: 'analytic_distribution_0',name: 'analytic_distribution',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['analytic_distribution_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'analytic_distribution',class: ctx['scope']&&ctx['scope'].className}, key + `__56`, node, this, null);
}
function slot55(ctx, node, key = "") {
const ctx11 = capture(ctx);
return comp60({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot56.bind(this), __ctx: ctx11}, 'item_0': {__render: slot57.bind(this), __ctx: ctx11, __scope: "scope", type: 'item', sequence: 0, props: {id:'already_depreciated_amount_import_0',fieldName:'already_depreciated_amount_import',record:ctx['__comp__'].props.record,string:`المبلغ المُهلَك`,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['already_depreciated_amount_import_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot58.bind(this), __ctx: ctx11, __scope: "scope", type: 'item', sequence: 1, props: {id:'vehicle_id_1',fieldName:'vehicle_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.vehicle_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['vehicle_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__60`, node, this, null);
}
function slot56(ctx, node, key = "") {
return block78();
}
function slot57(ctx, node, key = "") {
return comp58({id: 'already_depreciated_amount_import_0',name: 'already_depreciated_amount_import',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['already_depreciated_amount_import_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__58`, node, this, null);
}
function slot58(ctx, node, key = "") {
return comp59({id: 'vehicle_id_1',name: 'vehicle_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['vehicle_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__59`, node, this, null);
}
function slot59(ctx, node, key = "") {
return comp62({id: 'depreciation_move_ids_0',name: 'depreciation_move_ids',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['depreciation_move_ids_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__62`, node, this, null);
}
function slot60(ctx, node, key = "") {
return comp63({id: 'original_move_line_ids_0',name: 'original_move_line_ids',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['original_move_line_ids_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: 'original_move_line_ids_field'}, key + `__63`, node, this, null);
}
return function template(ctx, node, key = "") {
let b18, b19, b20, b21, b22, b23, b43, b85, b86;
let attr1 = ctx['__comp__'].props.class;
let attr2 = `${ctx['__comp__'].props.record.isInEdition?'o_form_editable':'o_form_readonly'} d-flex d-print-block ${ctx['__comp__'].uiService.size<6?"flex-column":"flex-nowrap h-100"} ${ctx['__comp__'].props.record.dirty?'o_form_dirty':!ctx['__comp__'].props.record.isNew?'o_form_saved':''}`;
let ref1 = (el) => this.__owl__.setRef((`compiled_view_root`), el);
if (!ctx['__comp__'].env.isSmall||ctx['__comp__'].env.inDialog) {
const ctx1 = capture(ctx);
b18 = comp9({slots: markRaw({'button_0': {__render: slot1.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_1': {__render: slot2.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_2': {__render: slot3.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("depreciation_move_ids or state not in ['open', 'cancelled']",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_3': {__render: slot4.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'close'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_4': {__render: slot5.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'paused'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_5': {__render: slot6.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_6': {__render: slot7.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state not in ('open', 'paused', 'close')",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_7': {__render: slot8.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}})}, key + `__9`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b19 = comp10({id: 'state_1',name: 'state',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['state_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'statusbar',showTooltip: true}, key + `__10`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("active",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b20 = comp11({record: ctx['__comp__'].props.record,name: 'web_ribbon',widgetInfo: ctx['__comp__'].props.archInfo.widgetNodes['widget_1']}, key + `__11`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b21 = comp12({id: 'name_0',fieldName: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],className: "",string: ctx['__comp__'].props.record.fields['name'].string}, key + `__12`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b22 = comp13({id: 'name_0',fieldName: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],className: "",string: `اسم نموذج الأصل`}, key + `__13`, node, this, null);
}
b23 = comp14({id: 'name_0',name: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__14`, node, this, null);
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
const ctx2 = capture(ctx);
b43 = comp30({slots: markRaw({'item_0': {__render: slot9.bind(this), __ctx: ctx2, __scope: "scope", type: 'item', sequence: 0, isVisible: true, itemSpan: 1}, 'item_1': {__render: slot18.bind(this), __ctx: ctx2, __scope: "scope", type: 'item', sequence: 1, isVisible: true, itemSpan: 1}})}, key + `__30`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
const v1 = ctx['__comp__'];
const ctx5 = capture(ctx);
b85 = comp64({defaultPage: ctx['__comp__'].props.record.isNew?undefined:ctx['__comp__'].props.activeNotebookPages[0],onPageUpdate: (_page)=>v1.props.onNotebookPageChange(0,_page),anchors: {outstanding:[ctx['object']Object]},slots: markRaw({'page_1': {__render: slot25.bind(this), __ctx: ctx5, title: `أصل`, name: `main_page`, isVisible: true}, 'page_2': {__render: slot59.bind(this), __ctx: ctx5, title: `اللائحة الاستهلاكية`, name: `depreciation_board`, isVisible: !ctx['__comp__'].evaluateBooleanExpr("total_depreciation_entries_count == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'page_3': {__render: slot60.bind(this), __ctx: ctx5, title: `الفواتير`, name: `related_items`, isVisible: true}})}, key + `__64`, node, this, null);
}
if (!ctx['__comp__'].env.inDialog&&(!["COMBO","NONE"].includes(ctx['__comp__'].mailLayout(false)))) {
let attr7 = (["SIDE_CHATTER","EXTERNAL_COMBO_XXL"].includes(ctx['__comp__'].mailLayout(false))?"o-aside w-print-100":"mt-4 mt-md-0");
const Comp1 = ctx['__comp__'].mailComponents.Chatter;
const b87 = toggler(Comp1, comp65({has_activities: ctx['__comp__'].props.archInfo.has_activities,hasAttachmentPreview: false,hasParentReloadOnAttachmentsChanged: false,hasParentReloadOnFollowersUpdate: false,hasParentReloadOnMessagePosted: false,isAttachmentBoxVisibleInitially: false,threadId: ctx['__comp__'].props.record.resId||undefined,threadModel: ctx['__comp__'].props.record.resModel,webRecord: ctx['__comp__'].props.record,saveRecord: ctx['__comp__'].props.saveRecord,highlightMessageId: ctx['__comp__'].highlightMessageId,isChatterAside: ["SIDE_CHATTER","EXTERNAL_COMBO_XXL","EXTERNAL_COMBO"].includes(ctx['__comp__'].mailLayout(false)),isInFormSheetBg: ["COMBO","BOTTOM_CHATTER"].includes(ctx['__comp__'].mailLayout(false))}, (Comp1).name + key + `__65`, node, this, Comp1));
b86 = block86([attr7], [b87]);
}
return block1([attr1, attr2, ref1], [b18, b19, b20, b21, b22, b23, b43, b85, b86]);
}
}
Error: Failed to compile template "__template__74": Unexpected identifier 'Object'
generated code:
function(app, bdom, helpers) {
let { text, createBlock, list, multi, html, toggler, comment } = bdom;
let { capture, markRaw, isBoundary, withDefault, setContextValue } = helpers;
// Template name: "__template__74"
const comp1 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp2 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp3 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp4 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp5 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp6 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp7 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp8 = app.createComponent(`ViewButton`, true, false, false, ["tag","record","className","string","clickParams","attrs","defaultRank"]);
const comp9 = app.createComponent(`StatusBarButtons`, true, true, false, []);
const comp10 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","showTooltip"]);
const comp11 = app.createComponent(`Widget`, true, false, false, ["record","name","widgetInfo"]);
const comp12 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp13 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp14 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp15 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp16 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp17 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp18 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp19 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp20 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp21 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp22 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp23 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp24 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp25 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp26 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp27 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp28 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp29 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp30 = app.createComponent(`OuterGroup`, true, true, false, []);
const comp31 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp32 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp33 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp34 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp35 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp36 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp37 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp38 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp39 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp40 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp41 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type"]);
const comp42 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp43 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp44 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp45 = app.createComponent(`FormLabel`, true, false, false, ["id","fieldName","record","fieldInfo","className","string"]);
const comp46 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp47 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp48 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp49 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp50 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp51 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp52 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp53 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp54 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp55 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp56 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","type","class"]);
const comp57 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp58 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp59 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp60 = app.createComponent(`InnerGroup`, true, true, false, ["class"]);
const comp61 = app.createComponent(`OuterGroup`, true, true, false, []);
const comp62 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly"]);
const comp63 = app.createComponent(`Field`, true, false, false, ["id","name","record","fieldInfo","readonly","class"]);
const comp64 = app.createComponent(`Notebook`, true, true, false, ["defaultPage","onPageUpdate","anchors"]);
const comp65 = app.createComponent(null, false, false, false, ["has_activities","hasAttachmentPreview","hasParentReloadOnAttachmentsChanged","hasParentReloadOnFollowersUpdate","hasParentReloadOnMessagePosted","isAttachmentBoxVisibleInitially","threadId","threadModel","webRecord","saveRecord","highlightMessageId","isChatterAside","isInFormSheetBg"]);
let block1 = createBlock(`<div class="o_form_renderer" block-attribute-0="class" block-attribute-1="class" block-ref="2"><div class="o_form_sheet_bg"><div class="o_form_statusbar position-relative d-flex justify-content-between mb-0 mb-md-2 pb-2 pb-md-0"><block-child-0/><block-child-1/></div><div class="o_form_sheet position-relative"><block-child-2/><div class="oe_title"><block-child-3/><block-child-4/><h1><block-child-5/></h1></div><block-child-6/><block-child-7/></div></div><block-child-8/></div>`);
let block24 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">طريقة الإهلاك</div>`);
let block28 = createBlock(`<div class="o_row" block-attribute-0="class"><block-child-0/><block-child-1/></div>`);
let block33 = createBlock(`<div block-attribute-0="class"><block-child-0/></div>`);
let block36 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">المحاسبة</div>`);
let block45 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">قيم الأصول</div>`);
let block52 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">القيم الحالية</div>`);
let block55 = createBlock(`<span block-attribute-0="class"><block-child-0/><block-child-1/></span>`);
let block57 = createBlock(`<span> (شاملة <block-child-0/> قابل للإهلاك) </span>`);
let block60 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">طريقة الإهلاك</div>`);
let block64 = createBlock(`<div class="o_row" block-attribute-0="class"><block-child-0/><block-child-1/></div>`);
let block70 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">المحاسبة</div>`);
let block78 = createBlock(`<div class="o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small">القيمة عند الاستيراد</div>`);
let block86 = createBlock(`<div class="o-mail-ChatterContainer o-mail-Form-chatter" block-attribute-0="class"><block-child-0/></div>`);
function slot1(ctx, node, key = "") {
let b3;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b3 = comp1({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `تأكيد`,clickParams: {"name":"validate","type":"object"},attrs: {"invisible":"state != 'draft'","data-hotkey":"q"},defaultRank: 'btn-secondary'}, key + `__1`, node, this, null);
}
return multi([b3]);
}
function slot2(ctx, node, key = "") {
let b5;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b5 = comp2({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `احتساب الإهلاك`,clickParams: {"type":"object","name":"compute_depreciation_board"},attrs: {"invisible":"state != 'draft'","data-hotkey":"d"},defaultRank: 'btn-secondary'}, key + `__2`, node, this, null);
}
return multi([b5]);
}
function slot3(ctx, node, key = "") {
let b7;
if (!ctx['__comp__'].evaluateBooleanExpr("depreciation_move_ids or state not in ['open', 'cancelled']",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b7 = comp3({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `تعيين كمسودة`,clickParams: {"name":"set_to_draft","type":"object"},attrs: {"invisible":"depreciation_move_ids or state not in ['open', 'cancelled']"},defaultRank: 'btn-secondary'}, key + `__3`, node, this, null);
}
return multi([b7]);
}
function slot4(ctx, node, key = "") {
let b9;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'close'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b9 = comp4({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `التعيين كجارٍ`,clickParams: {"name":"set_to_running","type":"object"},attrs: {"invisible":"state != 'close'"},defaultRank: 'btn-secondary'}, key + `__4`, node, this, null);
}
return multi([b9]);
}
function slot5(ctx, node, key = "") {
let b11;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'paused'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b11 = comp5({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `متابعة الإهلاك`,clickParams: {"name":"resume_after_pause","type":"object"},attrs: {"invisible":"state != 'paused'"},defaultRank: 'btn-secondary'}, key + `__5`, node, this, null);
}
return multi([b11]);
}
function slot6(ctx, node, key = "") {
let b13;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b13 = comp6({tag: `button`,record: ctx['__comp__'].props.record,className: `oe_highlight`,string: `تعديل الإهلاكات`,clickParams: {"name":"action_asset_modify","type":"object"},attrs: {"invisible":"state != 'open'","data-hotkey":"e"},defaultRank: 'btn-secondary'}, key + `__6`, node, this, null);
}
return multi([b13]);
}
function slot7(ctx, node, key = "") {
let b15;
if (!ctx['__comp__'].evaluateBooleanExpr("state not in ('open', 'paused', 'close')",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b15 = comp7({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `حفظ كنموذج`,clickParams: {"name":"action_save_model","type":"object"},attrs: {"invisible":"state not in ('open', 'paused', 'close')","data-hotkey":"m"},defaultRank: 'btn-secondary'}, key + `__7`, node, this, null);
}
return multi([b15]);
}
function slot8(ctx, node, key = "") {
let b17;
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b17 = comp8({tag: `button`,record: ctx['__comp__'].props.record,className: ``,string: `إلغاء الأصل`,clickParams: {"name":"set_to_cancelled","type":"object"},attrs: {"invisible":"state != 'open'","data-hotkey":"x"},defaultRank: 'btn-secondary'}, key + `__8`, node, this, null);
}
return multi([b17]);
}
function slot9(ctx, node, key = "") {
const ctx3 = capture(ctx);
return comp23({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot10.bind(this), __ctx: ctx3}, 'item_0': {__render: slot11.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 0, props: {id:'method_0',fieldName:'method',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot12.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 1, props: {id:'method_progress_factor_0',fieldName:'method_progress_factor',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method_progress_factor.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("method == 'linear'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot13.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 2, subType: 'label', isVisible: true, itemSpan: 1}, 'item_3': {__render: slot14.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot15.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 4, props: {id:'prorata_computation_type_0',fieldName:'prorata_computation_type',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_computation_type.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot16.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 5, subType: 'label', isVisible: true, itemSpan: 1}, 'item_6': {__render: slot17.bind(this), __ctx: ctx3, __scope: "scope", type: 'item', sequence: 6, isVisible: true, itemSpan: 1}})}, key + `__23`, node, this, null);
}
function slot10(ctx, node, key = "") {
return block24();
}
function slot11(ctx, node, key = "") {
return comp15({id: 'method_0',name: 'method',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__15`, node, this, null);
}
function slot12(ctx, node, key = "") {
return comp16({id: 'method_progress_factor_0',name: 'method_progress_factor',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: ctx['scope']&&ctx['scope'].className}, key + `__16`, node, this, null);
}
function slot13(ctx, node, key = "") {
return comp17({id: 'method_number_0',fieldName: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],className: "",string: `المدة`}, key + `__17`, node, this, null);
}
function slot14(ctx, node, key = "") {
let attr3 = (ctx['scope']&&ctx['scope'].className||"");
const b29 = comp18({id: 'method_number_0',name: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__18`, node, this, null);
const b30 = comp19({id: 'method_period_0',name: 'method_period',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_period_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__19`, node, this, null);
return block28([attr3], [b29, b30]);
}
function slot15(ctx, node, key = "") {
return comp20({id: 'prorata_computation_type_0',name: 'prorata_computation_type',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__20`, node, this, null);
}
function slot16(ctx, node, key = "") {
return comp21({id: 'salvage_value_pct_0',fieldName: 'salvage_value_pct',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_pct_0'],className: "",string: ctx['__comp__'].props.record.fields['salvage_value_pct'].string}, key + `__21`, node, this, null);
}
function slot17(ctx, node, key = "") {
let attr4 = (ctx['scope']&&ctx['scope'].className||"");
const b34 = comp22({id: 'salvage_value_pct_0',name: 'salvage_value_pct',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_pct_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: 'oe_inline'}, key + `__22`, node, this, null);
return block33([attr4], [b34]);
}
function slot18(ctx, node, key = "") {
const ctx4 = capture(ctx);
return comp29({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot19.bind(this), __ctx: ctx4}, 'item_0': {__render: slot20.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 0, props: {id:'company_id_1',fieldName:'company_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.company_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['company_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot21.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 1, props: {id:'account_asset_id_1',fieldName:'account_asset_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_asset_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("not display_account_asset_id",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot22.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 2, props: {id:'account_depreciation_id_0',fieldName:'account_depreciation_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_3': {__render: slot23.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 3, props: {id:'account_depreciation_expense_id_0',fieldName:'account_depreciation_expense_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_expense_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot24.bind(this), __ctx: ctx4, __scope: "scope", type: 'item', sequence: 4, props: {id:'journal_id_0',fieldName:'journal_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.journal_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['journal_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__29`, node, this, null);
}
function slot19(ctx, node, key = "") {
return block36();
}
function slot20(ctx, node, key = "") {
return comp24({id: 'company_id_1',name: 'company_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['company_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__24`, node, this, null);
}
function slot21(ctx, node, key = "") {
return comp25({id: 'account_asset_id_1',name: 'account_asset_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__25`, node, this, null);
}
function slot22(ctx, node, key = "") {
return comp26({id: 'account_depreciation_id_0',name: 'account_depreciation_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__26`, node, this, null);
}
function slot23(ctx, node, key = "") {
return comp27({id: 'account_depreciation_expense_id_0',name: 'account_depreciation_expense_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__27`, node, this, null);
}
function slot24(ctx, node, key = "") {
return comp28({id: 'journal_id_0',name: 'journal_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['journal_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__28`, node, this, null);
}
function slot25(ctx, node, key = "") {
const ctx6 = capture(ctx);
return comp61({slots: markRaw({'item_0': {__render: slot26.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 0, isVisible: true, itemSpan: 1}, 'item_1': {__render: slot27.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}, 'item_2': {__render: slot34.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 2, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}, 'item_3': {__render: slot39.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot47.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 4, isVisible: true, itemSpan: 1}, 'item_5': {__render: slot55.bind(this), __ctx: ctx6, __scope: "scope", type: 'item', sequence: 5, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 1}})}, key + `__61`, node, this, null);
}
function slot26(ctx, node, key = "") {
return comp31({id: 'asset_properties_0',name: 'asset_properties',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['asset_properties_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__31`, node, this, null);
}
function slot27(ctx, node, key = "") {
const ctx7 = capture(ctx);
return comp37({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot28.bind(this), __ctx: ctx7}, 'item_0': {__render: slot29.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 0, props: {id:'original_value_0',fieldName:'original_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.original_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['original_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_1': {__render: slot30.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 1, props: {id:'gross_increase_value_0',fieldName:'gross_increase_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.gross_increase_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['gross_increase_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model' or gross_increase_value == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot31.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 2, props: {id:'acquisition_date_0',fieldName:'acquisition_date',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.acquisition_date.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['acquisition_date_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_3': {__render: slot32.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 3, props: {id:'model_id_0',fieldName:'model_id',record:ctx['__comp__'].props.record,string:`نموذج الأصل`,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['model_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot33.bind(this), __ctx: ctx7, __scope: "scope", type: 'item', sequence: 4, props: {id:'asset_group_id_0',fieldName:'asset_group_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.asset_group_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['asset_group_id_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__37`, node, this, null);
}
function slot28(ctx, node, key = "") {
return block45();
}
function slot29(ctx, node, key = "") {
return comp32({id: 'original_value_0',name: 'original_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['original_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__32`, node, this, null);
}
function slot30(ctx, node, key = "") {
return comp33({id: 'gross_increase_value_0',name: 'gross_increase_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['gross_increase_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__33`, node, this, null);
}
function slot31(ctx, node, key = "") {
return comp34({id: 'acquisition_date_0',name: 'acquisition_date',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['acquisition_date_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__34`, node, this, null);
}
function slot32(ctx, node, key = "") {
return comp35({id: 'model_id_0',name: 'model_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['model_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__35`, node, this, null);
}
function slot33(ctx, node, key = "") {
return comp36({id: 'asset_group_id_0',name: 'asset_group_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['asset_group_id_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__36`, node, this, null);
}
function slot34(ctx, node, key = "") {
const ctx8 = capture(ctx);
return comp42({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot35.bind(this), __ctx: ctx8}, 'item_0': {__render: slot36.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 0, props: {id:'salvage_value_0',fieldName:'salvage_value',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.salvage_value.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot37.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 1, subType: 'label', isVisible: true, itemSpan: 1}, 'item_2': {__render: slot38.bind(this), __ctx: ctx8, __scope: "scope", type: 'item', sequence: 2, isVisible: true, itemSpan: 1}})}, key + `__42`, node, this, null);
}
function slot35(ctx, node, key = "") {
return block52();
}
function slot36(ctx, node, key = "") {
return comp38({id: 'salvage_value_0',name: 'salvage_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['salvage_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: ctx['scope']&&ctx['scope'].className}, key + `__38`, node, this, null);
}
function slot37(ctx, node, key = "") {
return comp39({id: 'book_value_0',fieldName: 'book_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['book_value_0'],className: "",string: ctx['__comp__'].props.record.fields['book_value'].string}, key + `__39`, node, this, null);
}
function slot38(ctx, node, key = "") {
let b56, b57;
let attr5 = (ctx['scope']&&ctx['scope'].className||"");
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b56 = comp40({id: 'book_value_0',name: 'book_value',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['book_value_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary',class: 'oe_inline'}, key + `__40`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("salvage_value == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
let b58;
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b58 = comp41({id: 'value_residual_0',name: 'value_residual',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['value_residual_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'monetary'}, key + `__41`, node, this, null);
}
b57 = block57([], [b58]);
}
return block55([attr5], [b56, b57]);
}
function slot39(ctx, node, key = "") {
const ctx9 = capture(ctx);
return comp50({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot40.bind(this), __ctx: ctx9}, 'item_0': {__render: slot41.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 0, props: {id:'method_1',fieldName:'method',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot42.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 1, props: {id:'method_progress_factor_1',fieldName:'method_progress_factor',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.method_progress_factor.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("method == 'linear'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot43.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 2, subType: 'label', isVisible: true, itemSpan: 1}, 'item_3': {__render: slot44.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 3, isVisible: true, itemSpan: 1}, 'item_4': {__render: slot45.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 4, props: {id:'prorata_computation_type_1',fieldName:'prorata_computation_type',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_computation_type.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot46.bind(this), __ctx: ctx9, __scope: "scope", type: 'item', sequence: 5, props: {id:'prorata_date_0',fieldName:'prorata_date',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.prorata_date.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['prorata_date_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("prorata_computation_type == 'none'",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}})}, key + `__50`, node, this, null);
}
function slot40(ctx, node, key = "") {
return block60();
}
function slot41(ctx, node, key = "") {
return comp43({id: 'method_1',name: 'method',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__43`, node, this, null);
}
function slot42(ctx, node, key = "") {
return comp44({id: 'method_progress_factor_1',name: 'method_progress_factor',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_progress_factor_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'percentage',class: ctx['scope']&&ctx['scope'].className}, key + `__44`, node, this, null);
}
function slot43(ctx, node, key = "") {
ctx = Object.create(ctx);
ctx[isBoundary] = 1
setContextValue(ctx, "addClass", ctx['scope']&&ctx['scope'].className);
return comp45({id: 'method_number_0',fieldName: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_0'],className: ""+(ctx['addClass']?" "+ctx['addClass']:""),string: `المدة`}, key + `__45`, node, this, null);
}
function slot44(ctx, node, key = "") {
let attr6 = (ctx['scope']&&ctx['scope'].className||"");
const b65 = comp46({id: 'method_number_1',name: 'method_number',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_number_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: 'oe_inline'}, key + `__46`, node, this, null);
const b66 = comp47({id: 'method_period_1',name: 'method_period',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['method_period_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__47`, node, this, null);
return block64([attr6], [b65, b66]);
}
function slot45(ctx, node, key = "") {
return comp48({id: 'prorata_computation_type_1',name: 'prorata_computation_type',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_computation_type_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__48`, node, this, null);
}
function slot46(ctx, node, key = "") {
return comp49({id: 'prorata_date_0',name: 'prorata_date',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['prorata_date_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__49`, node, this, null);
}
function slot47(ctx, node, key = "") {
const ctx10 = capture(ctx);
return comp57({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot48.bind(this), __ctx: ctx10}, 'item_0': {__render: slot49.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 0, props: {id:'company_id_2',fieldName:'company_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.company_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['company_id_2']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot50.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 1, props: {id:'account_asset_id_2',fieldName:'account_asset_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_asset_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_2']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: !ctx['__comp__'].evaluateBooleanExpr("not display_account_asset_id",ctx['__comp__'].props.record.evalContextWithVirtualIds), itemSpan: 2}, 'item_2': {__render: slot51.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 2, props: {id:'account_depreciation_id_1',fieldName:'account_depreciation_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_3': {__render: slot52.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 3, props: {id:'account_depreciation_expense_id_1',fieldName:'account_depreciation_expense_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.account_depreciation_expense_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_4': {__render: slot53.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 4, props: {id:'journal_id_1',fieldName:'journal_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.journal_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['journal_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_5': {__render: slot54.bind(this), __ctx: ctx10, __scope: "scope", type: 'item', sequence: 5, props: {id:'analytic_distribution_0',fieldName:'analytic_distribution',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.analytic_distribution.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['analytic_distribution_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__57`, node, this, null);
}
function slot48(ctx, node, key = "") {
return block70();
}
function slot49(ctx, node, key = "") {
return comp51({id: 'company_id_2',name: 'company_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['company_id_2'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__51`, node, this, null);
}
function slot50(ctx, node, key = "") {
return comp52({id: 'account_asset_id_2',name: 'account_asset_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_asset_id_2'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__52`, node, this, null);
}
function slot51(ctx, node, key = "") {
return comp53({id: 'account_depreciation_id_1',name: 'account_depreciation_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__53`, node, this, null);
}
function slot52(ctx, node, key = "") {
return comp54({id: 'account_depreciation_expense_id_1',name: 'account_depreciation_expense_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['account_depreciation_expense_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__54`, node, this, null);
}
function slot53(ctx, node, key = "") {
return comp55({id: 'journal_id_1',name: 'journal_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['journal_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__55`, node, this, null);
}
function slot54(ctx, node, key = "") {
return comp56({id: 'analytic_distribution_0',name: 'analytic_distribution',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['analytic_distribution_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'analytic_distribution',class: ctx['scope']&&ctx['scope'].className}, key + `__56`, node, this, null);
}
function slot55(ctx, node, key = "") {
const ctx11 = capture(ctx);
return comp60({class: ctx['scope']&&ctx['scope'].className,slots: markRaw({'title': {__render: slot56.bind(this), __ctx: ctx11}, 'item_0': {__render: slot57.bind(this), __ctx: ctx11, __scope: "scope", type: 'item', sequence: 0, props: {id:'already_depreciated_amount_import_0',fieldName:'already_depreciated_amount_import',record:ctx['__comp__'].props.record,string:`المبلغ المُهلَك`,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['already_depreciated_amount_import_0']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}, 'item_1': {__render: slot58.bind(this), __ctx: ctx11, __scope: "scope", type: 'item', sequence: 1, props: {id:'vehicle_id_1',fieldName:'vehicle_id',record:ctx['__comp__'].props.record,string:ctx['__comp__'].props.record.fields.vehicle_id.string,fieldInfo:ctx['__comp__'].props.archInfo.fieldNodes['vehicle_id_1']}, Component: ctx['__comp__'].constructor.components.FormLabel, subType: 'item_component', isVisible: true, itemSpan: 2}})}, key + `__60`, node, this, null);
}
function slot56(ctx, node, key = "") {
return block78();
}
function slot57(ctx, node, key = "") {
return comp58({id: 'already_depreciated_amount_import_0',name: 'already_depreciated_amount_import',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['already_depreciated_amount_import_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__58`, node, this, null);
}
function slot58(ctx, node, key = "") {
return comp59({id: 'vehicle_id_1',name: 'vehicle_id',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['vehicle_id_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: ctx['scope']&&ctx['scope'].className}, key + `__59`, node, this, null);
}
function slot59(ctx, node, key = "") {
return comp62({id: 'depreciation_move_ids_0',name: 'depreciation_move_ids',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['depreciation_move_ids_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__62`, node, this, null);
}
function slot60(ctx, node, key = "") {
return comp63({id: 'original_move_line_ids_0',name: 'original_move_line_ids',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['original_move_line_ids_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,class: 'original_move_line_ids_field'}, key + `__63`, node, this, null);
}
return function template(ctx, node, key = "") {
let b18, b19, b20, b21, b22, b23, b43, b85, b86;
let attr1 = ctx['__comp__'].props.class;
let attr2 = `${ctx['__comp__'].props.record.isInEdition?'o_form_editable':'o_form_readonly'} d-flex d-print-block ${ctx['__comp__'].uiService.size<6?"flex-column":"flex-nowrap h-100"} ${ctx['__comp__'].props.record.dirty?'o_form_dirty':!ctx['__comp__'].props.record.isNew?'o_form_saved':''}`;
let ref1 = (el) => this.__owl__.setRef((`compiled_view_root`), el);
if (!ctx['__comp__'].env.isSmall||ctx['__comp__'].env.inDialog) {
const ctx1 = capture(ctx);
b18 = comp9({slots: markRaw({'button_0': {__render: slot1.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_1': {__render: slot2.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'draft'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_2': {__render: slot3.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("depreciation_move_ids or state not in ['open', 'cancelled']",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_3': {__render: slot4.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'close'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_4': {__render: slot5.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'paused'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_5': {__render: slot6.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_6': {__render: slot7.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state not in ('open', 'paused', 'close')",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'button_7': {__render: slot8.bind(this), __ctx: ctx1, isVisible: !ctx['__comp__'].evaluateBooleanExpr("state != 'open'",ctx['__comp__'].props.record.evalContextWithVirtualIds)}})}, key + `__9`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b19 = comp10({id: 'state_1',name: 'state',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['state_1'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew,type: 'statusbar',showTooltip: true}, key + `__10`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("active",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b20 = comp11({record: ctx['__comp__'].props.record,name: 'web_ribbon',widgetInfo: ctx['__comp__'].props.archInfo.widgetNodes['widget_1']}, key + `__11`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b21 = comp12({id: 'name_0',fieldName: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],className: "",string: ctx['__comp__'].props.record.fields['name'].string}, key + `__12`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
b22 = comp13({id: 'name_0',fieldName: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],className: "",string: `اسم نموذج الأصل`}, key + `__13`, node, this, null);
}
b23 = comp14({id: 'name_0',name: 'name',record: ctx['__comp__'].props.record,fieldInfo: ctx['__comp__'].props.archInfo.fieldNodes['name_0'],readonly: ctx['__comp__'].props.archInfo.activeActions?.edit===false&&!ctx['__comp__'].props.record.isNew}, key + `__14`, node, this, null);
if (!ctx['__comp__'].evaluateBooleanExpr("state != 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
const ctx2 = capture(ctx);
b43 = comp30({slots: markRaw({'item_0': {__render: slot9.bind(this), __ctx: ctx2, __scope: "scope", type: 'item', sequence: 0, isVisible: true, itemSpan: 1}, 'item_1': {__render: slot18.bind(this), __ctx: ctx2, __scope: "scope", type: 'item', sequence: 1, isVisible: true, itemSpan: 1}})}, key + `__30`, node, this, null);
}
if (!ctx['__comp__'].evaluateBooleanExpr("state == 'model'",ctx['__comp__'].props.record.evalContextWithVirtualIds)) {
const v1 = ctx['__comp__'];
const ctx5 = capture(ctx);
b85 = comp64({defaultPage: ctx['__comp__'].props.record.isNew?undefined:ctx['__comp__'].props.activeNotebookPages[0],onPageUpdate: (_page)=>v1.props.onNotebookPageChange(0,_page),anchors: {outstanding:[ctx['object']Object]},slots: markRaw({'page_1': {__render: slot25.bind(this), __ctx: ctx5, title: `أصل`, name: `main_page`, isVisible: true}, 'page_2': {__render: slot59.bind(this), __ctx: ctx5, title: `اللائحة الاستهلاكية`, name: `depreciation_board`, isVisible: !ctx['__comp__'].evaluateBooleanExpr("total_depreciation_entries_count == 0",ctx['__comp__'].props.record.evalContextWithVirtualIds)}, 'page_3': {__render: slot60.bind(this), __ctx: ctx5, title: `الفواتير`, name: `related_items`, isVisible: true}})}, key + `__64`, node, this, null);
}
if (!ctx['__comp__'].env.inDialog&&(!["COMBO","NONE"].includes(ctx['__comp__'].mailLayout(false)))) {
let attr7 = (["SIDE_CHATTER","EXTERNAL_COMBO_XXL"].includes(ctx['__comp__'].mailLayout(false))?"o-aside w-print-100":"mt-4 mt-md-0");
const Comp1 = ctx['__comp__'].mailComponents.Chatter;
const b87 = toggler(Comp1, comp65({has_activities: ctx['__comp__'].props.archInfo.has_activities,hasAttachmentPreview: false,hasParentReloadOnAttachmentsChanged: false,hasParentReloadOnFollowersUpdate: false,hasParentReloadOnMessagePosted: false,isAttachmentBoxVisibleInitially: false,threadId: ctx['__comp__'].props.record.resId||undefined,threadModel: ctx['__comp__'].props.record.resModel,webRecord: ctx['__comp__'].props.record,saveRecord: ctx['__comp__'].props.saveRecord,highlightMessageId: ctx['__comp__'].highlightMessageId,isChatterAside: ["SIDE_CHATTER","EXTERNAL_COMBO_XXL","EXTERNAL_COMBO"].includes(ctx['__comp__'].mailLayout(false)),isInFormSheetBg: ["COMBO","BOTTOM_CHATTER"].includes(ctx['__comp__'].mailLayout(false))}, (Comp1).name + key + `__65`, node, this, Comp1));
b86 = block86([attr7], [b87]);
}
return block1([attr1, attr2, ref1], [b18, b19, b20, b21, b22, b23, b43, b85, b86]);
}
}
at compile (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1547:113)
at App._compileTemplate (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1612:300)
at App.getTemplate (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1197:118)
at App.callTemplate (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1200:68)
at FormRenderer.template (eval at compile (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1546:421), <anonymous>:10:12)
at Fiber._render (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:976:96)
at Fiber.render (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:975:6)
at ComponentNode.initiateRender (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1044:47)
Caused by: SyntaxError: Unexpected identifier 'Object'
at new Function (<anonymous>)
at compile (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1546:421)
at App._compileTemplate (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1612:300)
at App.getTemplate (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1197:118)
at App.callTemplate (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1200:68)
at FormRenderer.template (eval at compile (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1546:421), <anonymous>:10:12)
at Fiber._render (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:976:96)
at Fiber.render (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:975:6)
at ComponentNode.initiateRender (https://alfunoongroup.odoo.com/web/assets/aaf7ffa/web.assets_web.min.js:1044:47)