Repository
OCA/partner-contact · module folder · Try on Runboat
Module version
1.0.0
Category
General
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.savoirfairelinux.com
Last tracking update
2026-08-07 07:03:08
Authors
Savoir-faire Linux, Odoo Community Association (OCA)
Maintainers
Odoo Community Association (OCA)
Committers
Stéphane Bidoul (ACSONE), Weblate, OCA Transbot, oca-travis, Rafael Blasco
Odoo dependencies
None
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_action_form partner.action.form partner.action form New
view_action_tree partner.action.tree partner.action tree New
view_action_type_tree partner.action.type.tree partner.action.type tree New
view_partner_action_filter Partner Actions partner.action search New
view_partner_action_type_filter Partner - Actions partner.action.type search New
view_partner_form Partner Form +Actions res.partner form Inherits base.view_partner_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (11)
  • action_type Many2one → partner.action.type
    default=<expr> required=True string='Type' args: 'partner.action.type'
  • date Date
    default=fields.Date.context_today required=True args: 'Date'
  • date_end Date
    args: 'End Date'
  • date_start Date
    default=fields.Date.context_today args: 'Start Date'
  • details Text
    args: 'Details'
  • is_active Boolean
    help='Currently active'
  • name Char
    compute=_get_name
  • partner_id Many2one → res.partner
    ondelete='cascade' required=True string='Partner' args: 'res.partner'
  • priority Integer
    related='action_type.priority' store=True
  • state Selection
    default='draft' required=True string='Status' args: [('draft', 'Draft'), ('done', 'Done')]
  • user_id Many2one → res.users
    default=<expr> readonly=True required=True string='User' args: 'res.users'
Public methods (11)
  • action_outdated(self, single=False)
    Tag action is outdated, revert its changes if `single` is True, re-apply partner actions
  • apply_active_actions(self)
    @api.model
  • apply_all(self)
    @api.multi
    Apply all actions in the order they are passed
  • apply_partner(self)
    @api.multi
  • button_confirm(self)
    @api.multi
  • button_draft(self)
    @api.multi
  • check_date_active(self)
  • check_dates(self)
    @api.constrains('date_start', 'date_end')
  • check_is_active(self, single=False)
    @api.depends('date_start', 'date_end', 'state')
    Make sure an action is in/active according to its state and dates, correcting its status as required. If `single` is True, re-apply partner rules when necessary
  • create(self, vals)
    @api.model@api.returns('self', <expr>)
  • write(self, vals)
    @api.multi

New fields (5)
  • add_tag Many2one → res.partner.category
    required=False string='Add Tag' args: 'res.partner.category'
  • is_active Boolean
    default=True args: 'Active'
  • name Char
    required=True translate=True args: 'Name'
  • priority Integer
    default=0 required=True args: 'Priority'
  • remove_tag Many2one → res.partner.category
    required=False string='Remove Tag' args: 'res.partner.category'
Public methods (1)
  • get_default(self)
    @api.model

New fields (2)
  • action_count Integer
    compute=count_actions
  • action_ids One2many → partner.action
    string='Actions' args: 'partner.action', 'partner_id'
Public methods (4)
  • apply_actions(self)
  • button_actions(self)
    @api.multi
  • count_actions(self)
    @api.multi
  • write(self, vals)
    @api.multi