Develop Odoo method to count

Need to create a method that count the number of products of a custom category th a Many2one relationship

the method is like:

def _compute_product_count(self):

read_group_res = [login to view URL]['[login to view URL]'].read_group([('l10n_mx_edi_code_sat_id', 'child_of', [login to view URL])], ['categ_id'], ['categ_id'])

group_data = dict((data['categ_id'][0], data['categ_id_count']) for data in read_group_res)

for categ in self:

product_count = 0

for sub_categ_id in [login to view URL]([('id', 'child_of', [login to view URL])]).ids:

product_count += [login to view URL](sub_categ_id, 0)

categ.product_count = product_count

Kompetens: Odoo, Python

Visa mer: count outs texas holdem vb6 code, need someone write perl code, need someone fix actionscript code, odoo computed field, odoo count records, search_count odoo, count numbers chars string mips code, need help php email code, count recursively products category oscommerce, need convert dll source code, count logins logouts website javascript code, count number products basket oscommerce, count products category prestashop, need urgent help fix code, need help fix matlab code, need anti iframe breaker code, need pic modbus rtu code, need simple java game code, need mobile website source code, develop research method

Om arbetsgivaren:
( 7 omdömen ) Metepec, Mexico

Projekt-id: #18079721



hii I am odoo developer from past 2 years and i think i can do your task . i have done lot of customization in odoo , and knows odoo well Regards Rohit Kumar

$25 USD inom 1 dag
(7 omdömen)

3 frilansare har i genomsnitt lagt bud på $42 för detta jobb


Dear Friend, Hope you are doing well ! I’m an experienced Odoo Consultant cum Developer and I think I’d be a great fit for your project. I’m good at any type of techno-functional requirements in odoo (I’m going s Mer

$50 USD inom 1 dag
(10 omdömen)

I have gone through your project description and have the required skills for the job. I started dabbling in Odoo five years ago in 2013. Since then, I have worked in Odoo Enterprise and Community Editions and aced Mer

$50 USD inom 1 dag
(24 omdömen)