Chandni Gandhi has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1117588-cga into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1117588 in OpenERP Addons: "sale_order_line not show invoice state"
https://bugs.launchpad.net/openobject-addons/+bug/1117588
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1117588-cga/+merge/147040
Hello,
Add the state of invoice in sale order line.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1117588-cga/+merge/147040
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1117588-cga.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2013-01-05 23:29:19 +0000
+++ account/account_invoice.py 2013-02-07 08:39:22 +0000
@@ -1387,7 +1387,15 @@
'invoice_line_tax_id': fields.many2many('account.tax', 'account_invoice_line_tax', 'invoice_line_id', 'tax_id', 'Taxes', domain=[('parent_id','=',False)]),
'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account'),
'company_id': fields.related('invoice_id','company_id',type='many2one',relation='res.company',string='Company', store=True, readonly=True),
- 'partner_id': fields.related('invoice_id','partner_id',type='many2one',relation='res.partner',string='Partner',store=True)
+ 'partner_id': fields.related('invoice_id','partner_id',type='many2one',relation='res.partner',string='Partner',store=True),
+ 'state':fields.related('invoice_id','state',type='selection',selection=[
+ ('draft','Draft'),
+ ('proforma','Pro-forma'),
+ ('proforma2','Pro-forma'),
+ ('open','Open'),
+ ('paid','Paid'),
+ ('cancel','Cancelled'),
+ ],string='Status'),
}
def _default_account_id(self, cr, uid, context=None):
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml 2013-02-05 13:38:55 +0000
+++ account/account_invoice_view.xml 2013-02-07 08:39:22 +0000
@@ -37,6 +37,7 @@
<field name="price_unit"/>
<field name="discount" groups="sale.group_discount_per_so_line"/>
<field name="price_subtotal"/>
+ <field name="state"/>
</tree>
</field>
</record>
_______________________________________________
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