Skip to content
Snippets Groups Projects
Commit abfe37fc authored by Brice bib Bartoletti's avatar Brice bib Bartoletti
Browse files

[FIX]purchase_stock,stock_account:partner on aml

The aim of this commit is to set partner on anglosaxon
aml in order to help our client in their stock
reconciliation process in case it hasn't been done automatically.

Before this commit:
anglosaxon line were created without partner

After this commit:
A partner is set when anglosaxon line are created

closes odoo/odoo#84468

Ticket: 2692308
Community-pr: https://github.com/odoo/odoo/pull/84468


Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 5ff4eb02
Branches
Tags
No related merge requests found
......@@ -122,6 +122,7 @@ class AccountMove(models.Model):
vals = {
'name': line.name[:64],
'move_id': move.id,
'partner_id': move.commercial_partner_id.id,
'currency_id': line.currency_id.id,
'product_id': line.product_id.id,
'product_uom_id': line.product_uom_id.id,
......@@ -141,6 +142,7 @@ class AccountMove(models.Model):
vals = {
'name': line.name[:64],
'move_id': move.id,
'partner_id': move.commercial_partner_id.id,
'currency_id': line.currency_id.id,
'product_id': line.product_id.id,
'product_uom_id': line.product_uom_id.id,
......
......@@ -139,6 +139,7 @@ class AccountMove(models.Model):
lines_vals_list.append({
'name': line.name[:64],
'move_id': move.id,
'partner_id': move.commercial_partner_id.id,
'product_id': line.product_id.id,
'product_uom_id': line.product_uom_id.id,
'quantity': line.quantity,
......@@ -154,6 +155,7 @@ class AccountMove(models.Model):
lines_vals_list.append({
'name': line.name[:64],
'move_id': move.id,
'partner_id': move.commercial_partner_id.id,
'product_id': line.product_id.id,
'product_uom_id': line.product_uom_id.id,
'quantity': line.quantity,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment