Merge branch 'development' into 'master'
Development See merge request prakash.jain/cor-odoo!2
This commit is contained in:
commit
b53b6a275f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -16,10 +16,6 @@ class ProjectMainenence(models.Model):
|
|||
name = fields.Char('Maintenance', required=True, ondelete="restrict")
|
||||
maintenance_type_id = fields.Many2one('project.maintenance.type', 'Manintenance Type', required=True, readonly=True, ondelete='cascade')
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields):
|
||||
res = super(ProjectMainenence, self).default_get(fields)
|
||||
print("self._context.get('active_model')>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", res, self._context)
|
||||
return res
|
||||
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -13,7 +13,7 @@
|
|||
<tree>
|
||||
<field name="maintenance_type_id"/>
|
||||
<field name="line_ids"/>
|
||||
<field name="total_amount" widget="monetary"/>
|
||||
<field name="total_amount" sum="Total" widget="monetary"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</tree>
|
||||
<form>
|
||||
|
@ -23,15 +23,15 @@
|
|||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="line_ids" context="{'default_maintenance_id':1}" colspan="4" nolabel="1" widget="one2many">
|
||||
<field name="line_ids" colspan="4" nolabel="1" widget="one2many">
|
||||
<tree editable="top">
|
||||
<field name="maintenance_id" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="maintenance_id" context="{'default_maintenance_type_id':parent.maintenance_type_id}" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="cost" widget="monetary" options="{'currency_field':'currency_id'}"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</tree>
|
||||
<form>
|
||||
<group>
|
||||
<field name="maintenance_id" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="maintenance_id" context="{'default_maintenance_type_id':parent.maintenance_type_id}" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="cost" widget="monetary" options="{'currency_field':'currency_id'}"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
|
|
Loading…
Reference in New Issue