@ -0,0 +1,49 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg |
||||
|
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
||||
|
:alt: License: LGPL-3 |
||||
|
|
||||
|
Document Approval |
||||
|
================= |
||||
|
This module helps to approve or reject documents. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
- No additional configuration required |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V17) Saneen K, |
||||
|
(V18) Ranjith R, |
||||
|
Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if |
||||
|
your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import models |
||||
|
from . import wizards |
@ -0,0 +1,49 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
'name': "Document Approval", |
||||
|
"version": "18.0.1.0.0", |
||||
|
"category": "Documents Management", |
||||
|
"summary": "Manager can approve or reject documents", |
||||
|
"description": "User can create and upload various document for approvals." |
||||
|
"Manager can approve or reject documents.", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['mail'], |
||||
|
'data': [ |
||||
|
'security/document_approval_security.xml', |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/document_approval_team_views.xml', |
||||
|
'views/document_approval_views.xml', |
||||
|
'views/document_approval_menus.xml', |
||||
|
'wizards/document_approve_views.xml', |
||||
|
'wizards/document_reject_views.xml', |
||||
|
'wizards/document_approval_signature_views.xml', |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'LGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': True, |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
## Module <document_approval> |
||||
|
|
||||
|
#### 21.12.2024 |
||||
|
#### Version 18.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial commit for Document Approval |
@ -0,0 +1,25 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import document_approval |
||||
|
from . import document_approval_file |
||||
|
from . import document_approval_step |
||||
|
from . import document_approval_team |
@ -0,0 +1,187 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, fields, models, _ |
||||
|
from odoo.exceptions import UserError, ValidationError |
||||
|
|
||||
|
|
||||
|
class DocumentApproval(models.Model): |
||||
|
""" A model for Managing the document approvals""" |
||||
|
_name = "document.approval" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin"] |
||||
|
_description = "Document Approvals" |
||||
|
|
||||
|
name = fields.Char(string='Name', required=True, |
||||
|
help='Name of the record.') |
||||
|
is_active = fields.Boolean(string='Active', copy=False, |
||||
|
help='Used to check the record active or not.') |
||||
|
description = fields.Text(string="Description", |
||||
|
help='Used to add description about the document' |
||||
|
' approval') |
||||
|
approve_initiator_id = fields.Many2one('res.users', string="Initiator", |
||||
|
default=lambda self: self.env.user, |
||||
|
help='Set who has initiated the ' |
||||
|
'document approval.') |
||||
|
team_id = fields.Many2one('document.approval.team', string="Approval Team", |
||||
|
required=True, |
||||
|
help='Set which team is approving the document.') |
||||
|
team_lead_id = fields.Many2one(string='Team leader', |
||||
|
related='team_id.team_lead_id', |
||||
|
help="team Leader") |
||||
|
method = fields.Selection(selection=[('button', 'Button'), |
||||
|
('sign', 'Signature')], |
||||
|
default='button', string="Method", |
||||
|
help='Set the mode of approvals.') |
||||
|
visibility = fields.Selection(selection=[('all_user', 'All Users'), |
||||
|
('followers', 'Followers'), |
||||
|
('approvers', 'Approvers')], |
||||
|
string='Visibility', |
||||
|
help='Restrict the visibility of the ' |
||||
|
'document', default="all_user") |
||||
|
state = fields.Selection(selection=[('draft', 'Draft'), |
||||
|
('waiting', 'Waiting'), |
||||
|
('approved', 'Approved'), |
||||
|
('reject', 'Rejected')], |
||||
|
string='Status', default='draft', readonly=True, |
||||
|
tracking=True, |
||||
|
help='State of the document.') |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
default=lambda self: self.env.company, |
||||
|
help='Company of the record.') |
||||
|
step_ids = fields.One2many('document.approval.step', |
||||
|
'document_approve_id', |
||||
|
compute='_compute_step_ids', store=True, |
||||
|
help='For setting document approval steps') |
||||
|
file_ids = fields.One2many('document.approval.file', 'approval_id', |
||||
|
string='Files', |
||||
|
help='You can upload file and file details') |
||||
|
step_count = fields.Integer(string="Step", help="Current Step", |
||||
|
readonly=True) |
||||
|
approver_ids = fields.Many2many('res.users', string="Approver", |
||||
|
help="User to approve the document") |
||||
|
show_approve = fields.Boolean(string="Show Approve Button", copy=False, |
||||
|
help="To show the approve button to approve " |
||||
|
"the document", |
||||
|
compute="_compute_show_approve") |
||||
|
approval_ids = fields.Many2many('document.approval.step', |
||||
|
string="Approval Step", |
||||
|
help="Approval Step of the document") |
||||
|
|
||||
|
@api.depends('team_id') |
||||
|
def _compute_step_ids(self): |
||||
|
"""Method _compute_step_ids to compute the values to the field |
||||
|
step_ids""" |
||||
|
for rec in self: |
||||
|
rec.step_ids = False |
||||
|
for step in rec.team_id.step_ids: |
||||
|
rec.step_ids = [fields.Command.create({ |
||||
|
'steps': step.steps, |
||||
|
'approver_id': step.approver_id.id, |
||||
|
'role': step.role, |
||||
|
'state': step.state, |
||||
|
'note': step.note |
||||
|
})] |
||||
|
|
||||
|
@api.constrains('team_id') |
||||
|
def _check_team_member(self): |
||||
|
"""function to check whether the team has atleast one member.""" |
||||
|
if not self.team_id.step_ids.approver_id: |
||||
|
raise ValidationError( |
||||
|
"Your Team member should atleast have one Approver.") |
||||
|
|
||||
|
@api.depends('team_id') |
||||
|
def _compute_show_approve(self): |
||||
|
"""This method _compute_show_approve to compute the valur to the field |
||||
|
show_approve""" |
||||
|
for rec in self: |
||||
|
rec.show_approve = True if self.env.uid in rec.approver_ids.ids else False |
||||
|
if rec.team_id.team_lead_id.id == self.env.uid: |
||||
|
rec.show_approve = True |
||||
|
|
||||
|
def action_send_for_approval(self): |
||||
|
""" Action to sent document to approval also it changes the state |
||||
|
into waiting that document to be approved """ |
||||
|
steps = self.step_ids.mapped('steps') |
||||
|
unique_steps = [step for i, step in enumerate(steps) if step not in steps[:i]] |
||||
|
unique_steps = sorted(unique_steps) |
||||
|
self.step_count = unique_steps[0] |
||||
|
aprroval_records = self.step_ids.search([('steps', '=', |
||||
|
unique_steps[0]), ( |
||||
|
'document_approve_id', |
||||
|
'=', self.id)]) |
||||
|
self.approval_ids = aprroval_records.ids |
||||
|
approval_user_ids = [record.approver_id.id for record in |
||||
|
aprroval_records] |
||||
|
for record in aprroval_records: |
||||
|
record.current_state = 'pending' |
||||
|
self.approver_ids = approval_user_ids |
||||
|
self.state = "waiting" |
||||
|
|
||||
|
def action_approve(self): |
||||
|
""" function that return wizard to do the approval by writing note |
||||
|
and approver can approve the document. |
||||
|
Approval is done just clicking the button""" |
||||
|
return { |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'name': 'Document Approval', |
||||
|
'target': 'new', |
||||
|
'view_mode': 'form', |
||||
|
'res_model': 'document.approve', |
||||
|
'context': { |
||||
|
'default_document_id': self.id |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
def action_reject(self): |
||||
|
""" Return a wizard that to confirm rejection by adding a note""" |
||||
|
return { |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'name': 'Document Rejection', |
||||
|
'target': 'new', |
||||
|
'view_mode': 'form', |
||||
|
'res_model': 'document.reject', |
||||
|
'context': { |
||||
|
'default_document_id': self.id |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
def action_approve_sign(self): |
||||
|
""" Return a wizard that approver can ensure to give |
||||
|
signature and approve. Approver can add signature confirmation """ |
||||
|
return { |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'name': 'Document Approval', |
||||
|
'target': 'new', |
||||
|
'view_mode': 'form', |
||||
|
'res_model': 'document.approval.signature', |
||||
|
'context': { |
||||
|
'default_document_id': self.id |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
def unlink(self): |
||||
|
""" This function is used to ensure to there is no record of |
||||
|
state approved has been deleted""" |
||||
|
for record in self: |
||||
|
if record.state in ["approved", "waiting"]: |
||||
|
raise UserError( |
||||
|
_("You cannot delete record in approved or waiting state")) |
||||
|
return super(DocumentApproval, self).unlink() |
@ -0,0 +1,48 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models, _ |
||||
|
from odoo.exceptions import UserError |
||||
|
|
||||
|
|
||||
|
class DocumentApprovalFiles(models.Model): |
||||
|
""" Manage the documents for approvals""" |
||||
|
_name = 'document.approval.file' |
||||
|
_description = "document files" |
||||
|
|
||||
|
name = fields.Char(string="Name", required=True, |
||||
|
help='For adding some noted about the file ') |
||||
|
file = fields.Binary(string="File", required=True, attachment=True, |
||||
|
help='For storing the file') |
||||
|
file_name = fields.Char(string="File Name", |
||||
|
help="Storing name of the file") |
||||
|
approval_id = fields.Many2one('document.approval', |
||||
|
help='Inverse fields for the document ' |
||||
|
'approval') |
||||
|
|
||||
|
def unlink(self): |
||||
|
"""Supering the method unlink of model document.approval.line to |
||||
|
restrict the deleting of the file""" |
||||
|
for rec in self: |
||||
|
if rec.approval_id.state != 'Draft': |
||||
|
raise UserError( |
||||
|
_(f"You cannot delete file from {rec.approval_id.state} state")) |
||||
|
super(DocumentApprovalFiles, rec).unlink() |
@ -0,0 +1,57 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class DocumentApprovalSteps(models.Model): |
||||
|
""" Document approval steps""" |
||||
|
_name = "document.approval.step" |
||||
|
_description = "Document Approvals Steps" |
||||
|
|
||||
|
steps = fields.Integer(string="Steps", |
||||
|
help='For counting how many steps needed') |
||||
|
approver_id = fields.Many2one('res.users', string="Approver", |
||||
|
help='The person who is responsible for ' |
||||
|
'the approval') |
||||
|
role = fields.Char(string="Role/Position", |
||||
|
help='To determine the position of the approver') |
||||
|
document_approve_id = fields.Many2one('document.approval', |
||||
|
string='Document Approval', |
||||
|
help='Inverse field from document ' |
||||
|
'approvals') |
||||
|
is_approve = fields.Boolean(string='Is Approved', copy=False, |
||||
|
help='Check weather it is approved or not') |
||||
|
document_approve_team_id = fields.Many2one('document.approval.team', |
||||
|
string="Approver Team", |
||||
|
help='The team who are ' |
||||
|
'responsible for the ' |
||||
|
'approvals') |
||||
|
state = fields.Selection( |
||||
|
selection=[('to_approve', 'To Approve'), |
||||
|
('approve', 'Approve')], |
||||
|
default="to_approve") |
||||
|
note = fields.Char(string='Notes', help="To add notes") |
||||
|
current_state = fields.Selection( |
||||
|
selection=[('upcoming', 'Upcoming'), ('pending', 'Pending'), |
||||
|
('approved', 'Approved'), ('rejected', 'Rejected')], |
||||
|
default="upcoming", string="Approval State", |
||||
|
help="THe current state of approval") |
@ -0,0 +1,45 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class DocumentApprovalTeam(models.Model): |
||||
|
""" Configure document approval team""" |
||||
|
_name = "document.approval.team" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin"] |
||||
|
_description = "Document approval team" |
||||
|
|
||||
|
name = fields.Char(string='Name', required=True, help='Name of the team', |
||||
|
tracking=True) |
||||
|
team_lead_id = fields.Many2one('res.users', string='Team Leader', |
||||
|
help='For setting th team lead', |
||||
|
tracking=True, required=True, |
||||
|
default=lambda self: self.env.user) |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
help='For setting the company', |
||||
|
default=lambda self: self.env.company) |
||||
|
is_active = fields.Boolean(string="Active", copy=False, |
||||
|
help='For checking the active status') |
||||
|
step_ids = fields.One2many('document.approval.step', |
||||
|
'document_approve_team_id', |
||||
|
help='For setting document approval steps for ' |
||||
|
'the approval team') |
@ -0,0 +1,26 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Record rule for adding visibility to the approvers team --> |
||||
|
<record id="document_approval_rule_user" model="ir.rule"> |
||||
|
<field name="name">document approval rule user</field> |
||||
|
<field name="model_id" |
||||
|
ref="document_approval.model_document_approval"/> |
||||
|
<field name="domain_force"> |
||||
|
['|','|',('step_ids.approver_id.id','=',user.id),('approve_initiator_id','=',user.id),('team_id.team_lead_id.id','=',user.id)] |
||||
|
</field> |
||||
|
<field name="perm_read" eval="True"/> |
||||
|
<field name="perm_write" eval="True"/> |
||||
|
<field name="perm_create" eval="True"/> |
||||
|
<field name="perm_unlink" eval="True"/> |
||||
|
<field name="active" eval="True"/> |
||||
|
</record> |
||||
|
<!--Multi company rule for the model document approval--> |
||||
|
<record model="ir.rule" id="document_approval_multi_company_rule"> |
||||
|
<field name="name">Document Approval Multi Company</field> |
||||
|
<field name="model_id" ref="model_document_approval"/> |
||||
|
<field name="global" eval="True"/> |
||||
|
<field name="domain_force">['|', ('company_id', '=', False), |
||||
|
('company_id', 'in', company_ids)] |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
|
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 767 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 760 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 697 KiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 541 KiB |
After Width: | Height: | Size: 133 KiB |
After Width: | Height: | Size: 133 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 113 KiB |
After Width: | Height: | Size: 163 KiB |
After Width: | Height: | Size: 169 KiB |
After Width: | Height: | Size: 151 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 134 KiB |
After Width: | Height: | Size: 138 KiB |