forked from Yaltik/golem
Add area_id to family_history
This commit is contained in:
parent
5cc81003da
commit
8fa32e185e
@ -38,6 +38,7 @@ class GolemFamily(models.Model):
|
|||||||
('season_id', '=', default_season.id)], limit=1)
|
('season_id', '=', default_season.id)], limit=1)
|
||||||
history_data = {
|
history_data = {
|
||||||
'zip_code': family.zip,
|
'zip_code': family.zip,
|
||||||
|
'area_id': family.area_id.id,
|
||||||
'city': family.city,
|
'city': family.city,
|
||||||
'country_id': family.country_id.id,
|
'country_id': family.country_id.id,
|
||||||
'member_ids':[(6, False, family.member_ids.ids)]
|
'member_ids':[(6, False, family.member_ids.ids)]
|
||||||
|
@ -35,6 +35,7 @@ class GolemFamilyHistory(models.Model):
|
|||||||
season_id = fields.Many2one('golem.season', required=True, auto_join=True,
|
season_id = fields.Many2one('golem.season', required=True, auto_join=True,
|
||||||
string='Season', ondelete='cascade')
|
string='Season', ondelete='cascade')
|
||||||
zip_code = fields.Char(string='ZIP')
|
zip_code = fields.Char(string='ZIP')
|
||||||
|
area_id = fields.Many2one('golem.partner.area', string='Area')
|
||||||
city = fields.Char()
|
city = fields.Char()
|
||||||
country_id = fields.Many2one('res.country', string='Country')
|
country_id = fields.Many2one('res.country', string='Country')
|
||||||
member_ids = fields.Many2many('res.partner', string='Members',
|
member_ids = fields.Many2many('res.partner', string='Members',
|
||||||
|
@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="season_id"/>
|
<field name="season_id"/>
|
||||||
<field name="member_ids"/>
|
<field name="member_ids"/>
|
||||||
<field name="zip_code"/>
|
<field name="zip_code"/>
|
||||||
|
<field name="area_id"/>
|
||||||
<field name="city"/>
|
<field name="city"/>
|
||||||
<field name="country_id"/>
|
<field name="country_id"/>
|
||||||
</tree>
|
</tree>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user