manage productive/non-productive project
All checks were successful
Setup Native Action / native (3.12.7) (pull_request) Has been skipped
Setup Native Action / docker (3.12.7) (pull_request) Has been skipped

This commit is contained in:
XuanHuyen 2025-01-20 14:41:03 +07:00
parent 0ea6e2fcb0
commit f18f906d79
2 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,7 @@ class Project(models.Model):
currency_id = fields.Many2one('res.currency', compute="_compute_currency_id", string="Currency", readonly=True, export_string_translation=False) currency_id = fields.Many2one('res.currency', compute="_compute_currency_id", string="Currency", readonly=True, export_string_translation=False)
analytic_account_balance = fields.Monetary(related="account_id.balance") analytic_account_balance = fields.Monetary(related="account_id.balance")
account_id = fields.Many2one('account.analytic.account', copy=False, domain="['|', ('company_id', '=', False), ('company_id', '=?', company_id)]", ondelete='set null') account_id = fields.Many2one('account.analytic.account', copy=False, domain="['|', ('company_id', '=', False), ('company_id', '=?', company_id)]", ondelete='set null')
productive_status = fields.Selection([('productive','Productive'), ('non-productive', 'Non-productive')], default="productive", string="Product Status", required=True)
favorite_user_ids = fields.Many2many( favorite_user_ids = fields.Many2many(
'res.users', 'project_favorite_user_rel', 'project_id', 'user_id', 'res.users', 'project_favorite_user_rel', 'project_id', 'user_id',

View File

@ -85,6 +85,7 @@
<page name="settings" string="Settings"> <page name="settings" string="Settings">
<group> <group>
<group> <group>
<field name="productive_status" widget="radio"/>
<field name="privacy_visibility" widget="radio"/> <field name="privacy_visibility" widget="radio"/>
<span colspan="2" class="text-muted o_row ps-1" invisible="access_instruction_message == ''"> <span colspan="2" class="text-muted o_row ps-1" invisible="access_instruction_message == ''">
<i class="fa fa-lightbulb-o"/>&amp;nbsp;<field class="d-inline" name="access_instruction_message" nolabel="1"/> <i class="fa fa-lightbulb-o"/>&amp;nbsp;<field class="d-inline" name="access_instruction_message" nolabel="1"/>