diff --git a/joint_buying_sale/models/joint_buying_purchase_order.py b/joint_buying_sale/models/joint_buying_purchase_order.py index 2802d510..15f29efd 100644 --- a/joint_buying_sale/models/joint_buying_purchase_order.py +++ b/joint_buying_sale/models/joint_buying_purchase_order.py @@ -32,6 +32,8 @@ def _prepare_sale_order_vals(self): "partner_id": partner.id, "company_id": self.env.user.company_id.id, "pricelist_id": partner.property_product_pricelist.id, + "payment_term_id": partner.property_payment_term_id + and partner.property_payment_term_id.id, "fiscal_position_id": partner.property_account_position_id and partner.property_account_position_id.id, "commitment_date": self.grouped_order_id.deposit_date,