feat: add x_fc_authorizer_number, x_fc_account_number, x_marked_for fields; auto-link authorizer from XML
- fusion_claims: added x_fc_authorizer_number to res.partner for ADP authorizer registration numbers - fusion_claims: XML parser auto-links authorizer contact to sale order by ADP number - fusion_claims: removed size=9 constraint from x_fc_odsp_member_id - fusion_claims: authorizer number shown on OT/PT contact form - fusion_so_to_po: added x_marked_for (Many2one) field definition on purchase.order - fusion_so_to_po: added x_fc_account_number on res.partner for vendor account numbers
This commit is contained in:
@@ -45,9 +45,8 @@ class ResPartner(models.Model):
|
||||
# ==========================================================================
|
||||
x_fc_odsp_member_id = fields.Char(
|
||||
string='ODSP Member ID',
|
||||
size=9,
|
||||
tracking=True,
|
||||
help='9-digit Ontario Disability Support Program Member ID',
|
||||
help='Ontario Disability Support Program Member ID',
|
||||
)
|
||||
x_fc_case_worker_id = fields.Many2one(
|
||||
'res.partner',
|
||||
@@ -69,6 +68,17 @@ class ResPartner(models.Model):
|
||||
store=True,
|
||||
)
|
||||
|
||||
# ==========================================================================
|
||||
# AUTHORIZER FIELDS
|
||||
# ==========================================================================
|
||||
x_fc_authorizer_number = fields.Char(
|
||||
string='ADP Authorizer Number',
|
||||
tracking=True,
|
||||
index=True,
|
||||
help='ADP Registration Number for this authorizer (e.g. OT). '
|
||||
'Used to auto-link authorizers when processing ADP XML files.',
|
||||
)
|
||||
|
||||
@api.depends('x_fc_contact_type')
|
||||
def _compute_is_odsp_office(self):
|
||||
for partner in self:
|
||||
|
||||
Reference in New Issue
Block a user