mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update app
This commit is contained in:
@@ -11,6 +11,8 @@ from odoo import api, fields, models, _
|
||||
|
||||
class ProductBrand(models.Model):
|
||||
_name = 'product.brand'
|
||||
|
||||
_inherit = ['mail.thread', 'mail.activity.mixin']
|
||||
_description = "Product Brand"
|
||||
_order = 'sequence, name'
|
||||
|
||||
|
||||
@@ -54,6 +54,11 @@
|
||||
<field name="description" nolabel="1"/>
|
||||
</group>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids" widget="mail_followers"/>
|
||||
<field name="activity_ids" widget="mail_activity"/>
|
||||
<field name="message_ids" widget="mail_thread"/>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
@@ -106,7 +111,7 @@
|
||||
<record model="ir.actions.act_window" id="action_product_brand">
|
||||
<field name="name">Brand</field>
|
||||
<field name="res_model">product.brand</field>
|
||||
<field name="view_mode">kanban,form,tree</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
|
||||
Reference in New Issue
Block a user