Initial commit of rma and rma_sale for Odoo 11.0

Big changes to tests (because of the ways stock has changed) and allow activities to be set on RMAs.  Other refactors to reduce code duplication between picking and so returns.
This commit is contained in:
Jared Kipe
2018-08-17 14:42:53 -07:00
parent 50da6a7bbb
commit 625b9cbc38
29 changed files with 1672 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
from odoo import api, models, _
from odoo.exceptions import UserError
class StockPicking(models.Model):
_inherit = 'stock.picking'
@api.multi
def send_to_shipper(self):
res = False
for pick in self.filtered(lambda p: not p.carrier_tracking_ref):
res = super(StockPicking, pick).send_to_shipper()
return res