Skip to content

Commit

Permalink
[FIX] stock_dropshipping: double sequence
Browse files Browse the repository at this point in the history
Due to a typo, dropshipping sequences were created twice. We created a
"stock.dropshipping" sequence if no "stock.dropshippping" sequence was
found.

closes odoo#47877

Signed-off-by: Arnold Moyaux <[email protected]>
  • Loading branch information
sle-odoo committed Mar 18, 2020
1 parent 2b2b848 commit 0212687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/stock_dropshipping/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _create_dropship_sequence(self):
@api.model
def create_missing_dropship_sequence(self):
company_ids = self.env['res.company'].search([])
company_has_dropship_seq = self.env['ir.sequence'].search([('code', '=', 'stock.dropshippping')]).mapped('company_id')
company_has_dropship_seq = self.env['ir.sequence'].search([('code', '=', 'stock.dropshipping')]).mapped('company_id')
company_todo_sequence = company_ids - company_has_dropship_seq
company_todo_sequence._create_dropship_sequence()

Expand Down

0 comments on commit 0212687

Please sign in to comment.