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
=== modified file 'account/account.py'
--- account/account.py 2013-04-04 09:52:57 +0000
+++ account/account.py 2013-04-05 11:48:33 +0000
@@ -3562,4 +3562,5 @@
35623562
3563account_bank_accounts_wizard()3563account_bank_accounts_wizard()
35643564
3565
3565# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:3566# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
35663567
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2013-03-29 10:55:46 +0000
+++ account/account_invoice.py 2013-04-05 11:48:33 +0000
@@ -1773,5 +1773,17 @@
1773 self.pool.get('account.invoice').write(cr, uid, [context['default_res_id']], {'sent': True}, context=context)1773 self.pool.get('account.invoice').write(cr, uid, [context['default_res_id']], {'sent': True}, context=context)
1774 self.pool.get('account.invoice').message_post(cr, uid, [context['default_res_id']], body=_("Invoice sent"), context=context)1774 self.pool.get('account.invoice').message_post(cr, uid, [context['default_res_id']], body=_("Invoice sent"), context=context)
1775 return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)1775 return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)
1776
1777class res_partner(osv.osv):
1778 _inherit = 'res.partner'
1779
1780 def _address_type_get(self, cr, uid, context=None):
1781 res = super(res_partner, self)._address_type_get(cr, uid, context=context);
1782 res.append(('invoice', 'Invoice'))
1783 return res
1784 _columns = {
1785 'type': fields.selection(_address_type_get, 'Address Type',
1786 help="Used to select automatically the right address according to the context in sales and purchases documents."),
1787 }
17761788
1777# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:1789# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
17781790
=== modified file 'base_setup/res_config_view.xml'
--- base_setup/res_config_view.xml 2012-12-17 08:30:17 +0000
+++ base_setup/res_config_view.xml 2013-04-05 11:48:33 +0000
@@ -28,6 +28,10 @@
28 </div>28 </div>
29 </div>29 </div>
30 </group>30 </group>
31 <group name="multi_address" invisible="1">
32 <label for="id" string="Contact's Addresses"/>
33 <div/>
34 </group>
31 <group>35 <group>
32 <label for="id" string="Email"/>36 <label for="id" string="Email"/>
33 <div name="email">37 <div name="email">
3438
=== modified file 'sale/res_config.py'
--- sale/res_config.py 2013-04-04 09:52:57 +0000
+++ sale/res_config.py 2013-04-05 11:48:33 +0000
@@ -146,5 +146,13 @@
146 if not module_sale_analytic_plans:146 if not module_sale_analytic_plans:
147 return {}147 return {}
148 return {'value': {'group_analytic_account_for_sales': module_sale_analytic_plans}}148 return {'value': {'group_analytic_account_for_sales': module_sale_analytic_plans}}
149
150class base_config_settings(osv.osv_memory):
151 _inherit = 'base.config.settings'
152 _columns = {
153 'group_delivery_invoice_address': fields.boolean("Allow supporting several addresses per company ",
154 implied_group='sale.group_delivery_invoice_address',
155 help="Allows you to use different types (invoice, contact, delivery, etc) of addresses for contacts of a company"),
156 }
149157
150# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:158# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
151159
=== modified file 'sale/res_config_view.xml'
--- sale/res_config_view.xml 2013-03-01 08:29:28 +0000
+++ sale/res_config_view.xml 2013-04-05 11:48:33 +0000
@@ -133,5 +133,22 @@
133 </xpath>133 </xpath>
134 </field>134 </field>
135 </record>135 </record>
136
137 <record id="view_general_configuration" model="ir.ui.view">
138 <field name="name">base.config.settings.signup</field>
139 <field name="model">base.config.settings</field>
140 <field name="inherit_id" ref="base_setup.view_general_configuration"/>
141 <field name="arch" type="xml">
142 <xpath expr="//group[@name='multi_address']" position="attributes">
143 <attribute name="invisible">False</attribute>
144 </xpath>
145 <xpath expr="//group[@name='multi_address']/div" position="inside">
146 <div>
147 <field name="group_delivery_invoice_address" class="oe_inline"/>
148 <label for="group_delivery_invoice_address"/>
149 </div>
150 </xpath>
151 </field>
152 </record>
136 </data>153 </data>
137</openerp>154</openerp>
138155
=== modified file 'sale/res_partner_view.xml'
--- sale/res_partner_view.xml 2012-12-20 11:43:56 +0000
+++ sale/res_partner_view.xml 2013-04-05 11:48:33 +0000
@@ -55,27 +55,6 @@
55 </xpath>55 </xpath>
56 </field>56 </field>
57 </record>57 </record>
58
59 <record id="res_partner_address_type" model="ir.ui.view">
60 <field name="name">res.partner.view.address_type</field>
61 <field name="model">res.partner</field>
62 <field name="inherit_id" ref="base.view_partner_form" />
63 <field name="arch" type="xml">
64 <xpath expr="//label[@for='type']" position="attributes">
65 <attribute name="groups">sale.group_delivery_invoice_address</attribute>
66 </xpath>
67 <xpath expr="//label[@for='type']" position="attributes">
68 <attribute name="invisible">False</attribute>
69 </xpath>
70 <xpath expr="//div[@name='div_type']" position="attributes">
71 <attribute name="invisible">False</attribute>
72 </xpath>
73 <xpath expr="//div[@name='div_type']" position="attributes">
74 <attribute name="groups">sale.group_delivery_invoice_address</attribute>
75 </xpath>
76 </field>
77 </record>
78
79 </data>58 </data>
80</openerp>59</openerp>
8160
8261
=== modified file 'sale/sale_view.xml'
--- sale/sale_view.xml 2013-03-14 11:27:40 +0000
+++ sale/sale_view.xml 2013-04-05 11:48:33 +0000
@@ -155,8 +155,8 @@
155 <group>155 <group>
156 <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}'/>156 <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}'/>
157 <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}"/>157 <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}"/>
158 <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/>158 <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}" invisible="1"/>
159 <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'])]"/>159 <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'])]"/>
160 </group>160 </group>
161 <group>161 <group>
162 <field name="date_order"/>162 <field name="date_order"/>
163163
=== modified file 'sale/security/sale_security.xml'
--- sale/security/sale_security.xml 2012-12-21 16:48:08 +0000
+++ sale/security/sale_security.xml 2013-04-05 11:48:33 +0000
@@ -30,7 +30,7 @@
30 </record>30 </record>
3131
32 <record id="group_delivery_invoice_address" model="res.groups">32 <record id="group_delivery_invoice_address" model="res.groups">
33 <field name="name">Addresses in Sales Orders</field>33 <field name="name">Multiple addresses per company</field>
34 <field name="category_id" ref="base.module_category_hidden"/>34 <field name="category_id" ref="base.module_category_hidden"/>
35 </record>35 </record>
3636
3737
=== modified file 'sale_stock/res_config.py'
--- sale_stock/res_config.py 2013-03-27 13:00:26 +0000
+++ sale_stock/res_config.py 2013-04-05 11:48:33 +0000
@@ -26,9 +26,6 @@
26 _inherit = 'sale.config.settings'26 _inherit = 'sale.config.settings'
2727
28 _columns = {28 _columns = {
29 'group_sale_delivery_address': fields.boolean("Allow a different address for delivery and invoicing ",
30 implied_group='sale.group_delivery_invoice_address',
31 help="Allows you to specify different delivery and invoice addresses on a sales order."),
32 'group_invoice_deli_orders': fields.boolean('Generate invoices after and based on delivery orders',29 'group_invoice_deli_orders': fields.boolean('Generate invoices after and based on delivery orders',
33 implied_group='sale_stock.group_invoice_deli_orders',30 implied_group='sale_stock.group_invoice_deli_orders',
34 help="To allow your salesman to make invoices for Delivery Orders using the menu 'Deliveries to Invoice'."),31 help="To allow your salesman to make invoices for Delivery Orders using the menu 'Deliveries to Invoice'."),
3532
=== modified file 'sale_stock/res_config_view.xml'
--- sale_stock/res_config_view.xml 2012-10-12 05:51:52 +0000
+++ sale_stock/res_config_view.xml 2013-04-05 11:48:33 +0000
@@ -8,12 +8,6 @@
8 <field name="inherit_id" ref="sale.view_sales_config"/>8 <field name="inherit_id" ref="sale.view_sales_config"/>
9 <field name="arch" type="xml">9 <field name="arch" type="xml">
10 <data>10 <data>
11 <xpath expr="//div[@name='Customer Features']" position="inside">
12 <div>
13 <field name="group_sale_delivery_address" class="oe_inline"/>
14 <label for="group_sale_delivery_address"/>
15 </div>
16 </xpath>
17 <xpath expr="//div[@name='group_invoice_so_lines']" position="replace">11 <xpath expr="//div[@name='group_invoice_so_lines']" position="replace">
18 <div>12 <div>
19 <field name="group_invoice_so_lines" on_change="onchange_invoice_methods(group_invoice_so_lines, group_invoice_deli_orders)" class="oe_inline"/>13 <field name="group_invoice_so_lines" on_change="onchange_invoice_methods(group_invoice_so_lines, group_invoice_deli_orders)" class="oe_inline"/>
2014
=== modified file 'sale_stock/sale_stock.py'
--- sale_stock/sale_stock.py 2013-02-04 11:29:49 +0000
+++ sale_stock/sale_stock.py 2013-04-05 11:48:33 +0000
@@ -630,3 +630,15 @@
630 }630 }
631 sale_line_obj.create(cr, uid, vals, context=context)631 sale_line_obj.create(cr, uid, vals, context=context)
632 return result632 return result
633
634class res_partner(osv.osv):
635 _inherit = 'res.partner'
636
637 def _address_type_get(self, cr, uid, context=None):
638 res = super(res_partner, self)._address_type_get(cr, uid, context=context);
639 res.append(('delivery', 'Delivery'))
640 return res
641 _columns = {
642 'type': fields.selection(_address_type_get, 'Address Type',
643 help="Used to select automatically the right address according to the context in sales and purchases documents."),
644 }
633645
=== modified file 'sale_stock/sale_stock_view.xml'
--- sale_stock/sale_stock_view.xml 2013-03-14 11:27:40 +0000
+++ sale_stock/sale_stock_view.xml 2013-04-05 11:48:33 +0000
@@ -62,7 +62,10 @@
62 name="product_uom_qty" class="oe_inline"62 name="product_uom_qty" class="oe_inline"
63 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)"/>63 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)"/>
64 </field>64 </field>
6565 <xpath expr="//field[@name='partner_shipping_id']" position="replace">
66 <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/>
67 </xpath>
68
66 <field name='invoiced' position="after">69 <field name='invoiced' position="after">
67 <field name="shipped"/>70 <field name="shipped"/>
68 <field name="invoice_exists" invisible="1"/>71 <field name="invoice_exists" invisible="1"/>

Subscribers

People subscribed via source and target branches

to all changes: