|
34 | 34 |
|
35 | 35 | class SaleOrder(OdooTaskSet):
|
36 | 36 | list_fields = ["activity_exception_decoration", "activity_exception_icon", "activity_state", "activity_summary", "activity_type_icon", "activity_type_id", "name", "create_date", "commitment_date", "expected_date", "partner_id", "website_id", "user_id", "activity_ids", "team_id", "tag_ids", "company_id", "amount_untaxed", "amount_tax", "amount_total", "state", "validity_date", "invoice_status", "message_needaction", "currency_id"]
|
37 |
| - form_fields = ["authorized_transaction_ids", "is_subscription", "enterprise_is_new_plan", "state", "subscription_management", "is_upselling", "stage_category", "end_date", "archived_product_count", "partner_credit_warning", "project_ids", "is_product_milestone", "project_count", "milestone_count", "tasks_count", "timesheet_count", "timesheet_total_duration", "timesheet_encode_uom_id", "expense_count", "delivery_count", "id", "planning_first_sale_line_id", "planning_initial_date", "planning_hours_to_plan", "planning_hours_planned", "invoice_count", "attendee_count", "event_booth_count", "history_count", "recurring_monthly", "mrp_production_count", "database_count", "payment_exception", "to_renew", "renew_state", "name", "partner_id", "commission_plan_frozen", "referrer_id", "commission_plan_id", "delivery_set", "is_all_service", "recompute_delivery_price", "sale_order_template_id", "validity_date", "date_order", "recurrence_id", "invoice_date_diff", "next_invoice_date", "expected_next_invoice_date", "show_update_pricelist", "pricelist_id", "company_id", "currency_id", "tax_country_id", "payment_term_id", "new_sub_id", "old_sub_id", "order_line", "is_avatax", "note", "tax_totals", "commission", "sale_order_option_ids", "user_id", "team_id", "website_id", "is_abandoned_cart", "cart_recovery_email_sent", "require_signature", "require_payment", "website_description", "reference", "client_order_ref", "tag_ids", "start_date", "first_contract_date", "avatax_unique_code", "show_update_fpos", "fiscal_position_id", "partner_invoice_id", "analytic_account_id", "visible_project", "project_id", "invoice_status", "commercial_partner_id", "payment_token_id", "warehouse_id", "picking_policy", "commitment_date", "expected_date", "show_json_popover", "json_popover", "effective_date", "delivery_status", "origin", "campaign_id", "medium_id", "source_id", "internal_note", "enterprise_final_customer_id", "enterprise_security_email", "is_staff_restricted", "subscription_tag_ids", "enterprise_saas", "upsell_order_id", "upsell_date", "upsell_content", "maintenance_subscription_id", "maintenance_main_subscription_id", "maintenance_is_activated", "maintenance_stage_category", "odoo_sh_extra_gb", "odoo_sh_extra_stagings", "odoo_sh_extra_workers", "odoo_sh_extra_dedicated", "exclude_dashboard", "github_user_ids", "is_taxcloud", "is_taxcloud_configured", "display_name"] |
| 37 | + form_fields = ["authorized_transaction_ids", "enterprise_is_new_plan", "state", "subscription_management", "is_upselling", "stage_category", "end_date", "archived_product_count", "partner_credit_warning", "project_ids", "is_product_milestone", "project_count", "milestone_count", "tasks_count", "timesheet_count", "timesheet_total_duration", "timesheet_encode_uom_id", "expense_count", "delivery_count", "id", "planning_first_sale_line_id", "planning_initial_date", "planning_hours_to_plan", "planning_hours_planned", "invoice_count", "attendee_count", "event_booth_count", "history_count", "recurring_monthly", "mrp_production_count", "database_count", "payment_exception", "to_renew", "renew_state", "name", "partner_id", "commission_plan_frozen", "referrer_id", "commission_plan_id", "delivery_set", "is_all_service", "recompute_delivery_price", "sale_order_template_id", "validity_date", "date_order", "recurrence_id", "invoice_date_diff", "next_invoice_date", "expected_next_invoice_date", "show_update_pricelist", "pricelist_id", "company_id", "currency_id", "tax_country_id", "payment_term_id", "new_sub_id", "old_sub_id", "order_line", "is_avatax", "note", "tax_totals", "commission", "sale_order_option_ids", "user_id", "team_id", "website_id", "is_abandoned_cart", "cart_recovery_email_sent", "require_signature", "require_payment", "website_description", "reference", "client_order_ref", "tag_ids", "start_date", "first_contract_date", "avatax_unique_code", "show_update_fpos", "fiscal_position_id", "partner_invoice_id", "analytic_account_id", "visible_project", "project_id", "invoice_status", "commercial_partner_id", "payment_token_id", "warehouse_id", "picking_policy", "commitment_date", "expected_date", "show_json_popover", "json_popover", "effective_date", "delivery_status", "origin", "campaign_id", "medium_id", "source_id", "internal_note", "enterprise_final_customer_id", "enterprise_security_email", "is_staff_restricted", "subscription_tag_ids", "enterprise_saas", "upsell_order_id", "upsell_date", "upsell_content", "maintenance_subscription_id", "maintenance_main_subscription_id", "maintenance_is_activated", "maintenance_stage_category", "odoo_sh_extra_gb", "odoo_sh_extra_stagings", "odoo_sh_extra_workers", "odoo_sh_extra_dedicated", "exclude_dashboard", "github_user_ids", "is_taxcloud", "is_taxcloud_configured", "display_name"] |
38 | 38 | line_fields = ["analytic_precision", "sequence", "display_type", "product_uom_category_id", "product_type", "product_updatable", "product_id", "product_template_id", "product_template_attribute_value_ids", "product_custom_attribute_value_ids", "product_no_variant_attribute_value_ids", "is_configurable_product", "event_id", "event_ticket_id", "is_event_booth", "event_booth_category_id", "event_booth_pending_ids", "name", "temporal_type", "website_description", "analytic_distribution", "product_uom_qty", "qty_delivered", "virtual_available_at_date", "qty_available_today", "free_qty_today", "scheduled_date", "forecast_expected_date", "warehouse_id", "move_ids", "qty_to_deliver", "is_mto", "display_qty_widget", "qty_delivered_method", "qty_invoiced", "qty_to_invoice", "product_uom_readonly", "product_uom", "customer_lead", "recompute_delivery_price", "is_delivery", "price_unit", "tax_id", "price_tax", "discount", "is_downpayment", "price_subtotal", "state", "invoice_status", "currency_id", "company_id", "database_id", "computation"]
|
39 | 39 | random_id = 2795659
|
40 | 40 |
|
@@ -76,7 +76,8 @@ def test_set_to_quotation(self):
|
76 | 76 | def test_quotation_confirm(self):
|
77 | 77 | saleorder_model = self.client.get_model('sale.order')
|
78 | 78 | res = saleorder_model.search([['state', '=', 'draft'], '!', [ 'order_line.product_id.active', '=', False ], [ 'partner_id.country_id', '!=', False], [ 'company_id', '=', 1]], context=self.client.get_user_context())
|
79 |
| - saleorder_model.action_confirm(random.choice(res), context=self.client.get_user_context()) |
| 79 | + if res: |
| 80 | + saleorder_model.action_confirm(random.choice(res), context=self.client.get_user_context()) |
80 | 81 |
|
81 | 82 | @task
|
82 | 83 | def test_quotation_sendemail(self):
|
|
0 commit comments