This commit is contained in:
gqh
2023-03-03 18:17:48 +08:00
parent adaecd6e09
commit 06efa1b777
14 changed files with 174 additions and 35 deletions

View File

@@ -1,2 +1 @@
from . import models
from . import controllers

View File

@@ -6,7 +6,7 @@
"website": "https://topodoo.com",
"category": "Tutorials",
"version": "15.0.0.1",
"depends": ["sale", "sale_management"],
"depends": ["sale", "sale_management","web_widget_model_viewer"],
"demo": [],
"data": [
#'report/test_sale_report.xml',

View File

@@ -1 +0,0 @@
from . import sale_order

View File

@@ -1,15 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
from odoo import models,fields
from odoo.tools import populate, groupby
_logger = logging.getLogger(__name__)
class SaleOrder(models.Model):
_inherit = "sale.order"
step_file = fields.Binary("Step File")

View File

@@ -1,33 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sale_order_form_inherit" model="ir.ui.view">
<field name="name">sale.order.form.inherit</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="payment_term_id" position="after">
<!-- <field name="create_date" widget="show_units" options="{'units':'UTC'}" string="Create Date"/>-->
<!-- <group class="o_partner_order_summary" col="2"/>-->
<field name="step_file" widget="Viewer3D" readonly="True"/>
</field>
</field>
</record>
<record id="sale_order_tree_inherit" model="ir.ui.view">
<field name="name">sale.order.tree.inherit</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree"/>
<field name="arch" type="xml">
<field name="partner_id" position="attributes">
<attribute name="widget">CTemplate</attribute>
<attribute name="options">{'template':'owl_demo.field_partner_id'}</attribute>
</field>
<field name="team_id" position="before">
<field name="order_line" widget="CTemplate" options="{'template':'owl_demo.field_order_line'}"/>
</field>
</field>
</record>
</odoo>