summaryrefslogtreecommitdiff
path: root/addons/purchase
diff options
context:
space:
mode:
authorSbh (Openerp) <sbh@tinyerp.com>2012-03-30 14:28:48 +0530
committerSbh (Openerp) <sbh@tinyerp.com>2012-03-30 14:28:48 +0530
commiteb1986a7dfeeb0c7e2e2a7e5fcd98cf5043e1b05 (patch)
tree05c24f286ba466f758d881d26014d71b67004880 /addons/purchase
parentbba2e9ce07bde7a6ef4b1910a1cf87da8d9ee1a3 (diff)
parentb2e6ba941706c93fab3a47f0982ef38c14ef306e (diff)
[MERGE] rename address_id into parnter_id
bzr revid: sbh@tinyerp.com-20120330085848-2gmfjgadftc1a4bq
Diffstat (limited to 'addons/purchase')
-rw-r--r--addons/purchase/purchase.py4
-rw-r--r--addons/purchase/purchase_view.xml1
-rw-r--r--addons/purchase/report/order.rml2
-rw-r--r--addons/purchase/test/process/rfq2order2done.yml2
4 files changed, 4 insertions, 5 deletions
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py
index c7907bf7d3c..db1c6ff5cfb 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -428,7 +428,7 @@ class purchase_order(osv.osv):
'origin': order.name + ((order.origin and (':' + order.origin)) or ''),
'date': order.date_order,
'type': 'in',
- 'address_id': order.dest_address_id.id or order.partner_id.id,
+ 'partner_id': order.dest_address_id.id or order.partner_id.id,
'invoice_state': '2binvoiced' if order.invoice_method == 'picking' else 'none',
'purchase_id': order.id,
'company_id': order.company_id.id,
@@ -448,7 +448,7 @@ class purchase_order(osv.osv):
'location_id': order.partner_id.property_stock_supplier.id,
'location_dest_id': order.location_id.id,
'picking_id': picking_id,
- 'address_id': order.dest_address_id.id or order.partner_id.id,
+ 'partner_id': order.dest_address_id.id or order.partner_id.id,
'move_dest_id': order_line.move_dest_id.id,
'state': 'draft',
'purchase_line_id': order_line.id,
diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml
index 3c71126acb7..a3c2e70a85c 100644
--- a/addons/purchase/purchase_view.xml
+++ b/addons/purchase/purchase_view.xml
@@ -170,7 +170,6 @@
<notebook colspan="4">
<page string="Purchase Order">
<field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_supplier':1,'default_supplier':1,'default_customer':0}" options='{"quick_create": false}'/>
- <!--field name="partner_address_id" options='{"quick_create": false}'/-->
<field domain="[('type','=','purchase')]" name="pricelist_id" groups="base.group_extended"/>
<field name="origin" groups="base.group_extended"/>
<newline/>
diff --git a/addons/purchase/report/order.rml b/addons/purchase/report/order.rml
index b106ad4a4a2..ab4f8d9dd7b 100644
--- a/addons/purchase/report/order.rml
+++ b/addons/purchase/report/order.rml
@@ -167,7 +167,7 @@
<td>
<para style="terp_default_Bold_9">Shipping address :</para>
<para style="terp_default_9">[[ (o.dest_address_id and o.dest_address_id.name) or (o.warehouse_id and o.warehouse_id.name) or '']]</para>
- <para style="terp_default_9">[[ (o.dest_address_id and display_address(o.dest_address_id)) or (o.warehouse_id and display_address(o.warehouse_id.partner_address_id)) or '']]</para>
+ <para style="terp_default_9">[[ (o.dest_address_id and display_address(o.dest_address_id)) or (o.warehouse_id and display_address(o.warehouse_id.partner_id)) or '']]</para>
</td>
</tr>
</blockTable>
diff --git a/addons/purchase/test/process/rfq2order2done.yml b/addons/purchase/test/process/rfq2order2done.yml
index a9635fdfe4f..5a1e1ccde4b 100644
--- a/addons/purchase/test/process/rfq2order2done.yml
+++ b/addons/purchase/test/process/rfq2order2done.yml
@@ -40,7 +40,7 @@
assert len(purchase_order.picking_ids) >= 1, "You should have only one reception order"
for picking in purchase_order.picking_ids:
assert picking.state == "assigned", "Reception state should be in assigned state"
- assert picking.address_id.id == purchase_order.partner_id.id, "Delivery address of reception id is different from order"
+ assert picking.partner_id.id == purchase_order.partner_id.id, "Delivery address of reception id is different from order"
assert picking.company_id.id == purchase_order.company_id.id, "Company is not correspond with purchase order"
-
Reception is ready for process so now done the reception.