Skip to content

Commit fcdfcbf

Browse files
RLeeOSIbrian10048
authored andcommitted
[FIX] fieldservice_sale migration changes
1 parent 8d77aa2 commit fcdfcbf

8 files changed

+18
-20
lines changed

fieldservice_sale/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"depends": ["fieldservice", "sale_management", "fieldservice_account"],
1111
"data": [
1212
"security/ir.model.access.csv",
13-
"views/fsm_branch.xml",
1413
"views/fsm_location.xml",
1514
"views/fsm_order.xml",
1615
"views/product_template.xml",
16+
"views/res_branch.xml",
1717
"views/sale_order.xml",
1818
"views/res_config_settings.xml",
1919
],

fieldservice_sale/models/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33

44
from . import (
5-
fsm_branch,
65
fsm_location,
76
fsm_order,
87
product_template,
8+
res_branch,
99
sale_order_line,
1010
sale_order,
1111
)

fieldservice_sale/models/fsm_location.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
class FSMLocation(models.Model):
77
_inherit = "fsm.location"
88

9-
sales_territory_id = fields.Many2one("fsm.territory", string="Sales Territory")
9+
sales_territory_id = fields.Many2one("res.territory", string="Sales Territory")

fieldservice_sale/models/fsm_branch.py fieldservice_sale/models/res_branch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from odoo import fields, models
44

55

6-
class FSMBranch(models.Model):
7-
_inherit = "fsm.branch"
6+
class ResBranch(models.Model):
7+
_inherit = "res.branch"
88

99
pricelist_id = fields.Many2one(
1010
"product.pricelist",

fieldservice_sale/readme/CONTRIBUTORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Steve Campbell <[email protected]>
44
* Maxime Chambreuil <[email protected]>
55
* Wolfgang Hall <[email protected]>
6+
* Raphael Lee <[email protected]>
67

78
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
89
* Brian McMaster <[email protected]>

fieldservice_sale/views/fsm_branch.xml

-12
This file was deleted.
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<odoo>
2+
<record id="res_branch_form_view_pricelist" model="ir.ui.view">
3+
<field name="name">res.branch.form.pricelist</field>
4+
<field name="model">res.branch</field>
5+
<field name="inherit_id" ref="base_territory.res_branch_form_view" />
6+
<field name="arch" type="xml">
7+
<field name="partner_id" position="after">
8+
<field name="pricelist_id" groups="product.group_sale_pricelist" />
9+
</field>
10+
</field>
11+
</record>
12+
</odoo>

fieldservice_sale/views/res_config_settings.xml

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
<field name="group_fsm_template" eval="1" />
44
</record>
55
<function model="res.config.settings" name="execute">
6-
<!-- ids = -->
76
<value eval="[ref('fieldservice_sale.res_config_settings_fsm_template')]" />
8-
<!-- context = -->
9-
<value eval="{}" />
107
</function>
118
</odoo>

0 commit comments

Comments
 (0)