[IMP] *rma*: some improvements

This commit is contained in:
Ernesto Tejeda
2020-12-12 10:21:44 -05:00
parent b251dd480d
commit 68b8a9ec97
2 changed files with 4 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ class WebsiteForm(WebsiteForm):
def insert_record(self, request, model, values, custom, meta=None):
if model.model == 'rma':
values['partner_id'] = request.env.user.partner_id.id
values['origin'] = 'Website form'
res = super(WebsiteForm, self).insert_record(
request, model, values, custom, meta)
# Add the customer to the followers, the same as when creating