Vauxoo / addons-vauxoo

All our modules related to developments that solves generic issues on Odoo, or that solve internal problems on Odoo Core, if something is here, maybe it is solving an issue in your company, try it and report what you see.
http://www.vauxoo.com
193 stars 288 forks source link

[FIX] default_warehouse_from_sale_team: Avoid return the same record at create #1617

Closed R4Alex closed 1 year ago

R4Alex commented 1 year ago

The self in the method create inheritance could be not empty, for example, using a recordset.copy(), in that case the self is not empty.

Using the self.browse(), we will ensure that the self is empty, and the split create calls are made as expected.

R4Alex commented 1 year ago

Hi, could you review this PR? please, thank you @luisg123v @rolandojduartem