Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][imp] warnings #390

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions cb_medical_pos/models/pos_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ def get_internal_identifier(self, vals):
return pos_config.session_sequence_id.next_by_id()
return self.env["ir.sequence"].next_by_code("pos.session.identifier") or "/"

@api.model
def create(self, vals):
if vals.get("internal_identifier", "/") == "/":
vals["internal_identifier"] = self.get_internal_identifier(vals)
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
if vals.get("internal_identifier", "/") == "/":
vals["internal_identifier"] = self.get_internal_identifier(vals)
return super(PosSession, self.with_context(ignore_balance_start=True)).create(
vals
vals_list
)

def action_view_encounters(self):
Expand Down
2 changes: 1 addition & 1 deletion medical_queue_management/models/queue_location_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ class QueueLocationAction(models.Model):

sequence = fields.Integer()
name = fields.Char()
icon = fields.Char()
icon = fields.Char(string="Queue Icon")
color = fields.Char()
Loading