Commit Graph
9 Commits
Author SHA1 Message Date
Rémy Voet (ryv) d2f4cad653 [IMP] stock: improve the populate
- Add the `stock.quant` populate script
- Create more valid default location for picking type populate
- Fix currency populate

Part-of: odoo/odoo#77092
2021-09-24 14:00:20 +00:00
wan 3afbd1f58d [IMP] base: populate currency rates 2021-01-22 08:50:34 +00:00
william 8daee18848 [IMP] base: populate currency order on res company
The CHF currency was duplicated. Instead of using an hard coded list,
select from all the active currencies.
These are USD and EUR on a clean DB but it is easy to change if we want
to populate with another currency in some use case, without changing the
code.
2021-01-22 08:50:34 +00:00
william 0fa464e8e3 [FIX] base: populate company_id and user do not consume partner
* When setting company_id on the res.partner, the parent might have had
a different company_id

* We should not consume res.partner's when creating res.user's but
creating new ones instead.
2021-01-22 08:50:34 +00:00
Rémy Voet (ryv) 7d3c334948 [IMP] stock: add populate script 2020-11-30 12:50:09 +00:00
Julien Castiaux 90b52d144a [REF] base: Use Command helper for x2many
Task: 2366606
2020-11-30 10:16:09 +00:00
Victor Feyens 1eabd8e60a [FIX] base/populate: do not empty populated list during population.
The population of res users was emptying the list of populated partner
ids.

The lunch.supplier population was crashing because no partner id was
present in the partner population registry to use as `partner_id` for
the generated lunch suppliers.

closes odoo/odoo#50266

X-original-commit: a2adc346906ee753df6d8e49caa4ee5381629695
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-04-28 06:36:59 +00:00
Christophe Monniez 748cc7e501 [IMP] base, lunch: populate res.users and lunch models
closes odoo/odoo#48636

X-original-commit: f3f2a1e4723240b6396cea943fc86291c16f4c9d
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-03-30 21:30:15 +00:00
Xavier-Do 9d1a92548e [IMP] base: populate res.partner and res.company
X-original-commit: f360cc8d80bacf66923e45a98669959133806ff8
2020-03-30 21:30:15 +00:00