Merge lp:~openerp-dev/openobject-addons/trunk-muilti_address-rmu into lp:openobject-addons

Proposed by Randhir Mayatra (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-muilti_address-rmu
Merge into: lp:openobject-addons
Diff against target: 218 lines (+61/-34)
12 files modified
account/account.py (+1/-0)
account/account_invoice.py (+12/-0)
base_setup/res_config_view.xml (+4/-0)
sale/res_config.py (+8/-0)
sale/res_config_view.xml (+17/-0)
sale/res_partner_view.xml (+0/-21)
sale/sale_view.xml (+2/-2)
sale/security/sale_security.xml (+1/-1)
sale_stock/res_config.py (+0/-3)
sale_stock/res_config_view.xml (+0/-6)
sale_stock/sale_stock.py (+12/-0)
sale_stock/sale_stock_view.xml (+4/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-muilti_address-rmu
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+155895@code.launchpad.net

Description of the change

Hello,
 As per the task specification, "change multiple addresses per company". made all the changes.

Thank you...

-- Randhir (RMA)

To post a comment you must log in.
8607. By Randhir Mayatra (OpenERP)

[MERGE] merge with trunk

8608. By Randhir Mayatra (OpenERP)

[IMP] resolve conflicts

8609. By Randhir Mayatra (OpenERP)

[MERGE] merge with trunk

Unmerged revisions

8609. By Randhir Mayatra (OpenERP)

[MERGE] merge with trunk

8608. By Randhir Mayatra (OpenERP)

[IMP] resolve conflicts

8607. By Randhir Mayatra (OpenERP)

[MERGE] merge with trunk

8606. By Randhir Mayatra (OpenERP)

[IMP] change the address string

8605. By Randhir Mayatra (OpenERP)

[IMP] improve code

8604. By Ravish(OpenERP)

[IMP] done all require changes

8603. By Ravish(OpenERP)

[IMP]improved all require changes

8602. By Ravish(OpenERP)

improved all require changes

8601. By Ravish(OpenERP)

[Merge] with trunk

8600. By Ravish(OpenERP)

improved changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account.py'
2--- account/account.py 2013-04-04 09:52:57 +0000
3+++ account/account.py 2013-04-05 11:48:33 +0000
4@@ -3562,4 +3562,5 @@
5
6 account_bank_accounts_wizard()
7
8+
9 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
10
11=== modified file 'account/account_invoice.py'
12--- account/account_invoice.py 2013-03-29 10:55:46 +0000
13+++ account/account_invoice.py 2013-04-05 11:48:33 +0000
14@@ -1773,5 +1773,17 @@
15 self.pool.get('account.invoice').write(cr, uid, [context['default_res_id']], {'sent': True}, context=context)
16 self.pool.get('account.invoice').message_post(cr, uid, [context['default_res_id']], body=_("Invoice sent"), context=context)
17 return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)
18+
19+class res_partner(osv.osv):
20+ _inherit = 'res.partner'
21+
22+ def _address_type_get(self, cr, uid, context=None):
23+ res = super(res_partner, self)._address_type_get(cr, uid, context=context);
24+ res.append(('invoice', 'Invoice'))
25+ return res
26+ _columns = {
27+ 'type': fields.selection(_address_type_get, 'Address Type',
28+ help="Used to select automatically the right address according to the context in sales and purchases documents."),
29+ }
30
31 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
32
33=== modified file 'base_setup/res_config_view.xml'
34--- base_setup/res_config_view.xml 2012-12-17 08:30:17 +0000
35+++ base_setup/res_config_view.xml 2013-04-05 11:48:33 +0000
36@@ -28,6 +28,10 @@
37 </div>
38 </div>
39 </group>
40+ <group name="multi_address" invisible="1">
41+ <label for="id" string="Contact's Addresses"/>
42+ <div/>
43+ </group>
44 <group>
45 <label for="id" string="Email"/>
46 <div name="email">
47
48=== modified file 'sale/res_config.py'
49--- sale/res_config.py 2013-04-04 09:52:57 +0000
50+++ sale/res_config.py 2013-04-05 11:48:33 +0000
51@@ -146,5 +146,13 @@
52 if not module_sale_analytic_plans:
53 return {}
54 return {'value': {'group_analytic_account_for_sales': module_sale_analytic_plans}}
55+
56+class base_config_settings(osv.osv_memory):
57+ _inherit = 'base.config.settings'
58+ _columns = {
59+ 'group_delivery_invoice_address': fields.boolean("Allow supporting several addresses per company ",
60+ implied_group='sale.group_delivery_invoice_address',
61+ help="Allows you to use different types (invoice, contact, delivery, etc) of addresses for contacts of a company"),
62+ }
63
64 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
65
66=== modified file 'sale/res_config_view.xml'
67--- sale/res_config_view.xml 2013-03-01 08:29:28 +0000
68+++ sale/res_config_view.xml 2013-04-05 11:48:33 +0000
69@@ -133,5 +133,22 @@
70 </xpath>
71 </field>
72 </record>
73+
74+ <record id="view_general_configuration" model="ir.ui.view">
75+ <field name="name">base.config.settings.signup</field>
76+ <field name="model">base.config.settings</field>
77+ <field name="inherit_id" ref="base_setup.view_general_configuration"/>
78+ <field name="arch" type="xml">
79+ <xpath expr="//group[@name='multi_address']" position="attributes">
80+ <attribute name="invisible">False</attribute>
81+ </xpath>
82+ <xpath expr="//group[@name='multi_address']/div" position="inside">
83+ <div>
84+ <field name="group_delivery_invoice_address" class="oe_inline"/>
85+ <label for="group_delivery_invoice_address"/>
86+ </div>
87+ </xpath>
88+ </field>
89+ </record>
90 </data>
91 </openerp>
92
93=== modified file 'sale/res_partner_view.xml'
94--- sale/res_partner_view.xml 2012-12-20 11:43:56 +0000
95+++ sale/res_partner_view.xml 2013-04-05 11:48:33 +0000
96@@ -55,27 +55,6 @@
97 </xpath>
98 </field>
99 </record>
100-
101- <record id="res_partner_address_type" model="ir.ui.view">
102- <field name="name">res.partner.view.address_type</field>
103- <field name="model">res.partner</field>
104- <field name="inherit_id" ref="base.view_partner_form" />
105- <field name="arch" type="xml">
106- <xpath expr="//label[@for='type']" position="attributes">
107- <attribute name="groups">sale.group_delivery_invoice_address</attribute>
108- </xpath>
109- <xpath expr="//label[@for='type']" position="attributes">
110- <attribute name="invisible">False</attribute>
111- </xpath>
112- <xpath expr="//div[@name='div_type']" position="attributes">
113- <attribute name="invisible">False</attribute>
114- </xpath>
115- <xpath expr="//div[@name='div_type']" position="attributes">
116- <attribute name="groups">sale.group_delivery_invoice_address</attribute>
117- </xpath>
118- </field>
119- </record>
120-
121 </data>
122 </openerp>
123
124
125=== modified file 'sale/sale_view.xml'
126--- sale/sale_view.xml 2013-03-14 11:27:40 +0000
127+++ sale/sale_view.xml 2013-04-05 11:48:33 +0000
128@@ -155,8 +155,8 @@
129 <group>
130 <field name="partner_id" on_change="onchange_partner_id(partner_id, context)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}'/>
131 <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}"/>
132- <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/>
133- <field name="project_id" context="{'partner_id':partner_id, 'default_pricelist_id':pricelist_id, 'default_name':name, 'default_type': 'contract'}" groups="sale.group_analytic_accounting" domain="[('type','in',['view','normal','contract'])]"/>
134+ <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}" invisible="1"/>
135+ <field name="project_id" context="{'partner_id':partner_id, 'pricelist_id':pricelist_id, 'default_name':name, 'default_type': 'contract'}" groups="sale.group_analytic_accounting" domain="[('type','in',['view','normal','contract'])]"/>
136 </group>
137 <group>
138 <field name="date_order"/>
139
140=== modified file 'sale/security/sale_security.xml'
141--- sale/security/sale_security.xml 2012-12-21 16:48:08 +0000
142+++ sale/security/sale_security.xml 2013-04-05 11:48:33 +0000
143@@ -30,7 +30,7 @@
144 </record>
145
146 <record id="group_delivery_invoice_address" model="res.groups">
147- <field name="name">Addresses in Sales Orders</field>
148+ <field name="name">Multiple addresses per company</field>
149 <field name="category_id" ref="base.module_category_hidden"/>
150 </record>
151
152
153=== modified file 'sale_stock/res_config.py'
154--- sale_stock/res_config.py 2013-03-27 13:00:26 +0000
155+++ sale_stock/res_config.py 2013-04-05 11:48:33 +0000
156@@ -26,9 +26,6 @@
157 _inherit = 'sale.config.settings'
158
159 _columns = {
160- 'group_sale_delivery_address': fields.boolean("Allow a different address for delivery and invoicing ",
161- implied_group='sale.group_delivery_invoice_address',
162- help="Allows you to specify different delivery and invoice addresses on a sales order."),
163 'group_invoice_deli_orders': fields.boolean('Generate invoices after and based on delivery orders',
164 implied_group='sale_stock.group_invoice_deli_orders',
165 help="To allow your salesman to make invoices for Delivery Orders using the menu 'Deliveries to Invoice'."),
166
167=== modified file 'sale_stock/res_config_view.xml'
168--- sale_stock/res_config_view.xml 2012-10-12 05:51:52 +0000
169+++ sale_stock/res_config_view.xml 2013-04-05 11:48:33 +0000
170@@ -8,12 +8,6 @@
171 <field name="inherit_id" ref="sale.view_sales_config"/>
172 <field name="arch" type="xml">
173 <data>
174- <xpath expr="//div[@name='Customer Features']" position="inside">
175- <div>
176- <field name="group_sale_delivery_address" class="oe_inline"/>
177- <label for="group_sale_delivery_address"/>
178- </div>
179- </xpath>
180 <xpath expr="//div[@name='group_invoice_so_lines']" position="replace">
181 <div>
182 <field name="group_invoice_so_lines" on_change="onchange_invoice_methods(group_invoice_so_lines, group_invoice_deli_orders)" class="oe_inline"/>
183
184=== modified file 'sale_stock/sale_stock.py'
185--- sale_stock/sale_stock.py 2013-02-04 11:29:49 +0000
186+++ sale_stock/sale_stock.py 2013-04-05 11:48:33 +0000
187@@ -630,3 +630,15 @@
188 }
189 sale_line_obj.create(cr, uid, vals, context=context)
190 return result
191+
192+class res_partner(osv.osv):
193+ _inherit = 'res.partner'
194+
195+ def _address_type_get(self, cr, uid, context=None):
196+ res = super(res_partner, self)._address_type_get(cr, uid, context=context);
197+ res.append(('delivery', 'Delivery'))
198+ return res
199+ _columns = {
200+ 'type': fields.selection(_address_type_get, 'Address Type',
201+ help="Used to select automatically the right address according to the context in sales and purchases documents."),
202+ }
203
204=== modified file 'sale_stock/sale_stock_view.xml'
205--- sale_stock/sale_stock_view.xml 2013-03-14 11:27:40 +0000
206+++ sale_stock/sale_stock_view.xml 2013-04-05 11:48:33 +0000
207@@ -62,7 +62,10 @@
208 name="product_uom_qty" class="oe_inline"
209 on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, product_packaging, parent.fiscal_position, True, context)"/>
210 </field>
211-
212+ <xpath expr="//field[@name='partner_shipping_id']" position="replace">
213+ <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/>
214+ </xpath>
215+
216 <field name='invoiced' position="after">
217 <field name="shipped"/>
218 <field name="invoice_exists" invisible="1"/>

Subscribers

People subscribed via source and target branches

to all changes: