跳至內容
選單
此問題已被標幟
1 回覆
3487 瀏覽次數

How can I add a new field named partner_id_shipping to the account_invoice. It is the same like partner_id but with an other name.


How Can I implement this with a new modul?

I try this:


from import openerp.osv fields, osv


class account_invoice(osv.osv):
_inherit = 'account.invoice'

_columns = {

'partner_id_shipping': fields.Many2one(, string='Partner', change_default=True,
required=True, readonly=True, states={'draft''readonly': [(, False)]},
track_visibility='always'),
}
頭像
捨棄
最佳答案

Have you seen https://apps.openerp.com/apps/modules/8.0/account_invoice_shipping_address/

This module adds a shipping address field to the invoice, also it fills it in sale and picking invoicing

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
12月 15
5295
0
6月 17
2581
1
3月 15
6300
1
3月 15
5487
1
5月 25
1038