-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from PSNAppz/17.0-1.4
Queue unique_id generation for processing
- Loading branch information
Showing
19 changed files
with
255 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Part of OpenG2P. See LICENSE file for full copyright and licensing details. | ||
|
||
from . import region | ||
from . import ref_id_config | ||
from . import res_config_settings | ||
from . import registrant | ||
from . import pending_ref_id | ||
from . import g2p_que_id_generation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class G2PQueIDGeneration(models.Model): | ||
_name = "g2p.que.id.generation" | ||
_description = "G2P Queue ID Generation" | ||
|
||
registrant_id = fields.Char( | ||
required=True, | ||
) | ||
|
||
id_generation_request_status = fields.Selection( | ||
selection=[ | ||
("pending", "Pending"), | ||
("approved", "Approved"), | ||
("rejected", "Rejected"), | ||
], | ||
required=True, | ||
default="pending", | ||
) | ||
|
||
id_generation_update_status = fields.Selection( | ||
selection=[ | ||
("not_applicable", "Not Applicable"), | ||
("in_progress", "In Progress"), | ||
("completed", "Completed"), | ||
], | ||
required=True, | ||
default="not_applicable", | ||
) | ||
|
||
queued_datetime = fields.Datetime( | ||
required=True, | ||
default=fields.Datetime.now, | ||
) | ||
|
||
number_of_attempts_request = fields.Integer( | ||
required=True, | ||
default=0, | ||
) | ||
|
||
number_of_attempts_update = fields.Integer( | ||
required=True, | ||
default=0, | ||
) | ||
|
||
last_attempt_error_code_request = fields.Char() | ||
|
||
last_attempt_error_code_update = fields.Char() | ||
|
||
last_attempt_datetime_request = fields.Datetime() | ||
|
||
last_attempt_datetime_update = fields.Datetime() | ||
|
||
_sql_constraints = [ | ||
("registrant_id_uniq", "UNIQUE(registrant_id)", "registrant_id is an unique identifier!"), | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
g2p_region_admin,Region Admin Access,g2p_social_registry.model_g2p_region,g2p_registry_base.group_g2p_admin,1,1,1,1 | ||
g2p_region_registrar,Region Registrar Access,g2p_social_registry.model_g2p_region,,1,0,0,0 | ||
g2p_pending_reference_id_admin,Pending Reference ID Admin Access,g2p_social_registry.model_g2p_pending_reference_id,g2p_registry_base.group_g2p_admin,1,1,1,1 | ||
g2p_pending_reference_id_registrar,Pending Reference ID Registrar Access,g2p_social_registry.model_g2p_pending_reference_id,,1,0,0,0 | ||
g2p_reference_id_config_admin,Reference ID Config Admin Access,g2p_social_registry.model_g2p_reference_id_config,g2p_registry_base.group_g2p_admin,1,1,1,1 | ||
g2p_reference_id_config_registrar,Reference ID Config Registrar Access,g2p_social_registry.model_g2p_reference_id_config,,1,0,0,0 | ||
g2p_que_id_generation_admin,Queue ID Generation Admin Access,g2p_social_registry.model_g2p_que_id_generation,g2p_registry_base.group_g2p_admin,1,1,1,1 | ||
g2p_que_id_generation_registrar,Queue ID Generation Registrar Access,g2p_social_registry.model_g2p_que_id_generation,,1,0,0,0 |
Oops, something went wrong.