summaryrefslogtreecommitdiff
path: root/fixco_custom/models
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-05-29 15:20:48 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-05-29 15:20:48 +0700
commit4414569b59fc91b7f4286748852b77e986697326 (patch)
tree1ab0b99bdc0d1e53f434f43d9999f3256d2f2421 /fixco_custom/models
parentf6bb7e8c0236c4a3b3c89101d13ca593d7170283 (diff)
add field shipping method
Diffstat (limited to 'fixco_custom/models')
-rw-r--r--fixco_custom/models/__init__.py3
-rw-r--r--fixco_custom/models/partner.py (renamed from fixco_custom/models/res_partner.py)2
-rw-r--r--fixco_custom/models/sale.py7
3 files changed, 10 insertions, 2 deletions
diff --git a/fixco_custom/models/__init__.py b/fixco_custom/models/__init__.py
index 4c58886..30fb10d 100644
--- a/fixco_custom/models/__init__.py
+++ b/fixco_custom/models/__init__.py
@@ -1 +1,2 @@
-from . import res_partner \ No newline at end of file
+from . import partner
+from . import sale
diff --git a/fixco_custom/models/res_partner.py b/fixco_custom/models/partner.py
index 112e7f0..4f66b2b 100644
--- a/fixco_custom/models/res_partner.py
+++ b/fixco_custom/models/partner.py
@@ -4,4 +4,4 @@ from odoo import models, fields, api
class Partner(models.Model):
_inherit = 'res.partner'
- test_new_fields = fields.Char(string='Test New Fields') \ No newline at end of file
+ test_new_fields = fields.Char(string='Test New Fields')
diff --git a/fixco_custom/models/sale.py b/fixco_custom/models/sale.py
new file mode 100644
index 0000000..6c49ac8
--- /dev/null
+++ b/fixco_custom/models/sale.py
@@ -0,0 +1,7 @@
+from odoo import models, fields, api
+
+
+class SaleOrder(models.Model):
+ _inherit = "sale.order"
+
+ carrier_id = fields.Many2one('delivery.carrier', string='Shipping Method')