Completed

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

Skills: Odoo, Python

See more: 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

About the Employer:
( 6 reviews ) Metepec, Mexico

Project ID: #18079721

Awarded to:

rohitangira

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 in 1 day
(5 Reviews)
3.0

4 freelancers are bidding on average $39 for this job

imaopenerp

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 More

$50 USD in 1 day
(10 Reviews)
5.5
KirtiSalesforce

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 More

$50 USD in 1 day
(18 Reviews)
4.8
arcsoft16

"Hi, Hope you are doing well! I am a fulltime freelance web & mobile app developer. I got lot of experience on both web & mobile app development, Good with HTML, CSS, JS for frontend website Love coding with P More

$31 USD in 7 days
(0 Reviews)
0.0