shopinvader / odoo-shopinvader

Odoo Modules. Sorry Magento, Shopinvader is coming
GNU Affero General Public License v3.0
121 stars 104 forks source link

RFC Support additional contact data on customer endpoint #502

Closed simahawk closed 1 year ago

simahawk commented 5 years ago

Usecase You are registering a company but you want to provide a contact as well.

Today You cannot, you have to wait for the whole registration to finish, log in, add addresses (which are not contact

Proposal Add support for all res.partner:type options via prefixes. We can loop on them and inject all keys supported for addresses prefixed by contact_ or invoice_ or delivery_ etc. If these keys are found a new child partner is created w/ proper type.

sebastienbeau commented 5 years ago

addresses[0]['type']=delivery addresses[0]['name']=dupond

addresses[1]['type']=invoicing addresses[1]['name']=durant

addresses[2]['type']=invoicing addresses[2]['name']=simone

addresses[3]['type']=contact addresses[3]['name']=thibault

simahawk commented 5 years ago

sounds good as we said :)

simahawk commented 5 years ago
  1. we add a flag "is admin user"
  2. the customer gets created
  3. if one of the addresses is admin -> create a new user on locomotive via shopinvader_locomotive
github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.