Unable to install bahmni_sale Odoo addon on fresh Odoo database

Description

When starting Bahmni on fresh db, we encounter an error when loading bahmni_sale addon:
File "/opt/bahmni-addons/bahmni_sale/models/sale_order.py", line 81, in _get_partner_details
AttributeError: 'res.partner' object has no attribute 'uuid'

If we restart Odoo again though, it goes through.

The line that triggers the error is: https://github.com/Bahmni/odoo-modules/blob/ef6a1fa1b11ab7d3e86ecf8ee77ccfa2de29d1e8/bahmni_sale/models/sale_order.py#L81

 

Acceptance Criteria:

Install bahmni_sale on a fresh Odoo installation and confirm that the initialization goes fine and the above error does not show.

Status

Assignee

Romain Buisson

Reporter

Romain Buisson

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Fix versions

Configure