File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed
spp_farmer_registry_base/models
spp_farmer_registry_laos/models Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ class Farmer(models.Model):
12
12
marital_status = fields .Selection (
13
13
[
14
14
("single" , "Single" ),
15
- ("married_monogamous" , "Married Monogamous" ),
16
- ("married_polygamous" , "Married Polygamous" ),
17
15
("widowed" , "Widowed" ),
18
16
("separated" , "Separated" ),
19
17
],
@@ -61,8 +59,6 @@ def _get_dynamic_selection(self):
61
59
farmer_marital_status = fields .Selection (
62
60
[
63
61
("single" , "Single" ),
64
- ("married_monogamous" , "Married Monogamous" ),
65
- ("married_polygamous" , "Married Polygamous" ),
66
62
("widowed" , "Widowed" ),
67
63
("separated" , "Separated" ),
68
64
],
Original file line number Diff line number Diff line change 2
2
3
3
from . import farm_activity
4
4
from . import farm
5
+ from . import farmer
5
6
from . import event_data
6
7
from . import generate_farmer_data
Original file line number Diff line number Diff line change
1
+ import logging
2
+
3
+ from odoo import fields , models
4
+
5
+ _logger = logging .getLogger (__name__ )
6
+
7
+
8
+ class Farmer (models .Model ):
9
+ _inherit = "res.partner"
10
+
11
+ marital_status = fields .Selection (
12
+ selection_add = [
13
+ ("married_monogamous" , "Married Monogamous" ),
14
+ ("married_polygamous" , "Married Polygamous" ),
15
+ ]
16
+ )
17
+
18
+
19
+ class TempFarmer (models .Model ):
20
+ _inherit = "spp.farmer"
21
+
22
+ farmer_marital_status = fields .Selection (
23
+ selection_add = [
24
+ ("married_monogamous" , "Married Monogamous" ),
25
+ ("married_polygamous" , "Married Polygamous" ),
26
+ ]
27
+ )
You can’t perform that action at this time.
0 commit comments