添加功能
This commit is contained in:
@@ -614,7 +614,16 @@ class PropertyLeaseContract(models.Model):
|
||||
contract_ids = self.env["property.lease.contract"].browse(
|
||||
self._context.get('active_ids', self._context.get('active_id')))
|
||||
for rec in contract_ids:
|
||||
rec.onchange_lease_ids()
|
||||
if rec.electricity_fee_ids:
|
||||
for line in rec.electricity_fee_ids:
|
||||
line.is_fix_loss = 'yes'
|
||||
if line.unit_price > 0:
|
||||
line.is_fix_price = 'yes'
|
||||
if rec.water_fee_ids:
|
||||
for line in rec.water_fee_ids:
|
||||
line.is_fix_loss = 'yes'
|
||||
if line.unit_price > 0:
|
||||
line.is_fix_price = 'yes'
|
||||
|
||||
def update_admin_id(self):
|
||||
contract_ids = self.env["property.lease.contract"].browse(
|
||||
|
||||
@@ -839,7 +839,6 @@
|
||||
<field name="is_fix_loss"/>
|
||||
<field name="is_fix_price"/>
|
||||
<field name="unit_price" readonly="is_fix_price == 'no'"/>
|
||||
<field name="unit_price"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
</tree>
|
||||
|
||||
Reference in New Issue
Block a user