添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
有腹肌的机器猫  ·  React / ...·  2 月前    · 
有腹肌的玉米  ·  Spring @Value注解详解·  3 月前    · 
帅呆的苦咖啡  ·  URL Decode and Encode ...·  4 月前    · 

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • e-Commerce
  • Accounting
  • Inventory
  • Project management
  • Take the tour

    Helloooo guys!

    I want my new link « Receipts - PT » leads to : (how to add active_id=1????)

    http://24.226.196.31:8069/web?debug=#page=0&limit=80&view_type=list&model=stock.picking&action=316& active_id=1

    For the moment, my new link « Receipts - PT » leads to :

    http://24.226.196.31:8069/web?debug=#page=0&limit=80&view_type=list&model=stock.picking&action=316

    <record id="report_lapagept.action_receipts" model="ir.actions.act_window">
    <field name="name">Receipts - PT action</field>
    <field name="res_model">stock.picking</field>
    <field name="type">ir.actions.act_window</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form,calendar</field>
    <field name="domain"></field>
    <field name="context">{
    'search_default_picking_type_id': [active_id],
    'default_picking_type_id': active_id,
    'contact_display': 'partner_address',
    </field>
    <field name="search_view_id" ref="stock.view_picking_internal_search"/>
    <field name="help" type="html">
    <p class="oe_view_nocontent_create">
    Click to create a stock operation.
    ZZZZZZZZZZZZZZZZMost operations are prepared automatically by Odoo according
    to your preconfigured logistics rules, but you can also record
    manual stock movements.
    </field>
    </record>

    <menuitem id="report_lapagept.menu_receipts" name="Receipts - PT" parent="stock.menu_stock_warehouse_mgmt" action="report_lapagept.action_receipts" sequence="1" />

    Just replace the first import record by this one :

    <record id="report_lapagept.action_receipts" model="ir.actions.act_window">

    <field name="domain"></field>
    <field name="context"> {'active_id': 1, 'search_default_picking_type_id': 1, 'default_picking_type_id': 1, 'contact_display': 'partner_address'}</field>

    </record>

    Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

    Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.