Skip to content

Commit 3888b19

Browse files
committed
[FIX] ValueError: Cannot convert res.company.country_id to SQL because it is not stored
1 parent 5ebfd41 commit 3888b19

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import res_company
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from odoo import fields, models
2+
3+
4+
class ResCompany(models.Model):
5+
_inherit = "res.company"
6+
7+
street = fields.Char(store=True)
8+
street2 = fields.Char(store=True)
9+
zip = fields.Char(store=True)
10+
city = fields.Char(store=True)
11+
state_id = fields.Many2one(store=True)
12+
country_id = fields.Many2one(store=True)

0 commit comments

Comments
 (0)