Add active field to product.category for archiving

This commit is contained in:
younes 2025-05-28 11:06:32 +01:00
parent e8a2851fca
commit e7bbb338cb
3 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,11 @@ msgstr ""
msgid "Asset"
msgstr "الأصل"
#. module: purchase_custom_stock
#: model:ir.model.fields,field_description:purchase_custom_stock.field_product_category__active
msgid "Active"
msgstr "نشط"
#. module: purchase_custom_stock
#: model:ir.model.fields,field_description:purchase_custom_stock.field_purchase_request__all_assets_released
msgid "All Assets Released"

View File

@ -7,6 +7,7 @@ from . import employee_custody
from . import account_asset_operation
from . import refuse_reason
from . import account_asset
from . import product_category

View File

@ -0,0 +1,9 @@
#-*- coding: utf-8 -*-
from odoo import models, fields , api, _
from datetime import datetime
from datetime import timedelta
class Category(models.Model):
_inherit = 'product.category'
active = fields.Boolean("Active",default=True)