Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4773 Widoki

Dear all,

Is it possible to record multiple addresses on each customer or supplier record?  Often, there are different invoice and delivery addressed used by customers or suppliers.  How do you manage this without creating multiple (duplicate) customer or supplier records?  Surely Odoo should be able to do this easily.  Afterall, it's simply a one-to-many database design!!

Awatar
Odrzuć

Simply create a new one2many field and show it in your view, you'll be able to add as many customers to the list as you wish then.

Najlepsza odpowiedź

Hi Iming,

Create a new one2many field in your model and then add it to the view.
yourmodel.py:

//You could alternatively use the 8.0 API here too, then you'd use models.Model
 class your_class(osv.osv):
_inherit = res.partner
'all_partner_ids': fields.one2many(
            'res.partner', 'assigned_partner_ids',
            string='Customers',
        ),

yourview.xml:

<field name="all_partner_ids"/> 
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
12895
0
cze 16
3810
1
cze 15
6236
4
paź 22
10346
0
cze 16
5511