Skip to content
Snippets Groups Projects

[REL] 14.0.2.0.0

Merged Daniil Digtyar Vasilieva requested to merge release/14.0.1.1.14 into 14.0
5 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
5
  • 1. Optimize module setup: Corrected the module folder location by including it
       in the energy_selfconsumption setup as a direct dependency. This ensures a
       more accurate and reliable setup.
    
    2. Clarify field reference: Adjusted the field reference in relation to the
       "product" by identifying that it likely pertains to the "partner_id" name
       rather than the "owner_id" name.
    
    3. Enhance field relevance: Eliminated a redundant field as it duplicates
       information already displayed in the street, partner_id, and owner_id. The
       removal streamlines the view and improves clarity.
    
    4. Opt for owner_id display: Acknowledging the understanding to remove the field
       due to its display in the name, decided to include the owner_id field, which
       is not shown in the name, for enhanced completeness.
    
    [MIG] Module setup, Field relevance, Redundant field removal
@@ -58,6 +58,6 @@ class SupplyPoint(models.Model):
def _compute_supply_point_name(self):
for record in self:
if record.owner_id and record.street:
record.name = f"{record.owner_id.name} - {record.street}"
record.name = f"{record.partner_id.name} - {record.street}"
else:
record.name = _("New Supply Point")
Loading