Khushboo Bhatt(openerp) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-addons18-purchase-apa-purchase-kbh into
lp:~openerp-dev/openobject-addons/trunk-addons18-purchase-apa.
Requested reviews:
Amit Patel (OpenERP) (apa-tiny)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons18-purchase-apa-purchase-kbh/+merge/130734
Hello,
purchase::
I have done following changes :
- default partner_id set when PO created from Imcoming Shipment.
- field name changed from Partner to Supplier
- domain added on order_id.
- "On Purchase Order Lines" create=false added.
Thanks,
KBH.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons18-purchase-apa-purchase-kbh/+merge/130734
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-addons18-purchase-apa.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2012-10-08 12:17:45 +0000
+++ account/account_invoice.py 2012-10-22 06:26:22 +0000
@@ -217,7 +217,7 @@
'date_due': fields.date('Due Date', readonly=True, states={'draft':[('readonly',False)]}, select=True,
help="If you use payment terms, the due date will be computed automatically at the generation "\
"of accounting entries. If you keep the payment term and the due date empty, it means direct payment. The payment term may compute several due dates, for example 50% now, 50% in one month."),
- 'partner_id': fields.many2one('res.partner', 'Partner', change_default=True, readonly=True, required=True, states={'draft':[('readonly',False)]}),
+ 'partner_id': fields.many2one('res.partner', 'Supplier', change_default=True, readonly=True, required=True, states={'draft':[('readonly',False)]}),
'payment_term': fields.many2one('account.payment.term', 'Payment Term',readonly=True, states={'draft':[('readonly',False)]},
help="If you use payment terms, the due date will be computed automatically at the generation "\
"of accounting entries. If you keep the payment term and the due date empty, it means direct payment. "\
=== modified file 'purchase/purchase_view.xml'
--- purchase/purchase_view.xml 2012-10-13 09:55:08 +0000
+++ purchase/purchase_view.xml 2012-10-22 06:26:22 +0000
@@ -451,7 +451,7 @@
<field name="name">purchase.order.line.tree</field>
<field name="model">purchase.order.line</field>
<field name="arch" type="xml">
- <tree string="Purchase Order Lines">
+ <tree string="Purchase Order Lines" create="false">
<field name="order_id"/>
<field name="name"/>
<field name="partner_id" string="Supplier" />
@@ -471,11 +471,11 @@
<field name="model">purchase.order.line</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
- <form string="Purchase Order Line" version="7.0">
+ <form string="Purchase Order Line" version="7.0" create="false">
<sheet>
<label for="order_id" class="oe_edit_only"/>
<h1>
- <field name="order_id" class="oe_inline"/>
+ <field name="order_id" class="oe_inline" domain="[('invoice_method','=','manual')]" />
<label string="," attrs="{'invisible':[('date_order','=',False)]}"/>
<field name="date_order" class="oe_inline"/>
</h1>
=== modified file 'purchase/stock_view.xml'
--- purchase/stock_view.xml 2012-09-19 06:10:54 +0000
+++ purchase/stock_view.xml 2012-10-22 06:26:22 +0000
@@ -18,7 +18,7 @@
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='date']" position="before">
- <field name="purchase_id"/>
+ <field name="purchase_id" context="{'search_default_partner_id':partner_id,'default_partner_id':partner_id}"/>
</xpath>
<xpath expr="//field[@name='company_id']" position="after">
<field name="warehouse_id" groups="stock.group_locations"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp