我有这样的方法:
@api.multi
def create_printy(self):
copy_record = self.env['stock.picking'] # now you call the method directly
for record in self:
order_lines = []
for rec in record.order_lines:
order_lines.append(
(0,0,
{
我需要更新一个表中的12.000条记录,以便将它们与“AAA”、“AAB”、“AAC”……“ZZZ”排序。应该是三个字符。
这张桌子是这样的:
table_items
id - int (Identity)
name - nvarchar(50)
picking_order - nvarchar(3)
我需要用3个字符更新picking_order。如何在Server中编写此脚本?
我有一个自定义报告,我希望在基于condition....ex的菜单中显示/隐藏该报告。发货顺序中的picking_type_id.code ...
我们可以在其中添加任何域过滤器吗?
the report menu of module 'custom_reports'
<report
string="Picking Operations"
id="action_report_picking_custom_report"
model="stock.picking
purchase.order中有这样的字段:
'picking_ids': fields.function(_get_picking_ids, method=True, type='one2many', relation='stock.picking', string='Picking List', help="This is the list of receipts that have been generated for this purchase order.")
它似乎是一个one2many字段,所以它在s