File tree 5 files changed +29
-3
lines changed
5 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (C) 2018 Open Source Integrators
2
2
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3
-
4
3
{
5
4
'name' : 'Field Service - Sales' ,
6
5
'version' : '12.0.2.4.0' ,
15
14
],
16
15
'data' : [
17
16
'security/ir.model.access.csv' ,
17
+ 'views/fsm_branch.xml' ,
18
18
'views/fsm_location.xml' ,
19
19
'views/fsm_order.xml' ,
20
20
'views/product_template.xml' ,
Original file line number Diff line number Diff line change 2
2
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3
3
4
4
from . import (
5
+ fsm_branch ,
5
6
fsm_location ,
6
7
fsm_order ,
7
8
product_template ,
Original file line number Diff line number Diff line change
1
+ # Copyright (C) 2020 Open Source Integrators
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3
+ from odoo import fields , models
4
+
5
+
6
+ class FSMBranch (models .Model ):
7
+ _inherit = 'fsm.branch'
8
+
9
+ pricelist_id = fields .Many2one (
10
+ 'product.pricelist' , string = 'Default Pricelist' ,
11
+ help = "Default pricelist for new customers of this branch." )
Original file line number Diff line number Diff line change 1
- The roadmap of the Field Service application is documented on
2
- ` Github < https://github.com/OCA/field-service/issues/1 >`_.
1
+ * Provide a mapping between an address and the branch and use it to set the
2
+ pricelist of a new partner
Original file line number Diff line number Diff line change
1
+ <odoo >
2
+
3
+ <record id =" fsm_branch_form_view_pricelist" model =" ir.ui.view" >
4
+ <field name =" name" >fsm.branch.form.pricelist</field >
5
+ <field name =" model" >fsm.branch</field >
6
+ <field name =" inherit_id" ref =" fieldservice.fsm_branch_form_view" />
7
+ <field name =" arch" type =" xml" >
8
+ <field name =" partner_id" position =" after" >
9
+ <field name =" pricelist_id" groups =" product.group_sale_pricelist" />
10
+ </field >
11
+ </field >
12
+ </record >
13
+
14
+ </odoo >
You can’t perform that action at this time.
0 commit comments